centos 6.0下最简编译安装Nginx+Mysql+PHP+Zend
发布时间:2016-05-26 15:32:14 所属栏目: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 (编辑:应用网_丽江站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |