下载此文档

Linu 性能调优的几种方法.docx


文档分类:IT计算机 | 页数:约26页 举报非法文档有奖
1/26
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/26 下载此文档
文档列表 文档介绍
Linux 性能调优的几种方法 按照传统,Linux不同的发行版本和不同的内核对各项参数及设置均做了改动,从而使得系统能够获得更好 的性能。下边将分四部分介绍在 Red Hat Enterprise Linux AS 和 SUSE LINU
Red Hat: /sbin/service sendmail stop SUSE LINUX: /etc/ stop 也可以配置在下次启动的时候不自动启动某个进程,还是 sendmail: Red Hat: /sbin/chkconfig sendmail off
SUSE LINUX: /sbin/chkconfig -s sendmail off
除此之外,LINUX还提供了图形方式下的进程管理功能。对于 Red Hat,启动GUI,使用如下命令: /usr/bin/redhat-config-services 或者鼠标点击 Main Menu -> System Settings -> Server Settings -> Services.
Jnlxl
eh0□口口00口 □ □ □ □ □
atd
autafs
bcrrGSZO
charge n-udp
cups-lpd
daylime
daytime-udp
dc_client
Edki n 目 Run lew I: S
Descrption
*apmd is used for monitonng battery status and logging it via sysbgfSJ- It caXalso be used for shutting dobvn thE machine when the battery is bw.
f Etsi tu =,
To change the current state, highHght the daemon and click Stop.
The check mark indicates the daemon will start at the next reboot.
Figure 10-1 Red Ha t Service Con figure tion G U!
提示:并非所有的daemons都会显示在该配置界面,如要看到全部的daemons,使用如下命令: /sbin/chkconfig -list
对于SUSE LINUX,图形界面是YaST2,可用如下命令来启动
/sbin/yast2 runlevel 或者如 Figure 10-2所示用鼠标点击 Browse: YaST/ -> YaST modules -> System -> Runlevel editor
戦 Service Configuration
File View 虫 tiorn Edit Run level Help
Save Revert
Runlevel editor: default runlevel
With the runlevel editor you can set the default runlevel and specify in detail which system services you want to be started ]n which runlevel.
Warning! The runle^el editor is an expert tool. Only
Figure 10-2 SUSE LINUX YaST 怕门曲冏罰商
2 关闭 GUI
只要有可能,就不要在Linux server上启动GUI图形,通常在Linux server上,没有必要启动GUI。,所有 的管理任务均可在命令行方式下完成、或者通过重定向X和Web浏览器界面。有几个可用的基于Web的 工具(例如 webmin, Linuxconf, 和 SWAT).
需要的时候启动GUI,用完马上关闭GUI。多数情况,服务器运行在runlevel 3,即在机器启动的时候不进 入GUI。命令行方式下,执行startx来启动Xserver.
查看 runlevel 的命令:runlevel
会显示出上次和当前的 runlevel (如 N 5 表示没有上次的 runlevel (N) ,当前的 runlevel 是 5).
在不同的 runlevels 之间切换,使用命令 init
如切换到 run level 3,键入命令 init 3
下边是对 Linux 中不同 runlevels 的简要描述
-0 - Halt停机(不要将0设置为缺省,否则服务器启动后就会马上关闭)
-1 - Sing

Linu 性能调优的几种方法 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数26
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xiaobaizhua
  • 文件大小551 KB
  • 时间2022-05-11