Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #-------------------------------------------------
- # Ulimit & iptable auto-updater, saves alot of time.
- # Developed for CentOS 6/7
- #------------------------
- # wget http://pastebin.com/raw.php?i=hf3Gc3VP -O updater.sh
- # chmod 777 updater.sh
- # sh updater.sh
- #--------------
- echo "Updating iptables & ulimit"
- read -p "Press enter to continue.."
- yum install gcc -y; service iptables stop; chkconfig iptables off; ulimit -Hn 999999; ulimit -Sn 99999; echo -e 'ulimit -s 999999; ulimit -n 999999; ulimit -u 999999\n' >> ~/.bashrc; ulimit -s 999999; ulimit -n 999999; ulimit -u 999999; sysctl -w fs.file-max=999999 >/dev/null; wget -q https://pastebin.com/raw.php?i=DEuu6MzK -O /etc/security/limits.conf; wget -q https://pastebin.com/raw.php?i=1UB3u1fn -O /usr/include/bits/typesizes.h
- echo "Ulimit & iptables are fully updated"
- echo "Thank you for using my updater"
- echo "https://pastebin.com/hf3Gc3VP"
- echo "Chris Poole | codingplanets"
Add Comment
Please, Sign In to add comment