Linux Installation and service control

Source: Internet
Author: User

Linux Installation and service control

First, version

Red Hat corporate Red Hat Enterprise Linux (RHEL)

Http://www.redhat.com

Fedora Community Edition

Maintained by Red Hat-funded community, targeted to individual desktop users

http://fedoraproject.org

CentOS Community Edition

Community Enterprise Operating System (Community business operating system)

http://www.centos.org

Second, installation steps

Insert the RHEL6 installation CD and boot the installer

Set the host boot device as the optical drive

Booting the host from the installation CD

Detecting the integrity of the installation disc

Configuring the Setup program

Select the installation process display language, keyboard type, initialize disk,

Partition

Set network address, System time zone, Administrator password

Customizing the packages to be installed

Copying files and completing the installation process

Takes 10-30 minutes

Initializing the Rhel 6 system

Iii. installation of Rhel

6.5 Experimental Steps, (for a new installation of the whole process, the middle of the omitted part, the actual operation with the following steps in different places directly click Next can be)

1.1

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/33/wKioL1hlNCiSlWSNAAEOKOYXAwQ482.jpg-wh_500x0-wm_3 -wmp_4-s_3274960197.jpg "title=" 1.jpg "alt=" Wkiol1hlncislwsnaaeokoyxawq482.jpg-wh_50 "/>

1.2

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8C/36/wKiom1hlNITDAY-_AADTgM6Pn30315.jpg-wh_500x0-wm_3 -wmp_4-s_140117847.jpg "title=" 2.jpg "alt=" Wkiom1hlnitday-_aadtgm6pn30315.jpg-wh_50 "/>

1.3

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/36/wKiom1hlNLyS0LW3AADfFMUvIyE130.jpg-wh_500x0-wm_3 -wmp_4-s_3168146299.jpg "title=" 3.jpg "alt=" Wkiom1hlnlys0lw3aadffmuviye130.jpg-wh_50 "/>

1.4

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8C/33/wKioL1hlNOzTlz5_AADMX5KhBPA998.jpg-wh_500x0-wm_3 -wmp_4-s_258418808.jpg "title=" 4.jpg "alt=" Wkiol1hlnoztlz5_aadmx5khbpa998.jpg-wh_50 "/>


1.5 (Memory tune to 2G, less than 2G graphical interface not installed)

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/33/wKioL1hlNSrzZ-OKAAEO6vZFDVE887.jpg-wh_500x0-wm_3 -wmp_4-s_4147667368.jpg "title=" 5.jpg "alt=" Wkiol1hlnsrzz-okaaeo6vzfdve887.jpg-wh_50 "/>

1.6 (can adjust the hard disk size according to your own needs)

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/36/wKiom1hlNWzBzcAAAAEQjDaXOWo598.jpg-wh_500x0-wm_3 -wmp_4-s_1948550576.jpg "title=" 6.jpg "alt=" Wkiom1hlnwzbzcaaaaeqjdaxowo598.jpg-wh_50 "/>


1.7 (after adjustment, click on the power directly)

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/33/wKioL1hlNZOBOj2YAALrIbwGJoQ302.jpg-wh_500x0-wm_3 -wmp_4-s_1747033800.jpg "title=" 7.jpg "alt=" Wkiol1hlnzoboj2yaalribwgjoq302.jpg-wh_50 "/>

1.8

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/33/wKioL1hlNbHThyYOAAEfRtikP9I054.jpg-wh_500x0-wm_3 -wmp_4-s_200215974.jpg "title=" 8.jpg "alt=" Wkiol1hlnbhthyyoaaefrtikp9i054.jpg-wh_50 "/>

1.9

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/36/wKiom1hlNcawbJ7nAACtkSPX6FI435.jpg-wh_500x0-wm_3 -wmp_4-s_28320400.jpg "title=" 9.jpg "alt=" Wkiom1hlncawbj7naactkspx6fi435.jpg-wh_50 "/>

2.0

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/36/wKiom1hlNeWTJbK2AADc-m4mgAg574.jpg-wh_500x0-wm_3 -wmp_4-s_1655821870.jpg "title=" 10.jpg "alt=" Wkiom1hlnewtjbk2aadc-m4mgag574.jpg-wh_50 "/>

