Sign inSign up

wee0/server-netty

By wee0

•Updated almost 8 years ago

A docker image to run wee0 netty server.

Image
0

464

wee0/server-netty repository overview

⁠wee0-docker-serverNetty

wee0-server-netty run on docker.

⁠快速上手

docker run -d --name proj1 -v $(pwd):/wee0/works/p0 -p 9011:9998 -p 9012:9999 wee0/server-netty
curl http://127.0.0.1:9011/api/index

⁠常见问题

⁠下载docker镜像速度很慢?

可以使用国内的加速器增加访问速度,加速器配置参考文档:http://guide.daocloud.io/dcs/docker-9153151.html⁠
我的阿里云加速器地址:https://s4ko6z3s.mirror.aliyuncs.com⁠

⁠开发过程中session数据一直丢失?

如果使用同一个浏览器同一个IP访问项目与ide会出现WSID数据串掉的情况,导致session数据丢失。
遇到这种问题有以下几种解决方案:

  • 为ide项目单独开一个浏览器。
  • 在参数中保持WSID,如:/api?WSID=32af7d3f3f9d4c3fa025453ac9cfe577
  • 运行ide的时候使用与项目不同的IP地址。
⁠如何修改jvm使用的内存?

运行容器时加上参数:-e JAVA_OPTS='-Xmx1024m -Xms1024m'。

Tag summary

Content type

Image

Digest

Size

107.2 MB

Last updated

almost 8 years ago

docker pull wee0/server-netty