网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

CentOS 6.8 设置网络

时间:2024-10-14 00:59:04

1、打开CentOS,并输入账号密码登陆。

CentOS 6.8 设置网络

2、输入:cd /etc/sysconfig/network-scripts

CentOS 6.8 设置网络

3、输入:ls查看当前目录中的文件。

CentOS 6.8 设置网络

4、输入:vi ifcfg-eth0将光标移动至 ONBOOT=no按下键盘的 i将no改为yes按下 esc 键,按下 Shift+:输入 wq 回车

CentOS 6.8 设置网络CentOS 6.8 设置网络CentOS 6.8 设置网络

5、输入:service network restart

CentOS 6.8 设置网络

6、输入:ping www.baidu.com测试是否可以联网

CentOS 6.8 设置网络

7、现在就可以使用 XShell连接了。

CentOS 6.8 设置网络
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com