linux系统ifconfig命令不显示IP地址或者只显示127.0.0.1

xiaoxiao2021-02-28  20

1.在Linux系统中输入命令:   vi  /etc/sysconfig/network-scripts/ifcfg-ens33

2.修改文件中的ONBOOT=no,将no改为yes

3.重启服务: service network restart

转载请注明原文地址: https://www.6miu.com/read-2623113.html

最新回复(0)