10.1.3. 端口管理

10.1.3.1. 端口增加

iptables -I INPUT -p tcp --dport 9101 -j ACCEPT
service iptables save
service iptables restart

# 查看 8080端口是否使用
netstat -na|grep 8080

10.1.3.2. centos7

# 查看防火墙状态

firewall-cmd --state

# 停止firewall

systemctl stop firewalld.service

# 禁止firewall开机启动

systemctl disable firewalld.service

10.1.3.3. 时区设置

CentOS7、RHEL7、Scientific Linux 7、Oracle Linux 7

最好的方法是使用timedatectl命令

# timedatectl list-timezones |grep Shanghai    #查找中国时区的完整名称
Asia/Shanghai
# timedatectl set-timezone Asia/Shanghai    #其他时区以此类推
© All Rights Reserved            updated 2019-01-22 06:20:44

results matching ""

    No results matching ""