加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

centos 6.0下最简编译安装Nginx+Mysql+PHP+Zend

发布时间:2016-01-21 03:29:28 所属栏目:Linux 来源:网络整理
导读:Nginx是一个小巧而高效的Linux下的Web服务器软件,是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler 站点开发的, 已经在一些俄罗斯的大型网站上运行多年,相当

代码如下

         location / {
              root   html;
              index  index.php index.html index.htm;
  #pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  #
        location ~ .php$ {
        root           html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME    /usr/local/nginx/html$fastcgi_script_name;
        include        fastcgi_params;
  }
  }

完成配置后重新启动~~~

[root@itchenyi chenyi]# service nginx restart

停止 nginx:                                               [确定]

正在启动 nginx:                                           [确定]

[root@itchenyi chenyi]# service php-fpm restart

Shutting down php_fpm . done

Starting php_fpm  done

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读