CentOS6小内存优化

VM虚拟机安装CentOS6.3
内存256M
优化前内存占用:89M


#关闭SELinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
#关闭蓝牙
chkconfig bluetooth off
#关闭cups
chkconfig cups off
#关闭ipv6
chkconfig ip6tables off
cat > /etc/modprobe.d/ipv6.conf << EOFI
alias net-pf-10 off
options ipv6 disable=1
EOFI
echo "NETWORKING_IPV6=off" >> /etc/sysconfig/network

优化后内存占用:55M