Linux系统优化脚本

 时间:2026-02-15 15:09:12

1、#!/bin/bash

#系统优化脚本,关闭除了crond、network、sshd之外其它不常用的服务。

for i in `ls /etc/rc3.d/S*`

do

CURSRV=`echo $i|cut -c 15-`

echo $CURSRV

case $CURSRV in

crond | irqbalance | microcode_ctl | network | random | sshd | syslog | local )

  echo "Base services, Skip!"

  ;;

*)

  echo "change $CURSRV to off"

  chkconfig --level 235 $CURSRV off

  service $CURSRV stop

  ;;

esac

done

  • Linux Mint:系统优化
  • win7如何进行系统优化
  • Windows7系统优化C盘优化
  • 如何进行Windows系统优化与加速
  • 系统优化,释放你的网速
  • 热门搜索
    什么是大数据 mp是什么意思 不以为然什么意思 什么是关联词 glad是什么意思 喝蜂蜜水有什么好处 啤酒加味精的作用是什么 乳头疼痛是什么原因引起的 扁桃体切除有什么影响 什么食物补血