mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #688] 在OpenWrt中运行二进制文件会导致openwrt的reboot、poweroff命令无法使用 #346
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LemonCrab666 on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/688
在Immortalwrt 23.05.4中使用nginx-ui设置为开机运行nohup /opt/nginx-ui/nginx-ui -config /opt/nginx-ui/app.ini后会导致openwrt无法重启关机,并且没有系统日志,请重新测试下
@0xJacky commented on GitHub (Oct 30, 2024):
你好,以下的是我的操作步骤:
下载镜像文件 https://firmware-selector.immortalwrt.org/?version=23.05.4&target=x86%2F64&id=generic
创建虚拟机,使用 qcow2 作为硬盘
配置 Openwrt 网络 /etc/config/network 使得系统可以连接网络
下载 nginx-ui x86-64 linux 版本可执行文件(beta.39)到 /opt/nginx-ui 目录下
执行 opkg update 和 opkg install coreutils-nohup 安装 nohup
使用

nohup /opt/nginx-ui/nginx-ui -config /opt/nginx-ui/app.ini &命令启动 nginx-ui网页可以正常加载,Openwrt 终端工作正常,可以使用 reboot,poweroff 命令。
@0xJacky commented on GitHub (Oct 30, 2024):
推测是由于您配置错误,结尾漏了个
&导致终端卡在了这条命令上,所有输入都无法生效,基于这个情况,你可以使用 Control+C 退出回到终端,这样应该可以正常执行命令。重新配置你的开机启动脚本,应该就能解决问题。@LemonCrab666 commented on GitHub (Oct 30, 2024):
感谢,我再重新试下
@0xJacky commented on GitHub (Oct 30, 2024):
补充说明一下,应该不是这样配置开机启动脚本的,稍等我看看
@0xJacky commented on GitHub (Oct 30, 2024):
请尝试社区贡献的方法