centos6的網(wǎng)卡重啟方法:
service network restart
centos7的網(wǎng)卡重啟方法:
systemctl restart network
(推薦學(xué)習(xí):linux視頻教程)
擴展知識:
DNS配置文件:
cat /etc/resolv.conf
設(shè)置主機和IP綁定信息:
cat /etc/hosts
設(shè)置主機名:
cat /etc/hostname
相關(guān)教程推薦:CentOS使用教程
centos6的網(wǎng)卡重啟方法:
service network restart
centos7的網(wǎng)卡重啟方法:
systemctl restart network
(推薦學(xué)習(xí):linux視頻教程)
擴展知識:
DNS配置文件:
cat /etc/resolv.conf
設(shè)置主機和IP綁定信息:
cat /etc/hosts
設(shè)置主機名:
cat /etc/hostname
相關(guān)教程推薦:CentOS使用教程