一键优化CentOS服务

服务器优化很麻烦诶,复制下面内容粘贴到你的putty回车,当然可以保存为脚本 文件头加上#!/bin/sh,另存为sh文件即可.


service   acpid off
service   atd    stop
service   auditd stop
service   avahi-daemon stop
service   avahi-dnsconfd stop
service   bluetooth stop
service   conman stop
service   cpuspeed stop
service   cups stop

service   dnsmasq stop
service   dund stop
service   firstboot stop
service   hidd stop
service   httpd stop
service   ibmasm stop
service   ip6tables stop
service   iptables stop
service   irda stop
service   kdump stop
service   lm_sensors stop
service   mcstrans stop
service   messagebus stop
service   microcode_ctl stop
service   netconsole stop
service   netfs stop
service   netplugd stop
service   nfs stop
service   nfslock stop
service   nscd stop
service   ntpd stop
service   oddjobd stop
service   pand stop
service   pcscd stop
service   portmap stop
service   psacct stop
service   rdisc stop
service   restorecond stop
service   rpcgssd stop
service   rpcidmapd stop
service   rpcsvcgssd stop
service   saslauthd stop
service   sendmail stop
service   setroubleshoot stop
service   smb stop
service   vncserver stop
service   winbind stop
service   wpa_supplicant stop
service   xfs stop
service   ypbind stop
service   yum-updatesd stop
chkconfig   acpid off
chkconfig   atd    off
chkconfig   auditd off
chkconfig   avahi-daemon off
chkconfig   avahi-dnsconfd off
chkconfig   bluetooth off
chkconfig   conman off
chkconfig   cpuspeed off
chkconfig   cups off
chkconfig   dnsmasq off
chkconfig   dund off
chkconfig   firstboot off
chkconfig   hidd off
chkconfig   httpd off
chkconfig   ibmasm off
chkconfig   ip6tables off
chkconfig   iptables off
chkconfig   irda off
chkconfig   kdump off
chkconfig   lm_sensors off
chkconfig   mcstrans off
chkconfig   messagebus off
chkconfig   microcode_ctl off
chkconfig   netconsole off
chkconfig   netfs off
chkconfig   netplugd off
chkconfig   nfs off
chkconfig   nfslock off
chkconfig   nscd off
chkconfig   ntpd off
chkconfig   oddjobd off
chkconfig   pand off
chkconfig   pcscd off
chkconfig   portmap off
chkconfig   psacct off
chkconfig   rdisc off
chkconfig   restorecond off
chkconfig   rpcgssd off
chkconfig   rpcidmapd off
chkconfig   rpcsvcgssd off
chkconfig   saslauthd off
chkconfig   sendmail off
chkconfig   setroubleshoot off
chkconfig   smb off
chkconfig   vncserver off
chkconfig   winbind off
chkconfig   wpa_supplicant off
chkconfig   xfs off
chkconfig   ypbind off
chkconfig   yum-updatesd off

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值