一、虛擬機(jī)的安裝(VM, Virtual Box)
二、centos的安裝(centos6.5)
三、連接(xshell, SecureCRT)
1.最好設(shè)置靜態(tài)IP
cd /etc/sysconfig/network-scripts/
vi ifcfg-eth0
添加
IPADDR=192.168.x.x ?(需要設(shè)置的靜態(tài)IP地址)
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
BOOTPROTO="static" ?
保存并退出后,重啟centos系統(tǒng),嘗試ping www.baidu.com

2.xshell連接
a.新建一連接

b.點(diǎn)擊連接并輸入賬號密碼后,即可連接成功

c.連接成功
