Port 8080 nginx cannot be shut down under mac

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

I tried to close nginx, but localhost:8080 can still access

what"s going on?

I am using nginx installed by brew install nginx

Mar.16,2021

look who occupies this port

lsof -i:8080

then decide whether to kill it. In addition, nginx is port 80, and you did not start nginx after you installed nginx. All nginx not started,8080 ports appear to be the default port for tomcat. You have to see what your tomcat is like.


nginx is not started.
8080 should be the port of apache.

Menu