nginx
run noob
向前看!交流就是一种进步!
展开
-
linux centos 6.5安装Nginx
1 nginx安装环境nginx是C语言开发,建议在linux上运行,本教程使用Centos6.5作为安装环境。安装nginx需要先安装以下环境gcc安装nginx需要先将官网下载的源码进行编译,编译依赖gcc环境,如果没有gcc环境,需要安装gcc:yum install gcc-c++PCREPCRE(Perl Compatible Regular Expressions)...原创 2019-06-19 15:08:09 · 8840 阅读 · 0 评论 -
centos6.5安装nginx成功,但是其他主机无法访问解决方案
centos6.5安装nginx成功,但是其他主机无法访问,经排查,原因为80端口防火墙问题。需要打开服务器防火墙80端口执行以下Linux命令:[root@localhost ]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost ]# /etc/init.d/iptables save[root@lo...原创 2019-06-19 15:11:03 · 6159 阅读 · 0 评论 -
更改Nginx网站根目录&& 403 forbidden的问题
更改根目录Nginx默认网站根目录为/usr/local/nginx/html,要将它改成/home/ftpuser/wwwvi /usr/local/nginx/conf/nginx.conf将其中的location / { root html; index index.php index.html index.htm;}改为location / { root ...原创 2019-06-19 16:35:12 · 7066 阅读 · 0 评论