美文网首页JAVA技术文章
centos7永久开放端口

centos7永久开放端口

作者: rejoice001 | 来源:发表于2017-12-07 19:54 被阅读8次

    FROM

    https://stackoverflow.com/questions/24729024/centos-7-open-firewall-port

    Use this command to find your active zone(s):

    firewall-cmd --get-active-zones
    
    

    It will say either public, dmz, or something else. You should only apply to the zones required.

    In the case of dmz try:

    firewall-cmd --zone=dmz --add-port=2888/tcp --permanent
    
    

    Otherwise, substitute dmz for your zone, for example, if your zone is public:

    firewall-cmd --zone=public --add-port=2888/tcp --permanent
    
    

    Then remember to reload the firewall for changes to take effect.

    firewall-cmd --reload
    

    相关文章

      网友评论

        本文标题:centos7永久开放端口

        本文链接:https://www.haomeiwen.com/subject/scvjixtx.html