yes there are several installed applications that use a webpage as their GUI, but no native websever was ever setup to run /var/www* pages from the pi. Not sure what the nginx: master does, I can understand the worker processes for the web-access apps, etc…
ss -tulpn | grep LISTEN
lists too many entries, and does mostly point to installed and running software.
Did you install Docker??? You can run htop to see where the process is coming from. From our side, we don’t install a web server by default. It should have a different reason.
yes, docker is installed with several containers that use webpages for access - (they’d use their own webservers i guess, nginx could be use for them).
I was after a way to clearly identify if the pi had nginx installed or not. (I’m trying to automate the setting up of a reverse proxy nginx since I have several pi’s to roll out to, some of which i wouldn’t know if they already use ngix or not, so scripting to skip if they do etc.)
‘which nginx’ appears to be the easiest way to do this…
Using ps will show Nginx processes from inside the Docker container as well.
As you can see on the following example, Nginx processes are created by the containerd process. Means, they are created by Docker and running inside the container.
way better would be to check if port 80 is blocked or not. Because every new web server will try to bind to port 80 (default). Means, even your Docker container could prevent installation of an additional web service.
That’s true as part of a check when installing nginx. I just needed to know how to check if nginx was installed to start with or not (default port or not) - it’ll also check for other webservers apache, etc. , then report it (part of a system audit), then depending on a few other things it may (or may not) install if missing (with relevant checks for a successful install, etc.)