再安装之前大家可以先看一下lamp的安装过程
1.安装nginx
2.更改nginx端口号(根据自己需求)
3.访问http://ip:81即可看到nginx首页
4.下一步安装 php-fpmyum install php-fpm
5.更改nginx配置文件识别php
vi /etc/nginx/conf.d/default.conf,把之前的#给去掉就可以了,顺手改一下fastcgi_param
6.
在 /usr/share/nginx/html中新建一个test.PHP <?php echo 123;?>
访问http://ip:81/test.php即可看到php页面
7.负载配置
8.如果需要安装最新版本php请参考 http://blog.csdn.net/zph1234/article/details/52486808