centos at how to open a port?

Command is as follows:

--permanent --add-cmd-Firewall Port = 22 / TCP (port 22 open)
firewall-cmd --reload

 

Guess you like

Origin www.cnblogs.com/dakewei/p/11665789.html