Created
December 28, 2021 12:35
-
-
Save suuhm/609daabb88fae3127143243687452dd5 to your computer and use it in GitHub Desktop.
zabbix swap file missing fix
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
#!/bin/sh | |
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=1048 && \ | |
sudo chmod 600 /var/swapfile && \ | |
sudo mkswap /var/swapfile && \ | |
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab && \ | |
sudo swapon -a | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment