码迷,mamicode.com
首页 > Web开发 > 详细

nginx php-fpm

时间:2017-04-26 23:02:40      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:pass   code   emc   system   ams   oca   emctl   启动   fast   

1. nginx php-fpm

  1. yum install nginx
  2. yum install php-fpm
2. 配置 nginx.conf
  1. location ~ \.php$ {
  2. root /usr/share/nginx/html;
  3. fastcgi_pass 127.0.0.1:9000;
  4. fastcgi_index index.php;
  5. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  6. include fastcgi_params;
  7. }
3. 启动php-fpm && nginx
  1. systemctl restart nginx
  2. systemctl restart php-fpm
  3. systemctl enable nginx
  4. systemctl enable php-fpm
 
  
 
 
 
 
 
     

nginx php-fpm

标签:pass   code   emc   system   ams   oca   emctl   启动   fast   

原文地址:http://www.cnblogs.com/rongfengliang/p/6771399.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!