佳木斯湛栽影视文化发展公司

主頁(yè) > 知識(shí)庫(kù) > CentOS系統(tǒng)環(huán)境精簡(jiǎn)優(yōu)化詳解

CentOS系統(tǒng)環(huán)境精簡(jiǎn)優(yōu)化詳解

熱門標(biāo)簽:解決方案 家政服務(wù)網(wǎng)絡(luò) 硅谷的囚徒呼叫中心 美團(tuán) 外呼系統(tǒng) 電話機(jī)器人搭建 服務(wù)器配置 百度競(jìng)價(jià)點(diǎn)擊價(jià)格的計(jì)算公式

第一步、刪除不必要的自帶軟件包

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"

第二步、升級(jí)centos系統(tǒng)

yum update #更新系統(tǒng)

yum clean all #清理全部緩存文件

第三步、禁用seLinux

sestatus #先執(zhí)行看seLinux狀態(tài),如果不是disabled,就需要執(zhí)行下面步驟,否則不要執(zhí)行

vi /etc/selinux/config

SELINUX=disabled #禁用SeLinux

SELINUX=enforcing #使用SeLinux

第四步、禁止IPV6(執(zhí)行后需要reboot重啟)

vi /etc/modprobe.conf #打開文件,把下面兩行加到最后

alias net-pf-10 off

alias ipv6 off

第五步、初始化防火墻

touch /etc/sysconfig/iptables

iptables -F

iptables -X

iptables -Z

service iptables save

service iptables restart

第六步、禁止無(wú)用服務(wù)

#! /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

這樣通過(guò)上述6步驟,就可以完成對(duì)centos精簡(jiǎn)和優(yōu)化。

標(biāo)簽:邢臺(tái) 撫州 防城港 臨沂 烏蘭察布 北海 南昌 韶關(guān)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《CentOS系統(tǒng)環(huán)境精簡(jiǎn)優(yōu)化詳解》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    漯河市| 霞浦县| 富蕴县| 高邑县| 饶阳县| 屏东市| 屯昌县| 雷波县| 利川市| 怀仁县| 株洲县| 河西区| 红安县| 元氏县| 诏安县| 周至县| 长宁区| 鱼台县| 鹤峰县| 墨竹工卡县| 柳江县| 沧州市| 容城县| 丹阳市| 垣曲县| 体育| 辽宁省| 平湖市| 乌鲁木齐县| 尖扎县| 梁平县| 克东县| 于田县| 分宜县| 健康| 莲花县| 凉山| 汪清县| 彭山县| 马龙县| 横山县|