6-Step implementation of the CentOS system environment streamlined optimization
-
Publish time: 2014-11-03 14:59:27 edit: ahlinux.com
First step, remove unnecessary packages yum Remove deployment_guide-en-us finger cups-libs cups ypbindyum remove bluez-libs Desktop
The first step, remove unnecessary self-brought packages
Perl ">yum remove deployment_guide-en-us finger cups-libs cups ypbindyum remove bluez-libs desktop-file-utils PPP rp-pp Poe wireless-tools Irda-utilsyum Remove sendmail* samba* talk-server finger-serverbind* xinetdyum Remove nfs-utils nfs-utils-lib rdate fetchmail Eject ksh mkbootdisk mtoolsyum remove syslinux tcsh STA Rtup-notification talk APMD rmt dump setserial portmap yp-toolsyum groupremove "Mail Server" "games and Entert" Ainment " x Window System" "x Software Development" Yum Groupremove "Development Libraries" "Dialup networ King Support ' yum Groupremove ' games and entertainment ' "sound and Video" "Graphics" "Editors" Yum GROUPR Emove "text-based Internet" "Gnome Desktop Environment" " Gnome Software development" /c11>
Step two, upgrade the CentOS system
All #清理全部缓存文件
Step three, disable SELinux
#使用SeLinux
Fourth step, prohibit IPV6 (requires reboot restart after execution)
vi/etc/modprobe.conf #打开文件, add the following two lines to the last alias net-pf-offalias IPv6 off
Fifth step, initialize the firewall
Touch/etc/sysconfig/iptablesiptables-fiptables-xiptables-zservice iptables saveservice iptables restart
Sixth step, prohibit useless service
#! /bin/bashservice acpid offservice ATD stopservice auditd stopservice Avahi-daemon stopservice avahi-dnsconfd stopservice Bluetooth StopService conman StopService cpuspeed stopservice cups stopservice dnsmasq stopservice dund stopservice firstb Oot stopservice Hidd stopservice httpd stopservice ibmasm stopservice ip6tables stopservice IrDA stopservice kdump Stopser Vice Lm_sensors stopservice mcstrans stopservice messagebus stopservice microcode_ctl stopservice netconsole stopservice Netfs stopservice Netplugd stopservice NFS StopService NFSLock StopService nscd stopservice ntpd stopservice oddjobd stopservice pand stopservice pcscd stopservice portmap stopserv Ice Psacct stopservice rdisc stopservice restorecond stopservice rpcgssd stopservice rpcidmapd stopservice RPCSVCGSSD Stop Service SASLAUTHD stopservice sendmail stopservice setroubleshoot stopservice SMB stopservice vncserver stopservice Winbi nd stopservice wpa_supplicant stopservice xfs stopservice ypbind stopservice yum-updatesd stopchkconfig acpid offchkconfi G ATD Offchkconfig AUDITD offchkconfig avahi-daemon offchkconfig avahi-dnsconfd offchkconfig bluetooth offchkconfig Conma n offchkconfig cpuspeed offchkconfig cups offchkconfig dnsmasq offchkconfig dund offchkconfig firstboot offchkconfig Hidd Offchkconfig httpd offchkconfig ibmasm offchkconfig ip6tables offchkconfig IrDA offchkconfig kdump offchkconfig lm_sensor s offchkconfig mcstrans offchkconfig messagebus offchkconfig microcode_ctl offchkconfig netconsole offchkconfig netfs off Chkconfig Netplugd offchkconfIG NFS offchkconfig nfslock offchkconfig nscd offchkconfig ntpd offchkconfig oddjobd offchkconfig pand offchkconfig PCSCD Offchkconfig portmap offchkconfig psacct offchkconfig rdisc offchkconfig restorecond offchkconfig RPCGSSD offchkconfig RP CIDMAPD offchkconfig rpcsvcgssd offchkconfig saslauthd offchkconfig sendmail offchkconfig setroubleshoot offchkconfig SMB offchkconfig vncserver offchkconfig winbind offchkconfig wpa_supplicant offchkconfig xfs offchkconfig ypbind OFFCHKCO Nfig yum-updatesd off
This allows you to streamline and optimize CentOS with the above 6 steps.
- This article from: Hobby Linux Technology Network
- This article link: http://www.ahlinux.com/centos/6849.html
6-Step implementation of the CentOS system environment streamlined optimization