Summary of the method of setting the program to start up under Linux

 

1. Add the command to start in /etc/rc.local

  Refer to the startup method of tomcat zookeeper kafka, etc.

2, chkconfig add service

 Explain the contents of the service file under the /etc/rc.d/init.d directory

 # chkconfig: 2345 20 80

It means that the random script is started at run level 2, 3, 4, and 5, the priority of start is 20, the priority of stop is 80, and the priority of start and stop is the smaller the number, the higher the priority.

3,

 

4,

 

5,

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326711807&siteId=291194637