1、centos7 最小化安装后没有ifconfig命令

解决方法: yum -y install  net-tools  

2、centos7 设置静态ip地址

编辑  /etc/sysconfig/network-scripts/ifcfg-ens33 

centos7安装后基本配置

BOOTPROTO=static    #设置为静态分配

ONBOOT=yes             #开机自启动

IPADDR=192.168.8,71

NETMASK=255.255.255.0 

GATEWAY=192.168.8.2

DNS1=192.168.8.2

3、设置时间、时区

①安装ntp服务

yum -y install ntp 

②查看当前时间和时区

timedatectl 

③设置时区

timedatectl set-timezone Asia/Shanghai

④同步时间

ntpdate time.windows.com

 

 

相关文章:

  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2021-06-25
  • 2021-05-21
  • 2021-11-13
  • 2021-07-27
  • 2019-03-11
  • 2022-12-23
相关资源
相似解决方案