注意: phpfpm修改为你自己的php-fpm的位置即可 把这个文件放在/etc/init.d下 起名php-fpm chkconfig --add php-fpm service php-fpm start即可启动