yes i know this if totally off topic but please dont shoot me. im on the very last hurdle after a 24 hour binge of learning linux from scratch to do this so im way too tired to set up an account anywhere else to post the problem. (mods move this to where ever appropriate if needed)
im configuring a server and im using these lines of code:
iptables -D INPUT 1
iptables -D INPUT 1
iptables -D INPUT 1
iptables -D INPUT 1
iptables -D INPUT 1
iptables -D OUTPUT 1
iptables -D FORWARD 1
iptables -I INPUT 1 -p tcp --dport 7890 -j ACCEPT
iptables -I OUTPUT 1 -p tcp --dport 7890 -j ACCEPT
iptables -I FORWARD 1 -p tcp --dport 7890 -j ACCEPT
yum install java-1.8.0-openjdk-headless.x86_x64
sudo dd if=/dev/zero of=/swapfile bs=2048 count=512k
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
<inserted> swap /swapfile swap defaults 0 0
sudo nano /etc/sysctl.conf
<inserted> vm.swappiness=10
the code goes in fine, but after reboot of the server, swappiness is still at 10. /swapfile is still saved in /fstab, java is still on it as are the iptable settings, but the swap disk(indented line) vanishes ie when i do "swapon -s" nothing is there. isnt saving /swapfile into /fstab and/or setting vm.swappiness=10 supposed to make it permanent?