Swoft 2.x 正确启动命令(HTTP 服务)
- 后台启动(正式环境,你要这个)
bash
运行
php bin/swoft http:start -d
- 前台调试启动(看日志)
bash
运行
php bin/swoft http:start
- 重启
bash
运行
php bin/swoft http:restart
- 停止
bash
运行
php bin/swoft http:stop
✅ 你现在只需要执行这 2 行
bash
运行
cd /www/wwwroot/apib
php bin/swoft http:start -d
✅ 启动成功后检查端口
bash
运行
netstat -lntp | grep 18532