方法:首先执行“chmod a+x /etc/init.d/php-fpm”命令,添加执行权限;然后执行“chkconfig --add php-fpm”命令加入服务;最后执行“chkconfig php-fpm on”命令设置开机自启。
php入门到就业线上直播课:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用
本教程操作环境:windows7系统、PHP7.1版,DELL G3电脑
添加执行权限
chmod a+x /etc/init.d/php-fpm
登录后复制
加入服务
chkconfig --add php-fpm
登录后复制
开机自启
chkconfig php-fpm on
登录后复制
查看服务列表:
chkconfig --list
登录后复制
推荐:《2021年PHP面试题大汇总(收藏)》《php视频教程》
以上就是php如何设置fpm开机启动的详细内容,更多请关注php中文网其它相关文章!