Watch 2 Star 2 Fork 0

WayneCarder / best-server-installotherMPL-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
服务安装最佳实践、常用 Linux 命令速查 spread retract

Clone or download
COMMAND.md 414 Bytes
Copy Edit Web IDE Raw Blame History
WayneCarder authored 2020-02-03 11:44 . 常用命令速查

常用命令速查

Firewalls 开放端口

#添加指定需要开放的端口:
firewall-cmd --add-port=8080/tcp --permanent

#重载入添加的端口:
firewall-cmd --reload

#查询指定端口是否开启成功:
firewall-cmd --query-port=8080/tcp

#移除指定端口:
firewall-cmd --permanent --remove-port=8080/tcp

#查看所有开启的端口
firewall-cmd --zone=public --list-ports

Comment ( 0 )

Sign in for post a comment

other
1
https://gitee.com/oswayne/best-server-install.git
git@gitee.com:oswayne/best-server-install.git
oswayne
best-server-install
best-server-install
master

Search