This is what it brings when you check nginx status
[root@ttproxyapp conf.d]# service nginx status
Redirecting to /bin/systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: inactive (dead)
3
Answers
It realy looks like your NGINX ins’t running.
nginx -s reload
is just working if there is a running instance and therfore a PID-file.Please check the result of the following command.
Should be something like
You need at least! the master process and the worker process! If there is no process start your instance by typing
sudo /bin/systemctl start nginx.service
ORsudo service nginx start
Check your processlist after running the command.
After you have started the NGINX service there should be PID-file located at
/var/run/nginx.pid
andsudo systemctl status nginx.service
should printout something likeI am running NGINX Plus but it doesn’t matter in this case.
should work since looks like the port is in use (with apache probably)
there is maybe an apache server running. you must stop that apache server order run the Nginx server.
sudo systemctl stop apache2
sudo systemctl start nginx