After the CentOS restart, a lot of services need to start manually, it is troublesome, today will need to boot or shut down the service to organize a bit, put into the Linux shell, and then add the shell into the/etc/rc.local, you can realize the storage of automatic mount, SVN, VSFTPD, Services such as firewalls start or close automatically, as follows:
1. Write the./root/shell/autorun.sh to the/etc/rc.local file:
echo/root/shell/autorun.sh >>/etc/rc.d/rc.local
2, vi/root/shell/autorun.sh, write the following content:
#!/bin/-d-r/opt/svn# Stop Firewall Services service iptables stop# mount disk array mount10.32. 8.31:/vol/vol_linux1 /netapp# restart VSFTPD Services service vsftpd restart# boot cache system #1024x768 10.32. 8.29 11211 -192.192. 3.9 255.255. 240.0 Dev eth2
Save exit to realize automatic mount of storage, SVN service, VSFTPD service boot automatically.
Linux shell-based boot service