Linux 目录结构

关闭selinux

  临时关闭 :setenforce 0

  永久关闭:vim /etc/selinux/config  SELINUX=disabled 

 

网卡配置文件:

  /etc/sysconfig/network-scripts/ifcfg-eth0

  查看网卡配置:

    ip a

  重启网卡:

    systemctl restart network

    ifdown [网卡名] ifup [网卡名]

  关闭网络管理服务:

    systemctl stop Networkmanager

    systemcrl disable --now NetworkManager

 

  判断ssh服务是否开启:

    systemctl status sshd

 

修改主机名:

  1、vim /etc/hostname  # 需要重启

  2、hostnamectl set-hostname newname  # 立即生效

 

posted on 2021-12-11 22:04  秋不语  阅读(32)  评论(0)    收藏  举报

导航