In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of CentOS system environment simplification and optimization, which is very detailed and has certain reference value. Friends who are interested must finish it!
The first step is to delete unnecessary built-in software packages
Yum remove Deployment_Guide-en-US finger cups-libs cups ypbind
Yum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-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 portmap yp-tools
Yum groupremove "Mail Server"Games and Entertainment"X Window System"X Software Development"
Yum groupremove "Development Libraries"Dialup Networking Support"
Yum groupremove "Games and Entertainment"Sound and Video"Graphics"Editors"
Yum groupremove "Text-based Internet"GNOME Desktop Environment"GNOME Software Development"
Step 2: upgrade the centos system
Yum update # update system
Yum clean all # Clean up all cache files
Step 3: disable seLinux
Sestatus # check the seLinux status first. If it is not disabled, you need to perform the following steps, otherwise do not
Vi / etc/selinux/config
SELINUX=disabled # disable SeLinux
SELINUX=enforcing # using SeLinux
Step 4: disable IPV6 (restart reboot is required after execution)
Vi / etc/modprobe.conf # Open the file and add the following two lines to the end
Alias net-pf-10 off
Alias ipv6 off
Step 5, initialize the firewall
Touch / etc/sysconfig/iptables
Iptables-F
Iptables-X
Iptables-Z
Service iptables save
Service iptables restart
Step 6. Ban useless services.
#! / bin/bash
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 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 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
In this way, the centos can be streamlined and optimized through the above six steps.
The above is all the contents of the article "sample Analysis of streamlining and Optimization of CentOS system Environment". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.