七叶笔记 » Linux » centos怎么重启网卡

centos怎么重启网卡

centos6的网卡重启方法:

service network restart

centos7的网卡重启方法:

systemctl restart network

(推荐学习:linux视频教程)

扩展知识:

DNS配置文件:

cat /etc/resolv.conf

设置主机和IP绑定信息:

cat /etc/hosts

设置主机名:

cat /etc/hostname

相关教程推荐:CentOS使用教程

相关文章