nginx排错
nginx排错
阿白,
云原生 devops istio Go 大四ing
展开
-
/etc/hosts下域名解析与nginx域名访问时的一个特殊情况
比如/etc/hosts下192.168.160.100 a1.com a2.com然后a1.com做了准确的配置,网站正常,a2.com没有做成一个独立的站点,域名访问a2.com是会跳转到a1.com站点原创 2021-10-01 20:41:19 · 550 阅读 · 1 评论 -
配置nginx文件的server时使用if的注意
至少有location,要写在location里边原创 2021-08-21 22:18:15 · 463 阅读 · 1 评论 -
nginx启动失败问题
[root@www ~]# systemctl start nginxJob for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.刚安装好nginx后启动会唱遇到这问题,一般是软件httpd冲突,解决方法简单systemctl stop httpdsyste.原创 2021-07-27 16:49:35 · 452 阅读 · 0 评论 -
403forbiden解决
出现这个错误一般是粗心导致浏览器输入server_name后出现这个错误,一般是index文件没有配置,比如你的root /web,index index.html,但/web底下没有设置index.html原创 2021-08-24 11:51:23 · 1344 阅读 · 0 评论 -
keepalived中,开机后发现处于工作状态机的是BAVKUP,而MASTER正常
一般来说主备都systemctl restart keeplived,再ip add show dev ens33就ok了附:一般检查的是nginx,firewalld,getenforce原创 2021-08-23 16:54:16 · 254 阅读 · 1 评论 -
nginx: [error] invalid PID number ““ in “/run/nginx.pid“
问题一般会是这两个:1.nginx没开启2.端口问题,比如httpd启动了同时它占用了80端口原创 2021-08-18 11:32:05 · 434 阅读 · 0 评论 -
yum安装nginx时指定使用官方源
一开始我的机器上有epel和nginx的官方nginx仓库,用yum安装是使用了参数–enablerepo=nginx-stable,下载完成后yuminfo nginx发现来自的源还是epel,epel较新同时会功能不够齐全,这边也不知道为什么指定yum源无效,所以就先用管理工具暂停了epel源,重新下载安装,成功...原创 2021-07-27 22:06:34 · 421 阅读 · 0 评论
分享