首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

批量治理Linux系统服务

2013-07-09 
批量管理Linux系统服务批量管理Linux系统服务#!/bin/sh#关闭所有系统服务for i in `chkconfig --list |awk

批量管理Linux系统服务
批量管理Linux系统服务

#!/bin/sh
#关闭所有系统服务
for i in `chkconfig --list |awk '{print $1}'`;
do chkconfig $i off;
echo  chkconfig $i off;
done
#开启指定的服务
for i in crond network iptables messagebus udev-post ntpd sshd rsyslog sysstat;
do chkconfig $i --level 3 on;
echo chkconfig $i --level 3 on;
done

热点排行