centos7 firewall
- firewall-cmd --add-port=8080/tcp --permanent
- firewall-cmd --reload
- firewall-cmd --query-port=16379/tcp
Centos7时间不正确修复
使用 date -R 查看时区是否正确
date -R => Mon, 02 Aug 2021 20:58:25 -0400 , 正确的应该是 +0800
修改时区
timedatectl set-timezone Asia/Shanghai
安装NTP
sudo yum -y install ntp
使用 ntpdate 更新系统时间
ntpdate pool.ntp.org
使用 date 查看时区是否正确
date
启动ntpd daemon,持续校准时间
systemctl start ntpd
查看ntpd daemon是否启动
systemctl status ntpd