Answer the question
In order to leave comments, you need to log in
How to avoid VPS freezes?
Hello!
I have a VPS server running Apache2, MySQL and PHP. There are 3-4 sites in PHP with about 5 visitors per day, as well as a Ghost blog on Node.js, which is run through Forever.js.
When I only have PHP sites there, everything works fine. If I am still working with the blog and running it as a daemon, then when I execute the sudo reboot command, the system shuts down, but freezes at startup, which is why the provider has to connect to the system every time it restarts and do a hard reset to manually start it.
Please tell me what can I do to prevent this from happening?
Answer the question
In order to leave comments, you need to log in
Without logs, it's hard to say what's going on there, most likely you configured according to instructions that are not compatible with the OS you are using. Make logging to a file from the autorun script and from the application. Try to find instructions specifically for your OS or use forever alternatives, for example: PM2 https://github.com/Unitech/pm2 or node-supervisor, nodemon, node-dev.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question