vim /etc/rc.d/init.d/restart-php.sh
#!/bin/sh
#chkconfig: 2345 10 90
#description: restart-php
cd /www/wwwroot/song-api
php start.php start -d
cd /www/wwwroot/chong-api
php start.php start -d
cd /www/wwwroot/dian-report
php start.php start -d
增加脚本的可执行权限
chmod +x /etc/rc.d/init.d/restart-php.sh
cd /etc/rc.d/init.d
chkconfig --add restart-php.sh
chkconfig restart-php.sh on
https://blog.csdn.net/buyueliuying/article/details/87617313
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。