nginx、php-fpm等添加自启动

来源:互联网 发布:h5制作软件下载 编辑:程序博客网 时间:2024/06/06 06:41
##  添加执行权限chmod a+x /etc/init.d/nginx   chmod a+x /etc/init.d/php-fpm##  加入服务chkconfig --add nginxchkconfig --add php-fpm##   开机自启chkconfig nginx on    chkconfig php-fpm on

如果有出现 “service php-fpm does not support chkconfig“的错误提示,则可以再php-fpm脚本上方添加下面语句

#!/bin/bash# php-fpm startup script for the php-fpm # php-fpm version:5.5.0-alpha6# chkconfig: - 85 15
阅读全文
0 0
原创粉丝点击