Linux 随笔

vmware安装centos7 mini后启用网络

1.输入命令

cd /etc/sysconfig/network-scripts

2.敲入ls命令查看文件夹下的文件

3.修改第一个配置文件ifcfg-ens33,将onboot=no改为onboot=yes

4.重启网络服务

service network restart

5.测试网络

ping www.baidu.com

修改hostname

 hostnamectl set-hostname centos-minion-1
 shutdown -r now
原文地址:https://www.cnblogs.com/dongshuangjie/p/8214341.html