Configuration after installation of Cnetos7 (network, time, firewall)

Recently, I re-downloaded a linux virtual machine and found that many things were forgotten. Write a knowledge backup here

networking:

Configure network files:

vim /etc/sysconfig/network-scripts/ifcfg-ens33

Specific configuration:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=4772a0ed-196a-4105-94d6-af12e6599ee7
DEVICE=ens33
ONBOOT=yes

ZONE=public
IPADDR="192.168.88.130"
NETMASK="255.255.255.0"
GATEWAY="192.168.88.2"
DNS1="192.168.88.2"

The last few lines should be consistent with the virtual machine configuration:

 Set time time:

# 安装ntp
yum -y install ntp
# 启动
systemctl start ntpd
# 设置开机自启
systemctl enable ntpd

Firewall configuration:

firewall configuration

Articles are updated over time

at last,

        Hope the article is helpful to you. .

Guess you like

Origin blog.csdn.net/m0_63930592/article/details/129843032