First, the concept
After the restart Linux, and some services will start automatically.
Second, since the launch of the service required and scripts
1. needed since the launch of the service and mysql have vsftpd
2. The script needs to have self-starting tomcat
Third, the service from the start
1. Turn
systemctl enable vsftpd.service
systemctl enable mysqld.service
2. Close
systemctl disable vsftpd.service
systemctl disable mysqld.service
Fourth, the script from the start
1. assign permissions
chmod +x /etc/rc.d/rc.local
2. Edit the script file
Edit vi /etc/rc.d/rc.local (boot loader file)
Last added
/usr/local/tomcat7/bin/startup.sh