centos怎么重启网卡

admin 阅读:50 2024-03-03

centos怎么重启网卡

centos6的网卡重启方法:

service network restart

centos7的网卡重启方法:

systemctl restart network

(推荐学习:linux视频教程

扩展知识:

DNS配置文件:

cat /etc/resolv.conf

设置主机和IP绑定信息:

cat /etc/hosts

设置主机名:

cat /etc/hostname

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

声明

1、部分文章来源于网络,仅作为参考。
2、如果网站中图片和文字侵犯了您的版权,请联系1943759704@qq.com处理!