php think worker:server 如何放在Linux 启动rc.local文件中

yq1248461489

问题描述

现在启动worker服务都是直接命令php think worker:server 发办法持久化。打算放入rc.local文件中自启动。需要怎么操作?

439 2 0
2个回答

Gin

cd /www/path/yourworkdir
/usr/bin/php(写你服务器的php命令绝对路径) think worker: server

nitron

现在一般不是要么走systemd,要么走supervisord么..

  • 暂无评论
🔝