avatar

sunday

Sunday's Blog

  • 首页
Home ubuntu端口访问不了,关闭oracle cloud ubuntu 22.04的系统防火墙
文章

ubuntu端口访问不了,关闭oracle cloud ubuntu 22.04的系统防火墙

Posted 2024-01-15 Updated 2024-01- 15
By sunday
1~2 min read

1.执行关闭系统自带的防火墙

iptables -P INPUT ACCEPT 
iptables -P FORWARD ACCEPT  
iptables -P OUTPUT ACCEPT  
iptables -F

执行以上命令后可以解除oracle cloud ubuntu 22.04系统自带的防火墙,可是重启机子后防火墙又自动启动了,这个坑了我几回,

2.永久关闭oracle cloud ubuntu 22.04 系统的自带的防火墙

apt-get purge netfilter-persistent && reboot

或者直接删除文件

rm -rf /etc/iptables && reboot

下次重启的时候机子就可以顺利访问了

软件使用
ubuntu
License:  CC BY 4.0
Share

Further Reading

Dec 14, 2024

cursor IDE 编辑器从命令行打开

1.打开Cursor应用程序 2.按下 CMD(Ctrl) + Shift + P 打开命令面板

Dec 7, 2024

n8n使用http form-data上传文件

新建一个http node 节点,参数如下图所示,其他参数可自行设置 主要是1.开启 Send Body 2.设置n8n Binary File类型,然后在 input Data Field Name 填入上一个节点的二进制文件名即可 也可复制我的JSON文件到你的n8n上测试 My_workflo

Dec 5, 2024

supabase postgres updatedAt 自动更新时间戳

由于在prisma 创建model时,@updatedAt 不起作用 model Book { id String @id @default(dbgenerated("gen_random_uuid()")) createdAt DateTime @default(dbge

OLDER

Logto的Machine-to-machine配置,获取token请求Management API

NEWER

443端口被占用,cloudflare实现非标准端口的代理,以实现域名不加端口号的访问

Recently Updated

  • nextjs15使用better-sqlite3的连接报错问题
  • nextjs + clerk + supabase + realtime 实时监听数据库更改
  • 解决nextjs15使用useLocalStorage报错的问题
  • mac上使用nodejs appium控制chrome浏览器
  • 2024年终总结

Trending Tags

nginx acme 强制跳转HTTPS nodejs 代理 mac 神器 vue3 工具 docker

Contents

©2025 sunday. Some rights reserved.

Using the Halo theme Chirpy