美文网首页
VPS | 甲骨文如何正确开放端口

VPS | 甲骨文如何正确开放端口

作者: i_木木木木木 | 来源:发表于2023-06-06 10:51 被阅读0次

    一、进入自己的实例,设置子网

    开放所有端口,当然也可以设置需要开放的端口

    二、删除、关闭、打开各自系统的无用附件、防火墙、端口及规则

    Ubuntu系统下:

    开放所有端口
    iptables -P INPUT ACCEPT
    iptables -P FORWARD ACCEPT
    iptables -P OUTPUT ACCEPT
    iptables -F
    
    Ubuntu镜像默认设置了Iptable规则,关闭它
    apt-get purge netfilter-persistent
    reboot
    或者强制删除
    rm -rf /etc/iptables && reboot
    

    Centos系统下:

    删除多余附件
    systemctl stop oracle-cloud-agent
    systemctl disable oracle-cloud-agent
    systemctl stop oracle-cloud-agent-updater
    systemctl disable oracle-cloud-agent-updater
    
    停止firewall
    systemctl stop firewalld.service
    禁止firewall开机启动
    systemctl disable firewalld.service
    

    相关文章

      网友评论

          本文标题:VPS | 甲骨文如何正确开放端口

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