Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加命令行管理服务功能 #11

Open
maxincai opened this issue Jun 26, 2016 · 3 comments
Open

建议增加命令行管理服务功能 #11

maxincai opened this issue Jun 26, 2016 · 3 comments

Comments

@maxincai
Copy link

maxincai commented Jun 26, 2016

比如:

php server.php start -d -h 127.0.0.1 -p 9567 -w 4 -r 20 -t 20
-d, --deamon 启用守护进程模式
-h, --host [<value>] 指定监听地址
-p, --port  [<value>] 指定监听端口
--help 显示帮助界面
-w, --worker  [<value>] 设置Worker进程的数量
-r, --thread [<value>]  设Reactor进程的数量
-t, --takser [<value>]  设置Task进程的数量

php server.php reload 重新加载
php server.php stop 停止服务

同时建议master进程名中显示启动参数

@137-rick
Copy link
Owner

可以

@137-rick
Copy link
Owner

进展回馈,由于我们的服务器参数太多了(无奈)
php demoserver.php -h127.0.0.1 -p9567 -r20 -w20 -t40 -d --host=127.0.0.1 --port=9567 --thread=10 --worker=15 --task=2 --daemon

还有服务发现等参数没有传递……不够用了……
这个实施暂时搁置,会想其他方式解决这个问题

@JanHuang
Copy link
Collaborator

JanHuang commented Jul 8, 2016

这个可以通过 --conf 指定配置文件,但是可能对代码会有一定的改动,可以尝试实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants