用户工具

站点工具


linux:centos

这是本文档旧的修订版!


CentOS

Firewall

CentOS 7:

Open ports:

firewall-cmd --zone=public --add-port=[port]/tcp --permanent
firewall-cmd --reload

List all open ports:

firewall-cmd --list-ports

Timezone

CentOS 7:

List all timezones:

timedatectl list-timezones

Set timezone:

timedatectl set-timezone Asia/Shanghai
linux/centos.1532069253.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)