Centos7 重启网卡
生活随笔
收集整理的這篇文章主要介紹了
Centos7 重启网卡
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
centos6的網卡重啟方法:
service network restart
centos7的網卡重啟方法:
systemctl restart network
重啟DNS服務器:
systemctl restart named
?
2、DNS配置文件:cat /etc/resolv.conf
設置主機和IP綁定信息:cat /etc/hosts?
設置主機名:cat /etc/hostname
3、可以使用nmtui文本框方式修改IP
4、關閉防火墻并設置開機不啟動
查看防火墻狀態:systemctl status firewalld.service?
關閉:systemctl stop firewalld?
開啟:systemctl start firewalld?
開機自動關閉:systemctl disable firewalld?
開機自動啟動:systemctl enable firewalld?
查看開機是否啟動:chkconfig --list|grep network(RHLE6)
5、臨時和永久關閉Selinux
臨時關閉:?
_getenforce?
Enforcing
_setenforce 0?
setenforce:SELinux is disabled
永久關閉:
_vim /etc/selinux/config總結
以上是生活随笔為你收集整理的Centos7 重启网卡的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 国内首家,每周到岗上班3天,携程率先推出
- 下一篇: C语言再学习 -- 再论内存管理