我正在尝试创建一个用于Gitlab的证书。当运行letsencrypt certonly -d gitlab.myurl.com时。我在这个过程中做了一些事情,上面写着:The program nginx (process ID xxxxx) is already listening on TCP port 80....
所以我很自然地尝试了下面的方法,但是它不起作用
services@mx5:~$ sudo service nginx stop
Failed to stop nginx.service: Unit nginx.service not loaded.我也尝试通过pid来扼杀这个过程,但它只是在一个新的过程下回来。我是不是使用了错误的服务名称?在我看来不像但我不确定。我确实试图阻止gitlab,但也有类似的错误消息。
services@mx5:~$ ps -ef | grep nginx
root 20363 20033 0 10:49 ? 00:00:00 runsv nginx
root 20364 20363 0 10:49 ? 00:00:00 svlogd -tt /var/log/gitlab/ngin
root 20365 20363 0 10:49 ? 00:00:00 nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx
gitlab-+ 20366 20365 0 10:49 ? 00:00:00 nginx: worker process
gitlab-+ 20368 20365 0 10:49 ? 00:00:00 nginx: cache manager process
gitlab-+ 24537 20365 0 11:10 ? 00:00:00 nginx: worker process
services 25442 1335 0 11:17 pts/0 00:00:00 grep --color=auto nginx如果需要更多的信息,请告诉我。我对Linux非常陌生,我正试图遵循以下内容:https://www.howtoforge.com/tutorial/how-to-install-and-configure-gitlab-on-ubuntu-16-04/
发布于 2018-01-31 11:42:59
我通过停止gitlab服务来解决这个问题。它被称为gitlab-ctl,而不仅仅是gitlab
https://askubuntu.com/questions/1001677
复制相似问题