1. 启动: ①. 启动swoft: php bin/swoft http:start②. 查看进程: ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 7 20:18 ? 00:00:01 swoft-http master process(/var/www/swoft//var/www/swoft/bin/swoft) root 14 1 0 20:18 ? 00:00:00 swo
1. 启动:
①. 启动swoft:
php bin/swoft http:start
②. 查看进程:
ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 7 20:18 ? 00:00:01 swoft-http master process(/var/www/swoft//var/www/swoft/bin/swoft)
root 14 1 0 20:18 ? 00:00:00 swoft-http manager process
root 16 14 0 20:18 ? 00:00:00 swoft-http task process
...
root 28 14 0 20:18 ? 00:00:00 swoft-http worker process
...
# 1个master、10个task、6个worker
# PPID表示父的PID
注:
- 开发环境php bin/swoft http:start启动后,最好不要ctrl + c终止掉,防止出现僵尸进程.
可以再开一个窗口,使用php bin/swoft http:restart来重启.
- 生产环境可以使用docker restart swoft来重启容器.