-X11 (XWindow) #6-Restart (do not set initdefault to 6) These levels are specified in the/etc/inittab file. This file is the main file found by the INIT program. The first service to run is the file stored in the/etc/rc. d directory. In most Linux releases, the startup script is located in/etc/rc. d/init. d. These scripts are connected to the/etc/rc. d/rcN. d directory by using LN commands. (Here N is the running level 0-6) 3. Running level Configur
(do not set initdefault to 6)
These levels are specified in the/etc/inittab file. This file is the main file found by the INIT program. The first service to run is the file stored in the/etc/rc. d directory. In most Linux releases, the startup script is located in/etc/rc. d/init. d. These scripts are connected to the/etc/rc. d/rcN. d directory by using LN commands. (Here N is the running level 0-6), and each directory of different levels is linked to
connect to the/etc/rc. d/rcN. d directory. (Here N is the running level 0-6) for example/etc/rc. the s10network under D/rc2.d is connected to/etc/rc. d/init. d. Therefore, we can know that the files under rc2.d are related to Operation Level 2. "S" at the beginning of the file indicates that "start" indicates that the service is started, and "10" indicates the order in which the service is started. For example, in the same directory, you can also see
internal elements are selectable.
Note: after the last Alpha or beta release, a carry is given to the official customer release version to make it 0 at the position of "Z. For example, 2.2.6 is officially released by the customer and replaced by version 2.3.0.
3. Software release rule example
3.1 brief description
Used for file directories and compressed packages.
ProjectName-x.y.bYYYYMMDD [. N] (daily build)
ProjectName-x.y.Mn (milestone)
ProjectName-x.y.Betan (test release)
ProjectName-x.y.RC
serviceChkconfig -- level httpd 2345 on # Sets httpd to on when the running level is 2, 3, 4, or 5.Chkconfig -- list # list all system startup statusesChkconfig -- list mysqld # list mysqld service settingsChkconfig -- level 35 mysqld on # Set mysqld to run at level 3 and 5. -- level 35 indicates that the operation is only executed at level 3 and 5, on indicates that the operation is started, and off indicates that the operation is disabled.Chkconfig mysqld on # Set mysqld to on at each level.
/LINUXjishu/27489.html of data address of/etc/rc. local and/etc/init. dThis is the same directory, of course, the content is the same. As for the implementation mechanism, in fact,/etc/init. d is a symbolic link file that points to/etc/rc. d/init. d. You can run the following command to see it: # ls-ld/etc/init. dlrwxrwxrwx 1 root 11 2009-05-09/etc/init. d-> rc. d/init. d: ln-s/etc/rc. d/init. d/etc/init. d
2. Add the auto-Start ServiceChmod 775 tomcat_start # Change permission chkconfig -- a
"
Chmod a + x/etc/init. d/stop_oracle.sh
4. Create a link with system startup and shutdown:
Add the Automatic startup Link under/etc/rc2.d. The command is as follows:
Ln-s/etc/init. d/start_oracle.sh/etc/rc. d/rc2.d/S16start_oracle
Ln-s/etc/init. d/start_oracle.sh/etc/rc. d/rc3.d/S16start_oracle
Ln-s/etc/init. d/start_oracle.sh/etc/rc. d/rc5.d/S16start_oracle
Add the automatic close link under/etc/rc0.d. The command is as follows:
Ln-s/etc/init. d/stop_oracle.sh/etc/rc. d/rc2.d/K01stop_oracle
Ln
started to complete the boot process. Therefore, init is always the first process (its process number is always 1 ).In the past, the kernel used init to find it. The correct position (for Linux) is/sbin/init. If the kernel cannot find init, it will try to run/bin/sh. If the run fails, the system will also fail to start.Ii. Operation LevelSo what is the runtime level?Simply put, the running level isOperating SystemCurrently runningFunctionLevel. This level ranges from 1 to 6 and has different fu
officially released by the customer and replaced by version 2.3.0.3. Software release rule example3.1 brief descriptionUsed for file directories and compressed packages.ProjectName-x.y.bYYYYMMDD [. N] (daily build)ProjectName-x.y.Mn (milestone)ProjectName-x.y.Betan (test release)ProjectName-x.y.RCn (stabilization release)ProjectName-x.y.RTX [. Rn] (official release, or official release with update package)3.2 Detailed DescriptionUsed for the internal description of the software, such as "about
process number is always 1 ).In the past, the kernel used init to find it. The correct position (for Linux) is/sbin/init. If the kernel cannot find init, it will try to run/bin/sh. If the run fails, the system will also fail to start.Ii. Operation LevelSo what is the runtime level?Simply put, the running level is the function level currently running in the operating system. This level ranges from 1 to 6 and has different functions.Different runtime levels are defined as follows:#0-stop (never s
-user command line mode without network connectionLevel 3: multi-user command line mode with network connectionLevel 4: unavailable
Level 5: multi-user mode with graphic interface
Level 6: restart
------------------------
-- List: displays the running status of all system services. If a specific service is specified, only the system running level of a service is displayed.
1) Add a system service
1. First, put the execution w file into the/etc/init. d/directory.
2. chkconfig-add servicename
Add
-- level httpd 2345 on # Sets httpd to on when the running level is 2, 3, 4, or 5.Chkconfig -- list # list all system startup statusesChkconfig -- list mysqld # list mysqld service settingsChkconfig -- level 35 mysqld on # Set mysqld to run at level 3 and 5. -- level 35 indicates that the operation is only executed at level 3 and 5, on indicates that the operation is started, and off indicates that the operation is disabled.Chkconfig mysqld on # Set mysqld to on at each level. "Each level" incl
, 4, or 5.Chkconfig -- list # list all system startup statusesChkconfig -- list mysqld # list mysqld service settingsChkconfig -- level 35 mysqld on # Set mysqld to run at level 3 and 5. -- level 35 indicates that the operation is only executed at level 3 and 5, on indicates that the operation is started, and off indicates that the operation is disabled.Chkconfig mysqld on # Set mysqld to on at each level. "Each level" includes 2, 3, 4, and 5 levels.
How to add a service:1. The service script mu
Summary of Linux running level and all shutdown commands, and linux-level shutdown commands
What is a running level? Simply put, the running level is the function level currently running in the operating system. It allows some programs to start at one level, but does not start at another level.
Valid logon modes for Linux are 0 ~ There are a total of 10 types, but the limits of up to 6 types of UNIX systems are used, generally only 1 to 6 are valid. Different functions are available from 1 to 6.
Android Enables automatic font switching in multiple languages
After an android project is created, the default res Directory includes layout, values, drawable, and so on.
These are the default resource file directories of the program. To implement the multi-language version, we need to add the corresponding resource files for the implementation language.
First, click the Add Android Xml File button, select the Values single region, and enter the File name: string. xml, as shown in the follow
/development_prefs.xml, find the code for the [USB debugging] switch, and then add a [Wifi debugging] switch to it, the Code is as follows:
Packages/apps/Settings/res/values-zh-rCN/strings. xml:
Packages/apps/Settings/res/values/strings. xml:
2. In the packages/apps/Settings/src/com/android/settings/DevelopmentSettings. java file, perform logical processing on the added "Wifi debugging" switch.
First, define several variables of the switch, as show
the simplified Chinese character information can be placed in Values-ZH-RCN When the system language environment is simplified Chinese, the Chinese character information is displayed. In Android, many related configuration items can be involved in resource adaptive activities in this way, including screen size, screen orientation, screen resolution, language environment, and touch screen type, SDK version. The system will give all configuration items
Recently, to modify the settings in the packages/apps directory, you need to add some functions. The code to be added is simulated on Eclipse, so it is moved to the android SDK source code.
Two problems occurred:
1)
The "@ override" overwrites the code written by eclipse in the window and prompts incorrect use of the "@ override" Overwrite method during compilation in the Linux Command Line, the same file appears several times "@ override", but this error is prompted only in two of them. I
Level
So what is the runtime level?
Simply put, the running level is the function level currently running in the operating system. This level ranges from 1 to 6 and has different functions.
Different runtime levels are defined as follows:
#0-stop (never set initdefault to 0)
#1-single-user mode # s init S = init 1
#2-multiple users without NFS
#3-full multi-user mode (Standard Operation Level)
#4-useless
#5-X11 multi-user graphic mode (XWindow)
#6-Restart (do not set initdefault to 6)
ThisSome
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.