MENU

Linux 时区同步以及关闭防火墙

July 16, 2021 • Read: 371 • Linux

查看当前时间

date

安装时间同步模块

yum -y install ntpdate

修改模块

ntpdate -u ntp.api.bz
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate pool.ntp.org 

关闭防火墙

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
回到上个页面 QR Code
QR Code for this page
Tipping QR Code