1.IP的配置
临时生效

    ifocnfig 主机名 IP地址(如 172.16.191.108/24

永久生效(需要进入配置文件):
    vi /etc/sysconfig/network-scripts/ifcfg-主机名
    1、Centos 7 系统的初化始配置



2.主机名的配置

临时生效
hostname 主机名
永久生效:
hostnamectl set-hostname 主机名

 

 

3.关闭firewalld

   临时生效:

systemctl stop firewalld.service

 

   永久生效:

systemctl disable  firewalld.service

 

4.关闭selinux

  临时生效:

setenforce 0 

 

  永久生效:

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled

 

 

 


 

 

 

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-11-17
  • 2021-09-17
  • 2022-12-23
  • 2021-07-31
  • 2021-04-11
  • 2021-12-23
猜你喜欢
  • 2022-03-09
  • 2022-12-23
  • 2022-01-18
  • 2022-01-18
  • 2021-05-26
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案