php-fpm是独立于web服务器和php之前的一层服务器,所以,我们需要开机启动它
开机启动的配置文件是:/etc/rc.local
,加入 /usr/local/php/sbin/php-fpm
即可
[root@localhost init]# vi /etc/rc.local
1 #!/bin/sh
2 #
3 # This script will be executed *after* all the other init scripts.
4 # You can put your own initialization stuff in here if you don't
5 # want to do the full Sys V style init stuff.
6
7 touch /var/lock/subsys/local
8 /usr/local/apache/bin/apachectl start
9 /usr/local/bin/redis-server /etc/redis.conf
10 /usr/local/php/sbin/php-fpm