1.进入自己的实例,设置子网

1.1登录甲骨文https://cloud.oracle.com/

1.2进入要设置的实例https://cloud.oracle.com/compute/instances

**1.3

2.开放所有端口,当然也可以设置需要开放的端口,这里是所有开放

3.正常情况下甲骨文服务器开放了端口基本还是不能正常访问的,还需要删除Iptable规则,禁止firewall开机启动等等,直接ssh命令操作

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
最后修改:2022 年 02 月 14 日
如果觉得我的文章对你有用,请随意赞赏