Boot upResolves server restarts, such as breakpoints, causing the service not to start up trouble1. Organize the service running on the machine, and make some sh scripts., the file is:/home/rc/exec.sh# load environment variable SOURCE/ETC/PROFILEECHO ' environment variable added successfully ' #启动web/usr/local/tomcat-web/restart.sh &echo ' Tomcat-web boot Success ' Note load environment variable2. Execute chmod 755 + script name, command: chmod 755/home/rc/exec.sh3. Modify the Rc.load file, vim/etc/rc.localtouch/var/lock/subsys/local/home/rc/exec.sh >>/home/rc/rc.out &4.reboot5. View the processPs-ef |grep Tomcat to see if it takes effect, OK if it's done. If it does not take effect, continue6. View the level of the boot system, command: RunLevel here is N 3, which represents the start level of 3 execution command: ll/etc/rc3.d/Normally, there will be s99local. /rc.local such a shortcut link, this is the system startup, loading rc.local shortcut link. If this is not the case, then rc.local will not be called.7. Start Rc.loadExecuted under RC3.D: Ln-s. /rc.local s99local Execution: chmod +x s99local 8. restartfor informational purposes only, please forgive me for your shortcomings. Reprint please indicate the source. If in doubt, please comment or contact me email [email protected]
Linux Setup boot up