何故

  • 首页
  • Office技巧
  • Linux
  • Python
  • 关于
  1. 首页
  2. 懒癌日记
  3. 正文

oracle cloud免费linux实例服务不能访问问题解决

2021年5月11日 6433点热度 0人点赞 0条评论

开放端口

机器默认仅开通了22端口,如果你创建服务器没有勾选公网IP,后来又申请的公网IP,那么所有端口都没开放!

1)查看实例详情,点击【虚拟云网络】

 

 

 

2)然后点击子网中的数据!

 

 

 

3)再点安全列表中的数据。

 

 

4)入站规则,可见仅开放了22端口!ICMP 也是关闭的(禁ping)!

 

 

 

5)编辑第一条数据。将目的地端口范围里的数据清空!保存即可!!

 

 

 

6)或者更暴力一点开放所有协议!!!

 

 

 

 

6)同时还需要关闭iptabls 或者 firewalld !

centos操作如下
1
2
3
4
5
6
7
8
9
10
11
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#关闭iptables
service iptables stop
#去掉iptables开机启动
chkconfig iptables off

或者开放所有端口!

1
2
3
4
sudo iptables –P INPUT ACCEPT
sudo iptables –P FORWARD ACCEPT
sudo iptables –P OUTPUT ACCEPT
sudo iptables –F

 

标签: 暂无
最后更新:2021年5月11日

大魔王

如你所见,有些才华横溢出了屏幕

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2024 何故. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

滇ICP备20001921号-1

滇公网安备53262102000532号