4

新安装的 Centos 7.6 mini 网络无法使用

 3 years ago
source link: https://www.bugcatt.com/archives/962
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

阿航在给公司部署本地服务器的时候碰到了这个问题, 新安装的 Centos 7.6 mini 网络无法使用. 所以在此记录踩坑历程.

方法一: 选择完整安装(推荐)

这个年代, 硬件设备的价格并不高. 所以服务器的配置不会太低. 所以尽量安装完整版. 选择最小安装会遇到源源不断的坑, 浪费生命😑😑

如果条件不允许, 请看方法二↓.

方法二: 配置网络

1. 找到 /etc/sysconfig/network-scripts

cd /etc/sysconfig/network-scripts

2. 编辑ifcfg-enXXX

vi ifcfg-enp1s0

3. 按 i 进入编辑模式, 修改:

ONBOOT=yes

4. 按ESC键, 输入:wq保存

5. 重启网络服务


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK