Sometimes we need to set up a script in the server to let it start itself when it boots. The method is as follows: cd /etc/init.dvi youshell.sh #Change yourshell.sh to your own script name and write your own script and save and exit. When writing the script, please add the following comment #add for chkconfig#chkconfig: 2345 70 30#description: the description of the shell #About the short description of the script#processname: servicename #first process name, set after the start It will be used when the description: 2345 refers to the running level of the script, that is, it can be run in 4 modes of 2345, 234 is the text interface, 5 is the graphical interface X70 refers to the future startup sequence number of the script, if other The startup sequence number of the program is smaller than 70 (such as 44, 45), then the script needs to wait for these programs to start before starting. 30 is the stop sequence number of the script when the system is shut down. It should be noted that the code is designed to call the environment variable, which needs to be specified in the script in advance, because the /etc/profile file is not loaded when the system is started. The script adds a source /etc/profile before the call to add executable permissions to the script: chmod +x youshell.sh uses the chkconfig command to set the script to start chkconfig --add servicename so your script can be booted It runs automatically.
If the liunx system is started, I just said about it, but the specific process is not well understo
ReiserFS file system is a very good file system, especially for large files or a large number of sma
If you have used Linux for a while and feel that the hard disk is not enough, you
With the advantage of strong stability, embedded DVR is increasingly accepted by the security indust
Linux memory view command free
ADSL telephone line interference causes the network to drop frequently
Linux File Sharing - Process and Open File
Whether the Linux system is hacked How to judge
Novice Academy: Installing Perl and Perl modules under Linux
Some information in GCC embedded assembly
CentOS 6.4 install oracle 11G environment preparation
Red Hat 9.0 configures the Xmanager
Ubuntu Linux system support for tablets released
Oracle, informix database environment variable settings and compile
GALAXY GTX760 general Jingdong value 1699 yuan
Windows Remote Shell (WinRM) use introduction
Windows 7 default IE8 minimum window width height limit
Loading WIN8 into U disk and mobile hard disk tutorial
Win10 search function can not be used how to do
80% of Windows 8 users will have a touch screen
How to enable or disable the display of icons as thumbnails in Windows 8 system
The vdi file created under VirtualBox cannot be used after moving [Workaround]
World of Warcraft movie stills first exposed November release trailer
Crack the win2003 system remote desktop over the maximum number of connections