Chapter One basic Linux optimization

Source: Internet
Author: User


Experimental requirements:

N Set the Linux system to automatically enter the character mode interface after each boot.

use ntsysv tools simultaneously adjust 2 3 4 5 service status in run level, close the following services: atd bluetooth cup postfix

N Use the Chkconfig tool to adjust the startup status in individual services.

N The Cups service is set to off in the default startup state of Run Level 3.

N Set the network service to Enabled at run level 3,5 in the default startup state.

N Set the Postfix service to Enabled at run level 3,5 in the default startup state, and the remaining levels to off.

N Check the current system memory usage, log back in to character mode, and check the memory consumption again.

N use the init command to switch to graphics mode, confirm the run level again and view the memory footprint, and compare the differences between the optimized service and the different operating levels

。

1) View and configure run levels

The first step To view the default run level

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/38/wKiom1gMwC-j01BrAAFGSdFSL6g069.jpg-wh_500x0-wm_3 -wmp_4-s_603814658.jpg "title=" image 1.jpg "alt=" wkiom1gmwc-j01braafgsdfsl6g069.jpg-wh_50 "/>


Step Two Configure Run Level

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/38/wKiom1gMwFSROIH4AABfPTC-6RU713.jpg-wh_500x0-wm_3 -wmp_4-s_1619979442.jpg "title=" image 51.jpg "alt=" wkiom1gmwfsroih4aabfptc-6ru713.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/36/wKioL1gMwGvTdG6CAAB_6xHNytI687.jpg-wh_500x0-wm_3 -wmp_4-s_4096489237.jpg "title=" image 52.jpg "alt=" wkiol1gmwgvtdg6caab_6xhnyti687.jpg-wh_50 "/>


Step three

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/38/wKiom1gMwISgKm0gAABW_owSVrI757.jpg-wh_500x0-wm_3 -wmp_4-s_2252961895.jpg "title=" image 53.jpg "alt=" wkiom1gmwisgkm0gaabw_owsvri757.jpg-wh_50 "/>


Fourth Step

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/38/wKiom1gMwKDj5bMJAAAwVgDIbys161.jpg-wh_500x0-wm_3 -wmp_4-s_947391124.jpg "title=" image 54.jpg "alt=" wkiom1gmwkdj5bmjaaawvgdibys161.jpg-wh_50 "/>

2) Manage Services with ntsysv Tools

The first step

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/36/wKioL1gMwLPRfGeEAABNyVkWM44046.jpg-wh_500x0-wm_3 -wmp_4-s_2347076263.jpg "title=" image 55.jpg "alt=" wkiol1gmwlprfgeeaabnyvkwm44046.jpg-wh_50 "/>


Step Two

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/38/wKiom1gMwNGxFRzTAAB-Dy9JZk8999.jpg-wh_500x0-wm_3 -wmp_4-s_691235938.jpg "title=" image 56.jpg "alt=" wkiom1gmwngxfrztaab-dy9jzk8999.jpg-wh_50 "/>

3) using the chkconfig tool

The first step

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/36/wKioL1gMwOWQ2cMaAAEKobJIBtE637.jpg-wh_500x0-wm_3 -wmp_4-s_2825797546.jpg "title=" image 57.jpg "alt=" wkiol1gmwowq2cmaaaekobjibte637.jpg-wh_50 "/>


Step Two

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/38/wKiom1gMw1DTZCk7AACZZu4c5tc026.jpg-wh_500x0-wm_3 -wmp_4-s_2978069992.jpg "title=" image 58.jpg "alt=" Wkiom1gmw1dtzck7aaczzu4c5tc026.jpg-wh_50 "/>


Step Three

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/36/wKioL1gMwP7w9CdDAACGQfLuOig779.jpg-wh_500x0-wm_3 -wmp_4-s_1963103832.jpg "title=" image 59.jpg "alt=" Wkiol1gmwp7w9cddaacgqfluoig779.jpg-wh_50 "/>


Fourth Step

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/38/wKiom1gMwajRmMD5AABmP0D5pHA260.jpg-wh_500x0-wm_3 -wmp_4-s_2199940573.jpg "title=" image 60.jpg "alt=" wkiom1gmwajrmmd5aabmp0d5pha260.jpg-wh_50 "/>

4) View current system memory

The first step Graphical Interface

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/38/wKiom1gMwUigc0cpAABL5oJv0xY286.jpg-wh_500x0-wm_3 -wmp_4-s_3822340470.jpg "title=" image 61.jpg "alt=" Wkiom1gmwuigc0cpaabl5ojv0xy286.jpg-wh_50 "/>

Step Two Character Interface

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/36/wKioL1gMwV-yIuowAAApnx-6bJ8750.jpg-wh_500x0-wm_3 -wmp_4-s_1756098349.jpg "title=" image 62.jpg "alt=" wkiol1gmwv-yiuowaaapnx-6bj8750.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/36/wKioL1gMwj6Q4AH9AABPUDD66gU458.jpg-wh_500x0-wm_3 -wmp_4-s_2689166135.jpg "title=" image 63.jpg "alt=" Wkiol1gmwj6q4ah9aabpudd66gu458.jpg-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/38/wKiom1gMwiig5gjnAABO5Vz-JNc736.jpg-wh_500x0-wm_3 -wmp_4-s_22906038.jpg "title=" image 64.jpg "alt=" wkiom1gmwiig5gjnaabo5vz-jnc736.jpg-wh_50 "/>


5) Compare memory usage before and after service open

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/38/wKiom1gMwgHTDzF-AAA0235am9g226.jpg-wh_500x0-wm_3 -wmp_4-s_3342556687.jpg "title=" image 65.jpg "alt=" wkiom1gmwghtdzf-aaa0235am9g226.jpg-wh_50 "/>


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/36/wKioL1gMwe6gHy6CAABGQ3dnBtY479.jpg-wh_500x0-wm_3 -wmp_4-s_4059742670.jpg "title=" image 66.jpg "alt=" wkiol1gmwe6ghy6caabgq3dnbty479.jpg-wh_50 "/>


Chapter One basic Linux optimization

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.