2.1

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/33/wKioL1hlNgiwlNyWAACM3bdpsGI555.jpg-wh_500x0-wm_3 -wmp_4-s_2197093339.jpg "title=" 11.jpg "alt=" Wkiol1hlngiwlnywaacm3bdpsgi555.jpg-wh_50 "/>

2.2

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/33/wKioL1hlNijRE8c_AACV1zJ6VMY142.jpg-wh_500x0-wm_3 -wmp_4-s_3403523532.jpg "title=" 12.jpg "alt=" Wkiol1hlnijre8c_aacv1zj6vmy142.jpg-wh_50 "/>

2.3

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/37/wKiom1hlNinylzJ1AACJ_OSfGF8962.jpg-wh_500x0-wm_3 -wmp_4-s_756907538.jpg "title=" 13.jpg "alt=" Wkiom1hlninylzj1aacj_osfgf8962.jpg-wh_50 "/>

2.4

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8C/37/wKiom1hlNiqyp2EVAADYWomPZ14957.jpg-wh_500x0-wm_3 -wmp_4-s_2926155417.jpg "title=" 14.jpg "alt=" Wkiom1hlniqyp2evaadywompz14957.jpg-wh_50 "/>

2.5

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/37/wKiom1hlNorh1HfrAAB0qxWLHE4211.jpg-wh_500x0-wm_3 -wmp_4-s_4034877544.jpg "title=" 15.jpg "alt=" Wkiom1hlnorh1hfraab0qxwlhe4211.jpg-wh_50 "/>

2.6

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/33/wKioL1hlPZDAG-tRAAFBWs4kuuk019.jpg-wh_500x0-wm_3 -wmp_4-s_561011244.jpg "title=" 16.jpg "alt=" Wkiol1hlpzdag-traafbws4kuuk019.jpg-wh_50 "/>

2.7

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/33/wKioL1hlPFWwt5KNAABwNHe4ICw519.jpg-wh_500x0-wm_3 -wmp_4-s_2091271120.jpg "title=" 17.jpg "alt=" Wkiol1hlpfwwt5knaabwnhe4icw519.jpg-wh_50 "/>

2.8

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8C/37/wKiom1hlPFXzZflwAAD5rLTxs-4865.jpg-wh_500x0-wm_3 -wmp_4-s_3876571200.jpg "title=" 18.jpg "alt=" Wkiom1hlpfxzzflwaad5rltxs-4865.jpg-wh_50 "/>

2.9

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/37/wKiom1hlPFfz8exaAADJLZyVBrQ312.jpg-wh_500x0-wm_3 -wmp_4-s_1252540473.jpg "title=" 19.jpg "alt=" Wkiom1hlpffz8exaaadjlzyvbrq312.jpg-wh_50 "/>

3.0

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/33/wKioL1hlPFjRcTGxAABCrSKKSls867.jpg-wh_500x0-wm_3 -wmp_4-s_3719143043.jpg "title=" 20.jpg "alt=" Wkiol1hlpfjrctgxaabcrskksls867.jpg-wh_50 "/>

3.1

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/33/wKioL1hlPFnzNcboAABIYOxCtKY921.jpg-wh_500x0-wm_3 -wmp_4-s_704943631.jpg "title=" 21.jpg "alt=" Wkiol1hlpfnzncboaabiyoxctky921.jpg-wh_50 "/>

3.2

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/37/wKiom1hlPFuzfqmkAACTRuqEkn4609.jpg-wh_500x0-wm_3 -wmp_4-s_3263667087.jpg "title=" 22.jpg "alt=" Wkiom1hlpfuzfqmkaactruqekn4609.jpg-wh_50 "/>


3.3

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/37/wKiom1hlPF-zdoU6AAEUJkb1qrw661.jpg-wh_500x0-wm_3 -wmp_4-s_1611988061.jpg "title=" 23.jpg "alt=" Wkiom1hlpf-zdou6aaeujkb1qrw661.jpg-wh_50 "/>

3.4

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/33/wKioL1hlPGHjQOmzAAD1GkWOeIA512.jpg-wh_500x0-wm_3 -wmp_4-s_4136751738.jpg "title=" 24.jpg "alt=" Wkiol1hlpghjqomzaad1gkwoeia512.jpg-wh_50 "/>

3.5

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/33/wKioL1hlPGPQYLh5AACiQiibSpM928.jpg-wh_500x0-wm_3 -wmp_4-s_1221647996.jpg "title=" 25.jpg "alt=" Wkiol1hlpgpqylh5aaciqiibspm928.jpg-wh_50 "/>

