【发布时间】:2024-12-21 11:05:01
【问题描述】:
我正在尝试在我的笔记本电脑 (Ubuntu 18.04) 上为我的网站安装 nginx 服务器。
我遵循了一个教程,它运行良好,然后我尝试在网站上进行一些修改,但出现了一些错误(这是关于我试图在 /var/www/html 上克隆的 GitHub 存储库,而不是 nginx)。
为了修复它,我在所有 PID 上使用 SIGKILL 停止了 nginx。
然后我不知道为什么但出现了一些问题,我删除了/etc/nginx repo(是的,这确实是个坏主意,我知道......)
当我现在尝试重新启动/启动 nginx 时,我收到此错误:
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for
details.
我尝试了很多我在互联网上找到的东西,但它总是引用我删除的配置文件。
有没有办法从我的计算机中完全删除 nginx 并重新正确安装?我认为这是最好的选择;或者解决方法,如果你知道的话?
【问题讨论】:
-
"并且我删除了
/etc/nginxrepo" - 为什么将nginx配置文件目录称为repo? -
配置文件在repo /etc/nginx中,我把整个repository都删除了
标签: linux nginx systemd ubuntu-18.04