xinzhuzhi

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
yum install nginx php php-fpm

#vim /etc/nginx/conf.d/default.conf 

    location ~ \.php$ {
         root   /usr/share/nginx/html;
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;
         fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include    fastcgi_params;
    }
    

  

posted on 2014-11-11 15:37  xinzhuzhi  阅读(175)  评论(0编辑  收藏  举报