3.6

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/37/wKiom1hlPGSiTrGPAAB3HUyWEmE279.jpg-wh_500x0-wm_3 -wmp_4-s_686742190.jpg "title=" 26.jpg "alt=" Wkiom1hlpgsitrgpaab3huyweme279.jpg-wh_50 "/>

3.7

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/37/wKiom1hlPGbjVn_4AADhkhIjJZA470.jpg-wh_500x0-wm_3 -wmp_4-s_39398398.jpg "title=" 27.jpg "alt=" Wkiom1hlpgbjvn_4aadhkhijjza470.jpg-wh_50 "/>

3.8

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/33/wKioL1hlPGnRPSbjAAEGiEmoHOI208.jpg-wh_500x0-wm_3 -wmp_4-s_775485448.jpg "title=" 28.jpg "alt=" Wkiol1hlpgnrpsbjaaegiemohoi208.jpg-wh_50 "/>

3.9

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8C/33/wKioL1hlPGzQiZmLAAEeVAXQDLM563.jpg-wh_500x0-wm_3 -wmp_4-s_1801083214.jpg "title=" 29.jpg "alt=" Wkiol1hlpgzqizmlaaeevaxqdlm563.jpg-wh_50 "/>

4.0

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/37/wKiom1hlPG3TgOcMAABmvAdQVhw929.jpg-wh_500x0-wm_3 -wmp_4-s_910817215.jpg "title=" 30.jpg "alt=" Wkiom1hlpg3tgocmaabmvadqvhw929.jpg-wh_50 "/>

4.1

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/37/wKiom1hlPHKx1bVWAAF3PHqW5xA197.jpg-wh_500x0-wm_3 -wmp_4-s_1197123159.jpg "title=" 31.jpg "alt=" Wkiom1hlphkx1bvwaaf3phqw5xa197.jpg-wh_50 "/>

Iv. Overview of the boot process

1.1 Post

The CPU, memory, graphics card, keyboard and other devices will be tested based on the settings in the motherboard Blos.

1.2 MBR Boot

First, based on the settings of the MBR (Master BIIT record master boot record) in the first sector of the hard disk.

mbr:446 Bytes Grub Boot Menu

64-byte Partitioned table

2-byte checksum

1.3 Grub Menu

Grub is considered to be the most widely used multi-system boot program. After the system control is passed to grub, the display's Action menu is provided to the user, and the Linux kernel files are loaded according to the selected (or default), and then the system control is transferred to the kernel.

1.4 Loading the Linux kernel

Linux kernel is a pre-compiled special binary file, between various hardware resources and system programs, responsible for resource allocation and scheduling. Once the kernel takes control of the system, it will fully control the operation of the entire Linux operating system.

1.5 init process Initialization

To complete the system boot process, the Linux kernel first loads the "/sbin/init" program in the system into memory (the running program is called the process, the PID number is 1), and the INIT process is responsible for completing a series of system initialization processes, the most Wait for the user to log on.

2.1 Inittab configuration file

After RHEL6 the new upstart start-up mode, improve the power-on efficiency, not a single/etc/inittab configuration file, but the various initialization configuration is scattered, and their respective related startup events.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/33/wKioL1hlPqXDeoZOAAD6lUMenco020.jpg-wh_500x0-wm_3 -wmp_4-s_4134764678.jpg "title=" 32.jpg "alt=" Wkiol1hlpqxdeozoaad6lumenco020.jpg-wh_50 "/>

Inittab File Contents

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8C/37/wKiom1hlPs7g16W8AAGhdKmN_LM129.jpg-wh_500x0-wm_3 -wmp_4-s_2805673030.jpg "title=" 33.jpg "alt=" Wkiom1hlps7g16w8aaghdkmn_lm129.jpg-wh_50 "/>

At the beginning of the "#" sign and the blank line, there is only one valid configuration record, with four fields in the configuration record used: Split, as shown in the bottom red box callout.

The corresponding is: Tag: runlevel: Action type: Program or script.

ID: A tag field, consisting of 1~4 characters, used to distinguish it from other configurations

Runlevels: The Run-level field, which by default includes different service combinations, called run levels, similar to normal startup, Safe mode, and so on in Windows. These runlevel are represented by the numbers 0, 1 ~ 5, respectively, 6来

Action: Action Type field

Describes the action category for the row configuration, initdefault means "set the run level that is entered by default when the system is initialized."

Process: Program or Script field

The actual operation of the line configuration, which can be specific commands, scripts and so on. is empty.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/33/wKioL1hlP5eza87pAAC4-0c5jK8566.jpg-wh_500x0-wm_3 -wmp_4-s_99491747.jpg "title=" 34.jpg "alt=" Wkiol1hlp5eza87paac4-0c5jk8566.jpg-wh_50 "/>


v. Service control and optimization of the start-up process

1.1 System Service Control

Control scripts for a variety of services are placed by default in the/etc/rc.d/init.d/directory, two ways to control the specified service:

Dedicated Service Control tool: Service Name control type

Or:/etc/rc.d/init.d/Service Name control type

Common control types: Start start

Stop Stop

Restart restart

Reload overloading

Status View state

1.2 Switching the Run level

1.2.1 View system Run level RunLevel

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/37/wKiom1hlQBzwy1o2AAASNE_MGHQ098.jpg-wh_500x0-wm_3 -wmp_4-s_3841377990.jpg "title=" 35.jpg "alt=" Wkiom1hlqbzwy1o2aaasne_mghq098.jpg-wh_50 "/>

Display results two characters representing the level before the switch, the current level


1.2.2 switching the operating level of the system

With the INIT program, you can use the number corresponding to the RunLevel (0~6) as the parameter.

Example: Switching graphics mode (5) to character mode (3) executable init 3

1.3 Optimizing the boot process

1.3.1 Common system Services

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/33/wKioL1hlQJag3NbEABQffNoQLT8041.jpg-wh_500x0-wm_3 -wmp_4-s_1752547253.jpg "title=" 36.jpg "alt=" Wkiol1hlqjag3nbeabqffnoqlt8041.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/33/wKioL1hlQLiBFr40ABNrlhXUenQ174.jpg-wh_500x0-wm_3 -wmp_4-s_1290382239.jpg "title=" 37.jpg "alt=" Wkiol1hlqlibfr40abnrlhxuenq174.jpg-wh_50 "/>

1.3.2 Optimized boot auto-load service

Use the NTSYSV tool * means turn on the spacebar to dismiss the * sign off

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8C/37/wKiom1hlQTPRsHjpAACpz5WEhOY271.jpg-wh_500x0-wm_3 -wmp_4-s_1601573307.jpg "title=" 38.jpg "alt=" Wkiom1hlqtprshjpaacpz5wehoy271.jpg-wh_50 "/>

When the NTSYSV command is executed separately, it is used only to manage services in the current runlevel, and the "-level" option allows you to manage the running services.

For example: Ntsysv--level 35 can open the Ntsysv hypervisor, and colleagues adjust the default boot state for various services in RunLevel 3 and 5.


Using the Chkconfig tool

Using Chkconfig is more efficient when you need to set the default startup state for a service at different run levels.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8C/33/wKioL1hlQbKz90xlAAC5Dleazyw691.jpg-wh_500x0-wm_3 -wmp_4-s_2227324451.jpg "title=" 39.jpg "alt=" Wkiol1hlqbkz90xlaac5dleazyw691.jpg-wh_50 "/>

Use the Chkconfig command with the "-list" option to view the default startup state of the specified system service at different run levels, without specifying a service name, which displays the default startup status for all services. 0, 1 ~ 6 in the output correspond to different runlevel.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/8C/37/wKiom1hlQd7Ri3tFAAA_yuNk6pk916.jpg "title=" 40.jpg "alt=" Wkiom1hlqd7ri3tfaaa_yunk6pk916.jpg "/>

The "on", "off" switches allow you to set the default startup state of the service, which indicates startup, shutdown, respectively.

Command format: Chkconfig--level run level list service name On|off

For example, specifies that the Postfix service does not start by default when entering character mode.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/8C/33/wKioL1hlQgeDHM1EAABHwCHbod4127.jpg "title=" 41.jpg "alt=" Wkiol1hlqgedhm1eaabhwchbod4127.jpg "/>



The above is the Linux installation and service control, if you have questions welcome advice.











650) this.width=650; "src=" Http://s5.51cto.com/wy "alt=" html> "/>

This article is from the "Jehau" blog, please be sure to keep this source http://daijiehao.blog.51cto.com/11959163/1887695

Linux Installation and service control

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.