CentOS 7:
Open ports:
firewall-cmd --zone=public --add-port=[port]/tcp --permanent firewall-cmd --reload
List all open ports:
firewall-cmd --list-ports
CentOS 7:
List all timezones:
timedatectl list-timezones
Set timezone:
timedatectl set-timezone Asia/Shanghai