您的位置:首页 > 其它

pomelo命令行详解

2015-10-26 16:20 260 查看
pomelo提供了命令行的方式方便维护

pomelo start [options] start the application

-e, –env the used environment

-D, –daemon enable the daemon start

-d, –directory, the code directory

-t, –type , start server type

-i, –id start server id

这个指令靠谱,需要切换到对应的server的目录下使用,启动时不用加-P

pomelo list 显示当前pomelo的服务器

-u, –username administration user name

-p, –password administration password

-h, –host master server host

-P, –port master server port

pomelo add 添加pomelo服务器

-u, –username administration user name

-p, –password administration password

-h, –host master server host

-P, –port master server port

pomelo stop stop [options] stop the servers, for multiple servers, use
pomelo stop server-id-1 server-id-2 -P masterport


这个指令靠谱,若是masterport不是3005,则加上-P

pomelo kill [options] kill the application

pomelo restart [options] restart the servers, for multiple servers, use
pomel

o restart server-id-1 server-id-2


表示这个restart在1.2上从来没有成功过

pomelo masterha [options] start all the slaves of the master

https://www.processon.com/i/568c6ea4e4b0e51d149a085f

这个网站解决了大家开始设计阶段的问题,轻量级的各种设计模型,强烈推荐

点击链接加入群【pomelo学习交流群】:https://jq.qq.com/?_wv=1027&k=5XNRFLl
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: