开机启动 php-fpm

版权声明:凡由本人原创,如有转载请注明出处https://me.csdn.net/qq_41424519,谢谢合作 https://blog.csdn.net/qq_41424519/article/details/87626418

 

php-fpm是独立于web服务器和php之前的一层服务器,所以,我们需要开机启动它

开机启动的配置文件是:/etc/rc.local ,加入 /usr/local/php/sbin/php-fpm 即可

 
  1. [root@localhost init]# vi /etc/rc.local
  2.  
  3. 1 #!/bin/sh
  4. 2 #
  5. 3 # This script will be executed *after* all the other init scripts.
  6. 4 # You can put your own initialization stuff in here if you don't
  7. 5 # want to do the full Sys V style init stuff.
  8. 6
  9. 7 touch /var/lock/subsys/local
  10. 8 /usr/local/apache/bin/apachectl start
  11. 9 /usr/local/bin/redis-server /etc/redis.conf
  12. 10 /usr/local/php/sbin/php-fpm

猜你喜欢

转载自blog.csdn.net/qq_41424519/article/details/87626418