Created
November 3, 2023 14:57
-
-
Save coulterpeterson/f9a6b3906bd05e22d84ad9a5e1964ce4 to your computer and use it in GitHub Desktop.
Ubuntu Runaway Web Server Fire Fighting Toolbelt (Restarting Various Processes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start with the obvious | |
sudo shutdown -r now | |
# Check CPU/memory usage | |
top | |
# Get running services | |
systemctl --type=service --state=running | |
# Start restarting them | |
sudo systemctl restart mariadb | |
sudo systemctl restart php-fpm.service | |
sudo systemctl restart nginx.service | |
# Check CPU/memory usage again, rinse and repeat | |
top |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment