Write a script auto_coreseek.sh:
The code is as follows:
- # !/bin/sh
- #chkconfig:2345 80 90
- #description:auto_coreseek
- /usr/local/coreseek/bin/searchd
< Put it in /etc/init.d/auto_coreseek.shThen chmod +x /etc/init.d/auto_coreseek.sh
Then add it to the boot:
chkconfig --add auto_coreseek.sh
Finished.
Then study this is all a little meaning.
There are several levels of chkconfig:
0: indicates shutdown
1: indicates single-user mode
2: indicates no network link multi-user command line Mode
3: Indicates that there is a network link multi-user command line mode
4: indicates that it is not available
5: indicates a multi-user mode with a graphical interface
6: means restart
So chkconfig: 2345 means to start the service at 2345 level
The following 80 90 are the startup priority and the shutdown priority respectively
Talk about the priority of the program, the priority is also well understood, is the order in which the program is executed by the CPU, the smaller the value, the higher the finite level. So the startup priority and shutdown priority here mean the priority of the process that starts the script, and the priority of the process that closes the script.
1. Install Java (here assuming the installation directory bit /usr/local) 32-bit: http://download.or
Command Save the file and exit :x is equivalent to the following command: :wq Saves the cur
Speaking of the easiest way to install the system is to find a system installation CD and then slowl
ubuntu configuration SSH password-free login 1. Install SSH: 2. Whether to generate .ssh
How to view the run level in Linux system
Taglist and ctags installation in Ubuntu, simple and clear
RedHat configuration image media is yum source
Linux installation php and memcache process record
Linux/Unix simple shortcut summary
RACK provides power source for TCP BBR
Copy and paste shortcuts under Linux
Linux configuration ip address
Linux virtual machine three networking modes and remote login management
How to set the screen rotation of Win10 system
How to enable win10 administrator account
Win2003 restore of shared resources
Linux installation JDK for Linux system
Improve Windows 7 performance with three free programs to help
Win7 system notebook settings tips
How to set the win7 taskbar height?
WinXP opens the game prompt unknown directX error can not start how to solve