mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 17:25:53 +03:00
[GH-ISSUE #408] 控制nginx 的重启和重载无效果 #233
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#233
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 @en-o on GitHub (May 28, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/408
Describe the bug
控制nginx 的重启和重载无效果
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
功能点
nginx配置
nignx ui 是我代理出去的
Info (please complete the following information):
Additional context
Add any other context about the problem here.
@0xJacky commented on GitHub (May 28, 2024):
发一下 nginx -V 的输出,也可以自己配置重载命令,还要看一下是不是因为权限的问题引起
@en-o commented on GitHub (May 28, 2024):
ReloadCmd 命令我配置了的没啥效果
@0xJacky commented on GitHub (May 28, 2024):
手动执行 restart / reload 命令的时候有什么输出吗
@en-o commented on GitHub (May 28, 2024):
ui 上面的那个主动点击么。那个我看了日志和接口,就一个成功信息, 我自己手动在ssh控制台执行nginx -s reload 是正常的工作的
@0xJacky commented on GitHub (May 28, 2024):
你不是用 docker 安装的吧?
@en-o commented on GitHub (May 28, 2024):
@0xJacky commented on GitHub (May 28, 2024):
这个问题我暂时没办法在现有环境复现,也许您可以补充关于这个问题的更多细节,比如 nginx 的安装方式和步骤,我有空时再虚拟机里试试,不过这个功能是直接调用的 exec.Command 函数,最多就是权限不够没法执行,但是如果你运行在 root 下呢还是这样,我可能得看看能不能复现才能给你答复
@0xJacky commented on GitHub (Jun 10, 2024):
我今天在 centos7 的虚拟机里,通过 nginx.org 的源安装最新版本 1.27 的 nginx,然后 nginx-ui 的 app.ini 配置重载命令为 systemctl restart nginx,是可以正常工作的,reload 也是可以正常工作的
@0xJacky commented on GitHub (Jun 10, 2024):
但是我似乎注意到另一个细节,你在入口的 nginx.conf 中没有配置 include /etc/nginx/sites-available/*; 大概这就是真正的问题吧
或者在您的环境中应该是 /usr/local/openresty/nginx/sites-available/*;
@0xJacky commented on GitHub (Jun 10, 2024):
附重启前后的 nginx.pid 变化