nginx报错汇集
1.使用systemctl start nginx 报错
Failed to start The nginx HTTP and reverse proxy server.
2. 查看并编辑nginx报错日志
可以查看出nginx启动失败的原因
vim /var/log/nginx/error.log
3 查看nginx状态
systemctl status nginx
4 创建文件
touch 1.text
5 解压tar压缩包
tar -xf node-v12.16.1-linux-x64.tar.xz
6.nginx报错:
bind() to 0.0.0.0:4210 failed (13: Permission denied)
通过ansible远程给主机更换端口并重新启动nginx服务,出现以上报错信息(权限被拒绝)
参考博客:https://blog.csdn.net/qq_32448349/article/details/109725173
7.swap file “*.swp” already exists
swap file "*.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
解决方案:(删除临时文件)
rm *.swp