I have a VPS running my nodeJS app, with Nginx as reverse proxy. The VPS has installed as default Apache. Often my app stops working, i check my vps through ssh and i try to restart nginx:
service nginx restart
But i got the error:
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Looking for a solution in Stack Overflow i found this post: Nginx: Job for nginx.service failed because the control process exited where an answer says that i need to stop apache, so i write in console:
sudo killall apache2
service nginx restart
And then works fine!! But for some reason apache2 starts running on its own now and then. Is there a way to fix this?? Thanks in advance.