大漠駝鈴

          置身浩瀚的沙漠,方向最為重要,希望此blog能向大漠駝鈴一樣,給我方向和指引。
          Java,Php,Shell,Python,服務器運維,大數據,SEO, 網站開發、運維,云服務技術支持,IM服務供應商, FreeSwitch搭建,技術支持等. 技術討論QQ群:428622099
          隨筆 - 238, 文章 - 3, 評論 - 117, 引用 - 0
          數據加載中……

          搭建debian5.0.3linux集群2

          安裝完操作系統后輸入用戶和密碼進入系統,進行網絡配置
          vim /etc/network/interfaces
          # The loopback 
          interface
          # automatically added when upgrading
          auto lo
          iface lo inet loopback

          # The first NIC
          # automatically added when upgrading
          auto eth0 # 指定網卡
          iface eth0 inet 
          static
          address 
          192.168.0.100 # 指定 IP Address ,視您的環境而定。
          netmask 
          255.255.255.0 # 網絡屏蔽,通常 C Class 網絡這樣設定即可。風輕云淡
          gateway 
          192.168.0.1 # 指定 Default gateway,視您的環境而定 。

          dns-nameservers 192.168.0.2 DNS設置
          設置DNS也可以在

          vim /etc/resolv.conf
          nameserver 192.168.0.2

          配置apt源
          安裝apt-spy
          vim /etc/apt/sourcelist
          在最后一行加入
          deb http://http.us.debian.org/debian stable main
          退出vim
          運行apt-get update

          apt-get install apt-spy
          apt-spy update
          apt-spy -d unstable -a asian -t 5

          這就就找到了本地連接的速度最快的5個源。

          # The loopback interface
          # automatically added when upgrading
          auto lo
          iface lo inet loopback

          # The first NIC
          # automatically added when upgrading
          auto eth0 # 指定網卡
          iface eth0 inet static
          address 192.168.0.100 # 指定 IP Address ,視您的環境而定。
          netmask 255.255.255.0 # 網絡屏蔽,通常 C Class 網絡這樣設定即可。
          gateway 192.168.0.1 # 指定 Default gateway,視您的環境而定 。




          posted on 2010-04-27 16:11 草原上的駱駝 閱讀(240) 評論(0)  編輯  收藏 所屬分類: Linux

          主站蜘蛛池模板: 梁山县| 静海县| 辽阳县| 舟山市| 璧山县| 湖南省| 赣榆县| 台东县| 胶南市| 洪雅县| 元江| 密云县| 厦门市| 兴安县| 昌都县| 高平市| 龙泉市| 兴国县| 昆山市| 通榆县| 阿尔山市| 白城市| 定边县| 德格县| 江西省| 新和县| 台山市| 龙岩市| 雷波县| 金平| 南乐县| 报价| 安化县| 军事| 商河县| 自治县| 且末县| 保定市| 井冈山市| 尉氏县| 临桂县|