上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 48 下一页
摘要: 1、 nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory) 解决: [root@TEST nginx]# sudo nginx -c /etc/nginx/nginx.conf [root@TEST nginx]# nginx -s reload 2、 [root@ngi... 阅读全文
posted @ 2018-11-24 16:12 effortsing 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1、重要:修改配置文件使用虚拟机,否则怎么配置都不生效,添加如下用户 [root@host-10-1-1-161 html]# ll /etc/nginx/nginx.conf -rw-r--r-- 1 root root 345 Aug 26 10:41 /etc/nginx/nginx.conf [root@host-10-1-1-161 html]# vi /etc/nginx/ngin... 阅读全文
posted @ 2018-11-24 16:11 effortsing 阅读(978) 评论(0) 推荐(0) 编辑
摘要: 在主配置文件http模块最后添加如下一句话 [root@host-10-1-1-161 ~]# vi /etc/nginx/nginx.conf include /etc/nginx/conf.d/*.conf; [root@host-10-1-1-161 ~]# mkdir -p /etc/nginx/conf.d 把主配置文件的server复制到conf.d下面就可以 主配置文... 阅读全文
posted @ 2018-11-24 16:10 effortsing 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 403禁止访问解决 1、 重要:修改配置文件使用虚拟机,否则怎么配置都不生效,添加如下用户 [root@host-10-1-1-161 html]# ll /etc/nginx/nginx.conf -rw-r--r-- 1 root root 345 Aug 26 10:41 /etc/nginx/nginx.conf [root@host-10-1-1-161 html]# vi /e... 阅读全文
posted @ 2018-11-24 16:09 effortsing 阅读(1130) 评论(0) 推荐(0) 编辑
摘要: 1、环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 2、远端tomcat 配置 [root@host-10-1-1-103 ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Addr... 阅读全文
posted @ 2018-11-24 16:05 effortsing 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1、环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 2、tomcat 配置 [root@host-10-1-1-103 ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Addres... 阅读全文
posted @ 2018-11-24 16:04 effortsing 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com [root@host-10-1-1-161 conf.d]# cat /root/html/index.html www.test2.com 2、配... 阅读全文
posted @ 2018-11-24 16:02 effortsing 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com [root@host-10-1-1-161 conf.d]# cat /root/html/index.html www.test2.com 2、配... 阅读全文
posted @ 2018-11-24 16:02 effortsing 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com 2、配置conf.d目录下配置文件 [root@host-10-1-1-161 conf.d]# pwd /etc/nginx/conf.d [root... 阅读全文
posted @ 2018-11-24 15:59 effortsing 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com 2、配置conf.d目录下配置文件 [root@host-10-1-1-161 conf.d]# pwd /etc/nginx/conf.d [roo... 阅读全文
posted @ 2018-11-24 15:58 effortsing 阅读(935) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 48 下一页