最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

  發(fā)布時(shí)間:2017-01-08 15:07:20   作者:佚名   我要評(píng)論
今天小編將為大家?guī)?lái)通過(guò)6步驟,完成對(duì)centos精簡(jiǎn)和優(yōu)化講解。希望對(duì)大家會(huì)帶來(lái)幫助,有需要的朋友一起去看看吧

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

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)化。

相關(guān)文章

  • centos如何安裝桌面環(huán)境?centos安裝桌面環(huán)境的方法

    默認(rèn)最小化安裝,或者因?yàn)樾枰诎惭b系統(tǒng)的時(shí)候沒(méi)有安裝桌面組建,一些朋友不知道centos如何安裝桌面環(huán)境?今天小編為大家?guī)?lái)了centos安裝桌面環(huán)境的方法;有需要的朋友
    2016-12-16
  • CentOS系統(tǒng)下安裝轉(zhuǎn)PDF和SWF環(huán)境

    本文將為大家具體的介紹如何在CentOS系統(tǒng)下安裝轉(zhuǎn)PDF和SWF環(huán)境的方法,希望可以幫助的大家
    2016-11-28
  • CentOS 添加環(huán)境變量的三種方法(圖文教程)

    有用戶反映不知道如何在CentOS環(huán)境下添加環(huán)境變量,其實(shí)方法很簡(jiǎn)單的,下面小編就為大家介紹三種CentOS添加環(huán)境變量上網(wǎng)方法,希望可以幫助到大家
    2016-11-09
  • CentOS 6.3下安裝部署CHEF環(huán)境教程

    這篇文章主要介紹了CentOS 6.3下安裝部署CHEF環(huán)境教程,Chef是由Ruby與Erlang寫成的配置管理軟件,它以一種純Ruby的領(lǐng)域?qū)S谜Z(yǔ)言(DSL)保存系統(tǒng)配置“食譜(recipes)”或“做飯
    2014-09-10
  • CentOS 6.2系統(tǒng)安裝和基本軟件環(huán)境配置

    這兩天在整公司出問(wèn)題的服務(wù)器,順手記錄了以下過(guò)程,供以后參考,也可以供大家學(xué)習(xí)參考
    2013-12-03
  • CentOS搭建LAMP服務(wù)器環(huán)境硬盤分區(qū)方案分享

    我們?cè)谑褂肔inux作為服務(wù)器的過(guò)程中,經(jīng)常會(huì)對(duì)硬盤中分區(qū)如何更合理的分配而感覺(jué)疑惑,特別是剛開始接觸Linux的朋友,對(duì)于服務(wù)器中硬盤空間各分區(qū)的合理分配,心中也沒(méi)有底
    2013-06-07
  • CentOS5.x系統(tǒng)內(nèi)核優(yōu)化詳解

    今天小編為大家?guī)?lái)的是CentOS5.x系統(tǒng)內(nèi)核優(yōu)化詳解;希望對(duì)大家會(huì)有幫助,有需要的朋友一起去看看吧
    2017-01-08
  • CentOS6.X 字符集優(yōu)化詳解

    今天小編為大家?guī)?lái)的是CentOS6.X 優(yōu)化字符集詳解,希望會(huì)對(duì)大家?guī)?lái)幫助,有需要的朋友一起去看看吧
    2016-12-21
  • Centos內(nèi)存使用與優(yōu)化技巧

    今天小編為大家?guī)?lái)的是Centos內(nèi)存使用與優(yōu)化技巧;希望對(duì)大家學(xué)習(xí)Centos會(huì)有幫助;有需要的朋友可以過(guò)來(lái)看看
    2016-12-07
  • CentOS系統(tǒng)基礎(chǔ)優(yōu)化知識(shí)匯總

    很多朋友對(duì)CentOS系統(tǒng)基礎(chǔ)優(yōu)化不太了解,下面小編為大家?guī)?lái)了關(guān)于CentOS系統(tǒng)基礎(chǔ)優(yōu)化知識(shí)匯總;希望對(duì)大家會(huì)有幫助
    2016-11-01

最新評(píng)論

峨眉山市| 南丹县| 五原县| 古田县| 江都市| 承德县| 天峨县| 来安县| 台州市| 云龙县| 石楼县| 湖口县| 中西区| 邛崃市| 搜索| 禄劝| 蕲春县| 宜章县| 阆中市| 新津县| 临沭县| 永年县| 太湖县| 佛坪县| 石渠县| 嫩江县| 石嘴山市| 新津县| 灯塔市| 开远市| 同仁县| 登封市| 抚松县| 宁化县| 吉木萨尔县| 聊城市| 平原县| 德阳市| 安仁县| 青铜峡市| 拜城县|