• <acronym id="danlv"><form id="danlv"></form></acronym>
  • <dd id="danlv"><rt id="danlv"></rt></dd>
      <var id="danlv"><rt id="danlv"><big id="danlv"></big></rt></var>
      1. <code id="danlv"><ol id="danlv"></ol></code>
        <var id="danlv"><rt id="danlv"></rt></var>
          1. <code id="danlv"></code>
            返回首頁
            當前位置: 主頁 > 精通Office > Ubuntu教程 >

            CentOS 6 安裝后基本配置基礎教程

            時間:2012-07-09 16:16來源:知行網www.n1979.com 編輯:麥田守望者

            1.網絡配置
            (1)命令配置
            # ifconfig eth0 192.168.0.2 netmask 255.255.255.0   //ip地址、子網掩碼
            # route add default gw 192.168.0.1 dev eth0  //網關
            # hostname centos   //計算機名
            (2)文件配置
            <1>修改IP地址
            修改對應網卡的IP地址的配置文件
            # vi /etc/sysconfig/network-scripts/ifcfg-eth0
            DEVICE=eth0 (描述網卡對應的設備別名,例如ifcfg-eth0的文件中它為eth0)
            BOOTPROTO=static (設置網卡獲得ip地址的方式,可能的選項為static,dhcp或bootp,分別對應靜態指定的ip地址,通過dhcp協議獲得的ip地址,通過bootp協議獲得的ip地址)
            BROADCAST=192.168.0.255 (對應的子網廣播地址)
            HWADDR=00:07:E9:05:E8:B4  (對應的網卡物理地址)
            IPADDR=12.168.1.2 (如果設置網卡獲得ip地址的方式為靜態指定,此字段就指定了網卡對應的ip地址)
            IPV6INIT=no  (開啟或關閉IPv6;關閉no,開啟yes)
            IPV6_AUTOCONF=no  (開啟或關閉IPv6自動配置;關閉no,開啟yes)
            NETMASK=255.255.255.0 (網卡對應的網絡掩碼)
            NETWORK=192.168.1.0 (網卡對應的網絡地址)
            ONBOOT=yes (系統啟動時是否設置此網絡接口,設置為yes時,系統啟動時激活此設備)

            <2>修改網關
            修改對應網卡的網關的配置文件
            # vi /etc/sysconfig/network
            NETWORKING=yes (表示系統是否使用網絡,一般設置為yes。如果設為no,則不能使用網絡,而且很多系統服務程序將無法啟動)
            HOSTNAME=centos (設置本機的主機名,這里設置的主機名要和/etc/hosts中設置的主機名對應)
            GATEWAY=192.168.1.1 (設置本機連接的網關的IP地址。例如,網關為10.0.0.2)

            <3>修改DNS
            修改對應網卡的DNS的配置文件
            # vi /etc/resolv.conf
            nameserver 202.101.224.68 (域名服務器)
            nameserver 202.101.224.69 (域名服務器)

            <4>重新啟動網絡配置
            # service network restart

            # /etc/init.d/network restart

            2.軟件源配置
            國內速度較快的常用更新源如下:
            http://mirrors.163.com/centos/ 163-網易
            http://mirrors.ta139.com/centos/ 中國移動通信(山東移動)
            http://centos.ustc.edu.cn/centos/ 中國科學技術大學
            http://mirror.neu.edu.cn/centos/ 東北大學
            編輯yum配置文件:
            #vi /etc/yum.repos.d/CentOS-Base.repo
            [base]
            name=CentOS-$releasever – Base
            mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
            #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
            baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/

            http://mirrors.ta139.com/centos/$releasever/os/$basearch/

            http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/

            http://mirror.neu.edu.cn/centos/$releasever/os/$basearch/

            gpgcheck=1
            gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
            #released updates
            [updates]
            name=CentOS-$releasever – Updates
            mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
            #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
            baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/

            http://mirrors.ta139.com/centos/$releasever/updates/$basearch/

            http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/

            http://mirror.neu.edu.cn/centos/$releasever/updates/$basearch/

            gpgcheck=1
            gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
            #additional packages that may be useful
            [extras]
            name=CentOS-$releasever – Extras
            mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
            #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
            baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/

            http://mirrors.ta139.com/centos/$releasever/extras/$basearch/

            http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/

            http://mirror.neu.edu.cn/centos/$releasever/extras/$basearch/

            gpgcheck=1
            gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
            #additional packages that extend functionality of existing packages
            [centosplus]
            name=CentOS-$releasever – Plus
            mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
            #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
            baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/

            http://mirrors.ta139.com/centos/$releasever/centosplus/$basearch/

            http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/

            http://mirror.neu.edu.cn/centos/$releasever/centosplus/$basearch/

            gpgcheck=1
            enabled=0
            gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
            #contrib – packages by Centos Users
            [contrib]
            name=CentOS-$releasever – Contrib
            mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
            #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
            baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/

            http://mirrors.ta139.com/centos/$releasever/contrib/$basearch/

            http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/

            http://mirror.neu.edu.cn/centos/$releasever/contrib/$basearch/

            gpgcheck=1
            enabled=0
            gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
            然后使用如下命令更新到最新系統:
            #rpm –import /etc/pki/rpm-gpg-key*
            #yum upgrade
            3.安裝語言包
            從安裝盤進行安裝,找到對應rpm包:
            fonts-chinese-3.02-9.6.el5.noarch.rpm
            fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
            可以通過yum進行安裝,安裝辦法為:
            #yum groupinstall -support
            在上面的命令中, 是下列之一: assamese, bengali, chinese, gujarati, hindi, japanese, kannada, korean, malayalam, marathi, oriya, punjabi, sinhala, tamil, thai, 或 telegu。
            4.解壓縮軟件
            #yum install unrar unzip p7zip-full

            ------分隔線----------------------------
            標簽(Tag):Ubuntu Linux Android 操作系統 Unix fedora debian
            ------分隔線----------------------------
            推薦內容
            猜你感興趣
            日韩在线av免费视久久