收起左侧

飞牛中的宝塔无法修改端口

2
回复
64
查看
[ 复制链接 ]

6

主题

12

回帖

0

牛值

江湖小虾

2025-8-10 17:36:57 显示全部楼层 阅读模式

打算想自定义宝塔访问端口, 但是失败了.

同时宝塔中如果想启用防火墙, 会出以下错误提示, 请问如何解决?

启动防火墙失败: ERROR: problem running ufw-init iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.9 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) sysctl: permission denied on key "net.ipv4.conf.all.accept_redirects" sysctl: permission denied on key "net.ipv4.conf.default.accept_redirects" sysctl: permission denied on key "net.ipv6.conf.all.accept_redirects" sysctl: permission denied on key "net.ipv6.conf.default.accept_redirects" sysctl: permission denied on key "net.ipv4.icmp_echo_ignore_broadcasts" sysctl: permission denied on key "net.ipv4.icmp_ignore_bogus_error_responses" sysctl: permission denied on key "net.ipv4.icmp_echo_ignore_all" sysctl: permission denied on key "net.ipv4.conf.all.lo**artians" sysctl: permission denied on key "net.ipv4.conf.default.lo**artians" Problem loading ipv6 (skipping) Problem running '/etc/ufw/before.rules' Problem running '/etc/ufw/after.rules' Problem running '/etc/ufw/user.rules'

收藏
送赞
分享

3

主题

3312

回帖

560

牛值

共建版主

社区共建团荣誉勋章飞牛百度网盘玩家

2025-8-10 17:55:13 显示全部楼层
如果你是ssh 装的宝塔,宝塔会与飞牛自带的防火墙和其他功能抢权限,非要用宝塔建议docker的。不要ssh的还有你现在即使卸了宝塔飞牛的环境已经破坏了建议重装

18

主题

128

回帖

30

牛值

社区共建团

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-8-10 17:59:31 显示全部楼层

自定义端口,可以去docker容器哪里去做定义,关于防火墙,日志提示没有root权限运行防火墙,可以在宝塔或者通过映射的ssh链接,切换到root用户尝试去执行启动命令

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则