解决 ifconfig 无法使用的问题
需要安装 net-tools 工具
yum install net-tools
设置网卡启动
service network start
设置开机网卡自启动
首先需要查看网卡名称
使用 ifconfig 查看,一般为 enp0s3 或者为 eth0
vi /etc/sysconfig/network-script/ifcfg-enp0s3
找到 ONBOOT 设置值为 YES
yum install net-tools
service network start
首先需要查看网卡名称
使用 ifconfig 查看,一般为 enp0s3 或者为 eth0
vi /etc/sysconfig/network-script/ifcfg-enp0s3
找到 ONBOOT 设置值为 YES