连接终端管理服务器,重启 web 服务,
root@114.215.154.53's password:
Last login: Mon Jan 11 16:30:43 2016 from 115.29.48.38
Welcome to aliyun Elastic Compute Service!
[root@weixiaoduo-sx-nginx-all-01 ~]# service nginx start
Starting nginx... done
[root@weixiaoduo-sx-nginx-all-01 ~]# # ps aux | grep -c php-fpm
[root@weixiaoduo-sx-nginx-all-01 ~]# service httpd start
httpd: 未被识别的服务
[root@weixiaoduo-sx-nginx-all-01 ~]# sudo chmod +x /etc/init.d/php-fpm
[root@weixiaoduo-sx-nginx-all-01 ~]# sudo /sbin/chkconfig php-fpm on
[root@weixiaoduo-sx-nginx-all-01 ~]# service php-fpm start
Starting php-fpm done
[root@weixiaoduo-sx-nginx-all-01 ~]#
服务器配置使用启动命令行:
service nginx start
service php-fpm start
配置:nginx+php-fpm
参考:https://www.jb51.net/article/58796.htm