1. cat/usr/local/bin/php56/etc/php-fpm.conf | grep -v ';'
[global]
; Note: thedefault prefix is /usr/local/bin/php56/var
pid =run/php-fpm.pid
[www]
user = work
group = work
listen =/var/run/php5-fpm.sock
listen.owner =work
listen.group =work
listen.mode =0666
pm = dynamic
pm.max_children= 16
pm.start_servers= 4
pm.min_spare_servers= 1
pm.max_spare_servers= 4
2.#cp/usr/local/src/php-5.6.28/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
#chmod 755 /etc/init.d/php-fpm
3.#chkconfig--list
#chkconfig --addphp-fpm
#chkconfigphp-fpm on
4.#/etc/init.d/php-fpmstart|stop|force-quit|restart|reload|status
或#service php-fpm start|stop|force-quit|restart|reload|status