rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install -y nginx
启动服务
service nginx start
安装PHP FPM
yum install php56w-fpm
新增nginx配置文件my.conf
cd /etc/nginx/conf.d
vi my.conf
通过include方式来加载.htaccess
启动服务
service php-fpm start
service nginx start