在进行一些更改后重新启动 nginx 服务器时遇到问题

问题描述 投票:0回答:0

在 sudo vi /etc/nginx/sites-available/default 文件中做了一些更改,例如更改侦听端口号,并添加了一些参数来访问 Kibana。

当我重新启动 nginx 服务器时 # sudo systemctl start nginx,它的抛出错误像

ubuntu@ip-172-31-35-154:~$ sudo systemctl 重启 nginx nginx.service 的作业失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅“systemctl status nginx.service”和“journalctl -xeu nginx.service”。 ubuntu@ip-172-31-35-154:~$ sudo systemctl restart nginx.service nginx.service 的作业失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅“systemctl status nginx.service”和“journalctl -xeu nginx.service”。 ubuntu@ip-172-31-35-154:~$

attaching the error screenshot this is the template added into the file

请帮忙。

以上...................................................... ......

amazon-web-services devops nginx-reverse-proxy
© www.soinside.com 2019 - 2024. All rights reserved.