How to restart nginx automatically when it goes down

linux
server
nginx
Category Software and digital electronics / IT
2023-10-27 23:18

Problem

Whenever any failure happens on Nginx and I will loose my website until I restart Nginx by myself.

This means that I should constantly check my website is working.

I am looking for a solution to restart Nginx when it goes down.

How to achieve that?

comment:
Report
Share
Posted by pavelow
2024-05-23 09:14
What operating system are you using? Usually (on Linux at least) the nginx package will come with a systemd unit that will restart nginx if it crashes.
×

Login

No account?
Terms of use
Forgot password?