chkconfig ip6tables off
# Vim基本优化
cat >> /root/.vimrc < set number set ruler set nohlsearch set shifwidth=2 set tabstop=4 set expandtad set cindent set autoindent set mouse=v syntax on EOF # 精简开机启动服务 # 只保留 crond rsyslog sshd network 四个服务 for i in `chkconfig --list | grep 3:on | awk '{print $1}'`; do chkconfig --level 3 $i off; done for CURSRV in crond rsyslog sshd network; do chkconfig --level 3 $CURSRV on; done # 重启 reboot
閱讀更多 Linux猿 的文章