centos7操做

配置靜態IPlinux

vi /etc/sysconfig/network-scripts/ifcfg-eno16777984
IPADDR=****
GATEWAY=****
NETMASK=255.255.255.0

配置DNScode

vi /etc/resolv.conf
nameserver ****

查看防火牆狀態server

firewall-cmd --state

中止firewallip

systemctl stop firewalld.service

禁止firewall開機啓動ci

systemctl disable firewalld.service

關閉selinux 
進入到/etc/selinux/config文件cmd

vi /etc/selinux/config

將SELINUX=enforcing改成SELINUX=disabled配置

修改主機名稱network

hostnamectl set-hostname xxx
相關文章
相關標籤/搜索