注意: phpfpm修改為你自己的php-fpm的位置即可 把這個檔案放在/etc/init.d下 起名php-fpm chkconfig --add php-fpm service php-fpm start即可啟動