In Linux, you can start the instance at startup, and in linux, you can start the instance at startup.
Starting the instance solves the problem of server restart, such as breakpoint, resulting in service failure. sort out the services running on the machine and compile them into sh scripts. The file is/home/rc/exec. sh # load the environment variable source/etc/profileecho 'Environment variable added successfully' # Start web/usr/local/tomcat-web/restart. sh & echo 'tomcat-web started successfully' pay attention to loading environment variable 2. run the chmod 755 + Script Name. Command: chmod 755/home/rc/exec. sh 3. modify rc. load file, vim/etc/rc. localtouch/var/lock/subsys/local/home/rc/exec. sh>/home/rc. out & 4. reboot 5. check the process ps-ef | grep tomcat to see if it takes effect. If it takes effect, OK is completed. If it does not take effect, continue 6. check the startup system level. Command: runlevel here is N 3, which indicates that the startup level is 3. Run the command ll/etc/rc3.d/normally. Here S99local-> .. /rc. A shortcut such as local, which is loaded when the system is started. local shortcut. If not, rc. local will not be called. 7. start rc. load is executed under rc3.d: ln-s .. /rc. local S99local execution: chmod + x S99local 8. restart is for reference only. Please forgive me for your shortcomings. please correct me! Indicate the source for reprinting. If you have any questions, please comment or contact my mailbox 1034570286@qq.com