By Brohemian
I need to set up a few WordPress installs and I’m wondering if the “One Click” option includes swap space in the install?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Just follow this to add some swap ( This is what I do on most servers )
free -m sudo fallocate -l 2G /swapfile ls -lh /swapfile sudo chmod 600 /swapfile ls -lh /swapfile sudo mkswap /swapfile sudo swapon /swapfile swapon -s sudo vim /etc/fstab
! Add this to fstab: /swapfile swap swap sw 0 0
cat /proc/sys/vm/swappiness
sudo sysctl vm.swappiness=10 sudo vim /etc/sysctl.conf
! Add below to sysctl.conf: vm.swappiness = 10
REBOOT and Verify ( shutdown -r now , free -m )
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.