Just 6 steps to make your CentOS system environment more streamlined and optimized

Source: Internet
Author: User
Tags iptables

The first step is to remove the unwanted self-carrying packages

Yum Remove deployment_guide-en-us finger cups-libs cups ypbind yum remove bluez-libs desktop-file-utils PPP Rp-pppoe Wirel  Ess-tools irda-utils Yum Remove sendmail* samba* talk-server finger-server bind* xinetd yum Remove nfs-utils nfs-utils-lib Rdate fetchmail Eject Ksh mkbootdisk mtools yum Remove syslinux tcsh startup-notification talk apmd RMT dump Setserial PO Rtmap yp-tools yum groupremove "Mail Server" "Games and Entertainment" "X Window System" "x Software Development" Yum Premove "Development Libraries" "Dialup networking Support" Yum Groupremove "Games and Entertainment" "Sound and Video" G Raphics "Editors" Yum groupremove "text-based Internet" "Gnome Desktop Environment" "Gnome Software Development"

Step two, upgrade the CentOS system

Yum Update #更新系统 yum clean all #清理全部缓存文件

Step three, disable SELinux

Sestatus #先执行看seLinux状态, if not disabled, you need to perform the following steps, otherwise do not perform vi/etc/selinux/config selinux=disabled #禁用SeLinux selinux= Enforcing #使用SeLinux

Fourth step, prohibit IPV6 (requires reboot reboot after execution)

Vi/etc/modprobe.conf #打开文件, add the following two lines to the last alias net-pf-10 off alias IPv6 off

Step fifth, initialize the firewall

Touch/etc/sysconfig/iptables iptables-f iptables-x iptables-z service iptables save service iptables restart

Sixth step, prohibit useless service

#! /bin/bash Service acpid off service ATD stop Service AUDITD stop service Avahi-daemon stop service AVAHI-DNSCONFD stop Ser Vice Bluetooth stop service conman stop service cpuspeed stop service Cups stop service DNSMASQ stop service Dund stop Ser Vice Firstboot stop service Hidd stop service httpd stop service ibmasm stop service ip6tables stop service IrDA stop serv Ice kdump stop service lm_sensors stop service Mcstrans stop service Messagebus stop service microcode_ctl stop service NE Tconsole Stop service netfs stop service NETPLUGD Stop service NFS stop service Nfslock stop service NSCD stop service NTP D Stop service ODDJOBD stop service pand stop service PCSCD stop service portmap stop service PSACCT stop service Rdisc St OP Service restorecond stop service RPCGSSD stop service RPCIDMAPD stop service RPCSVCGSSD stop service SASLAUTHD stop Ser Vice SendMail stop service setroubleshoot stop service SMB stop service vncserver stop service winbind stop service Wpa_su Pplicant Stop Service XFS Stop service ypbind stop service yum-updatesd stop chkconfig acpid off Chkconfig ATD out Chkconfig auditd off chkconf IG Avahi-daemon off Chkconfig avahi-dnsconfd off chkconfig bluetooth off Chkconfig conman off Chkconfig cpuspeed off CHKCO Nfig cups off chkconfig dnsmasq off Chkconfig dund off Chkconfig firstboot off Chkconfig hidd off Chkconfig httpd off CHKC Onfig ibmasm off Chkconfig ip6tables off Chkconfig IrDA out Chkconfig kdump off chkconfig lm_sensors off Chkconfig Mcstran  s 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 of F chkconfig pcscd off Chkconfig portmap off Chkconfig psacct off Chkconfig rdisc out Chkconfig restorecond off Chkconfig R PCGSSD off Chkconfig rpcidmapd off Chkconfig rpcsvcgssd off Chkconfig saslauthd off chkconfig sendmail off Chkconfig Setro Ubleshoot off ChkconfigSMB off Chkconfig vncserver off Chkconfig winbind off Chkconfig wpa_supplicant off Chkconfig xfs off Chkconfig ypbind off Chkconfig yum-updatesd off

By doing this 6 steps above, you can streamline and optimize the CentOS.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.