安装没有图形化的CentOS是直接执行ifconfig
ifconfig command not found
需要找到网络配置文件:cd /etc/sysconfig/network-scripts/
查看:ls
编辑: vi ifcfg-ens32
默认的no改为yes
:wq 保存
重启reboot
查看:ip addr
下载:net-tools
yum install -y net-tools
然后可以执行:ifconfig
安装没有图形化的CentOS是直接执行ifconfig
ifconfig command not found
需要找到网络配置文件:cd /etc/sysconfig/network-scripts/
查看:ls
编辑: vi ifcfg-ens32
默认的no改为yes
:wq 保存
重启reboot
查看:ip addr
下载:net-tools
yum install -y net-tools
然后可以执行:ifconfig