鍍金池/ 問答/Linux/ mac下8080端口nginx無法關閉

mac下8080端口nginx無法關閉

sudo brew services stop nginx
Error: Service nginx is not started.

我嘗試關閉nginx,但是localhost:8080依然可以訪問

這是怎么回事?

我使用的是 brew install nginx 安裝的nginx

回答
編輯回答
瘋子范

nginx 沒有啟動啊,
8080應該是 apache 的端口。

2017年4月5日 01:12
編輯回答
網妓

看看誰占用這個端口

lsof -i:8080

然后決定是否殺掉,另外nginx是80端口,你安裝好nginx之后沒有啟動nginx所有出現nginx not started,8080端口是tomcat的默認端口,你得看看你的tomcat是什么情況。

2017年6月1日 17:59