【发布时间】:2017-03-20 17:50:03
【问题描述】:
我尝试在 ubuntu 16.04 上重新启动 apache 服务,但我不能,因为 nginx 监听了端口“80”。 但是当我尝试停止 nginx 时,找不到该服务。
netstat -ltnp | grep ':80'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6069/nginx
systemctl status nginx
● nginx.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
service nginx stop
Failed to stop nginx.service: Unit nginx.service not loaded.
那么我怎样才能停止 nginx 以重新启动 apache 呢?
感谢您的帮助
【问题讨论】: