总结workerman启动与停止相关命令

手册:https://www.workerman.net/doc/workerman/install/start-and-stop.html   

 

本篇文章给大家介绍一下workerman启动与停止相关命令。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。

相关推荐:《workerman教程》

start.php为入口文件

一、启动

1、以debug(调试)方式启动 (这个是启动后,关闭后这启动就断掉的)

php start.php start

2、以daemon(守护进程)方式启动(这是进程启动的,正式环境需要开启这个的)

php start.php start -d

二、停止

php start.php stop

三、重启

php start.php restart

四、平滑重启

php start.php reload

五、查看状态

php start.php status

六、查看连接状态(需要Workerman版本>=3.5.0)

php start.php connections
posted @   minch  阅读(121)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
点击右上角即可分享
微信分享提示