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