现在是这样的:
能否在这里面展示一下进程号呢?
因为我的 log 里内容是这样的:
2025-02-05 16:46:54 pid:8474 Workerman[start.php] restart
2025-02-05 16:46:54 pid:8474 Workerman[start.php] is stopping ...
2025-02-05 16:46:54 pid:8474 Workerman[start.php] stop success
2025-02-05 16:49:11 pid:8474 Workerman[start.php] stopping ...
2025-02-05 16:49:11 pid:8474 Workerman[start.php] has been stopped
2025-02-05 16:49:13 pid:8500 Workerman[start.php] restart
2025-02-05 16:49:13 pid:8500 Workerman[start.php] is stopping ...
2025-02-05 16:49:13 pid:8500 Workerman[start.php] stop success
2025-02-05 16:50:01 pid:8500 Workerman[start.php] stopping ...
2025-02-05 16:50:01 pid:8500 Workerman[start.php] has been stopped
2025-02-05 16:50:02 pid:8526 Workerman[start.php] restart
2025-02-05 16:50:02 pid:8526 Workerman[start.php] is stopping ...
2025-02-05 16:50:02 pid:8526 Workerman[start.php] stop success
日志里展示的是pid,但是命令界面没有,没法区分是哪个服务产生的日志。
php webman status
多谢,经你一提醒,我想起了 status 命令,但是 status 命令要重新再开个终端执行一遍,在开发阶段,大家应该都是直接 php start.php restart 然后一直开着吧?开发阶段直接展示一些详细信息应该更好。
显示pid就要显示所有进程列表,会很长,大部分人不需要看pid列表,只想看启动了哪些类型的进程,每种类型开了多少个进程。