Last active
February 20, 2025 16:01
-
-
Save zguillez/c9633792498e2e2bb5f34b355f1eb423 to your computer and use it in GitHub Desktop.
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
sudo apt install fail2ban -y | |
sudo fallocate -l 1G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo bash -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' | |
free -h | |
sudo vim /etc/apache2/mods-available/mpm_prefork.conf | |
```` | |
StartServers 2 | |
MinSpareServers 2 | |
MaxSpareServers 5 | |
MaxRequestWorkers 20 | |
MaxConnectionsPerChild 500 | |
``` | |
sudo systemctl restart apache2 | |
# remove mariadb | |
sudo systemctl stop mariadb | |
sudo systemctl disable mariadb | |
sudo apt purge mariadb-server mariadb-client -y | |
sudo apt autoremove -y | |
sudo apt autoclean | |
sudo rm -rf /var/lib/mysql | |
sudo rm -rf /etc/mysql | |
free -h | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment