搭建debian5.0.3linux集群2
安裝完操作系統后輸入用戶和密碼進入系統,進行網絡配置
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,視您的環境而定 。
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也可以在# 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設置
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