[GH-ISSUE #181] 使用2.0.0-beta.3出现的两个问题 #5874

Closed
opened 2026-03-01 17:07:39 +03:00 by kerem · 27 comments
Owner

Originally created by @White1221 on GitHub (Nov 2, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/181

1.通过仪表盘链接到另一个环境时,仪表盘按钮上方显示本地的地方会出现名称叠加的现象;
2.使用终端界面每点进去一次就会有一个衍生进程login,如果不重启nginx-ui服务会造成cpu爆满。

Originally created by @White1221 on GitHub (Nov 2, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/181 1.通过仪表盘链接到另一个环境时,仪表盘按钮上方显示本地的地方会出现名称叠加的现象; 2.使用终端界面每点进去一次就会有一个衍生进程login,如果不重启nginx-ui服务会造成cpu爆满。
kerem 2026-03-01 17:07:39 +03:00
Author
Owner

@0xJacky commented on GitHub (Nov 2, 2023):

收到,我周末确认一下

<!-- gh-comment-id:1790395875 --> @0xJacky commented on GitHub (Nov 2, 2023): 收到,我周末确认一下
Author
Owner

@0xJacky commented on GitHub (Nov 4, 2023):

问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢

<!-- gh-comment-id:1793309754 --> @0xJacky commented on GitHub (Nov 4, 2023): 问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢
Author
Owner

@0xJacky commented on GitHub (Nov 4, 2023):

问题2 已经在 2982782 修正,预计这两天会发 beta.4

<!-- gh-comment-id:1793320139 --> @0xJacky commented on GitHub (Nov 4, 2023): 问题2 已经在 2982782 修正,预计这两天会发 beta.4
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

问题2 已经在 2982782 修正,预计这两天会发 beta.4

这个我为了登陆方便,会把app.ini配置文件的StartCmd = login改为bash,可以免密登陆应该不影响吧;还有ReloadCmd和RestartCmd的值应该怎么写呢

<!-- gh-comment-id:1793933019 --> @White1221 commented on GitHub (Nov 6, 2023): > 问题2 已经在 [2982782](https://github.com/0xJacky/nginx-ui/commit/298278272195b126120f96ef3d96bd7939e46644) 修正,预计这两天会发 beta.4 这个我为了登陆方便,会把app.ini配置文件的StartCmd = login改为bash,可以免密登陆应该不影响吧;还有ReloadCmd和RestartCmd的值应该怎么写呢
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

不影响,是我没有kill exec.Command

<!-- gh-comment-id:1793961273 --> @0xJacky commented on GitHub (Nov 6, 2023): 不影响,是我没有kill exec.Command
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

这两个是自定义 nginx 重启或重载的命令的,一般不需要改

<!-- gh-comment-id:1793961610 --> @0xJacky commented on GitHub (Nov 6, 2023): 这两个是自定义 nginx 重启或重载的命令的,一般不需要改
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢

<!-- gh-comment-id:1793968556 --> @0xJacky commented on GitHub (Nov 6, 2023): 问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢

这个我这里图片贴不进去,我邮箱回复了,不知道您能看见吗;我用文字再描述一遍:在环境选项里添加,名称如果写的过长,在仪表盘链接此环境后,仪表盘上方会无法正常显示名称,呈现的是叠加样式,我用的浏览器是Microsoft Edge版本 119.0.2151.44 (正式版本) (64 位)

<!-- gh-comment-id:1793970343 --> @White1221 commented on GitHub (Nov 6, 2023): > 问题1 方便截个图看看不,我这边用的最新的Chrome浏览器,没有遇到呢 这个我这里图片贴不进去,我邮箱回复了,不知道您能看见吗;我用文字再描述一遍:在环境选项里添加,名称如果写的过长,在仪表盘链接此环境后,仪表盘上方会无法正常显示名称,呈现的是叠加样式,我用的浏览器是Microsoft Edge版本 119.0.2151.44 (正式版本) (64 位)
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

我这边看不到

<!-- gh-comment-id:1793973519 --> @0xJacky commented on GitHub (Nov 6, 2023): 我这边看不到
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

行,我试试

<!-- gh-comment-id:1793980540 --> @0xJacky commented on GitHub (Nov 6, 2023): 行,我试试
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

行,我试试

img_v3_024u_1bfa44eb-9d17-4d5a-bfcf-9670bba1d13g
img_v3_024u_271e5295-6d4a-416f-93a6-e8e8975adc1g

<!-- gh-comment-id:1793983186 --> @White1221 commented on GitHub (Nov 6, 2023): > 行,我试试 ![img_v3_024u_1bfa44eb-9d17-4d5a-bfcf-9670bba1d13g](https://github.com/0xJacky/nginx-ui/assets/86450840/c07a5e07-a8ae-44ba-9c97-1116936b6ba5) ![img_v3_024u_271e5295-6d4a-416f-93a6-e8e8975adc1g](https://github.com/0xJacky/nginx-ui/assets/86450840/3ca869ee-1e88-46c8-a4f3-a7a6f180a924)
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

看到了

<!-- gh-comment-id:1793993024 --> @0xJacky commented on GitHub (Nov 6, 2023): 看到了
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

这两个是自定义 nginx 重启或重载的命令的,一般不需要改

可是默认等号右边是空的呀,什么都不要写么?在页面点重启和重载进程并没有改变

<!-- gh-comment-id:1794015156 --> @White1221 commented on GitHub (Nov 6, 2023): > 这两个是自定义 nginx 重启或重载的命令的,一般不需要改 可是默认等号右边是空的呀,什么都不要写么?在页面点重启和重载进程并没有改变
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

是这样,默认的命令是 nginx -s reopen 和 nginx -s reload,如果因为环境原因导致这两个命令执行不了或者是说你需要用自定义的命令,才需要写

<!-- gh-comment-id:1794018170 --> @0xJacky commented on GitHub (Nov 6, 2023): 是这样,默认的命令是 nginx -s reopen 和 nginx -s reload,如果因为环境原因导致这两个命令执行不了或者是说你需要用自定义的命令,才需要写
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

是这样,默认的命令是 nginx -s reopen 和 nginx -s reload,如果因为环境原因导致这两个命令执行不了或者是说你需要用自定义的命令,才需要写

我的重启是nginx -s restart,重载是nginx -s reload;目前配置文件ReloadCmd和RestartCmd是默认空着的,页面点击重载后worker进程无变化我该怎么排查

<!-- gh-comment-id:1794026404 --> @White1221 commented on GitHub (Nov 6, 2023): > 是这样,默认的命令是 nginx -s reopen 和 nginx -s reload,如果因为环境原因导致这两个命令执行不了或者是说你需要用自定义的命令,才需要写 我的重启是nginx -s restart,重载是nginx -s reload;目前配置文件ReloadCmd和RestartCmd是默认空着的,页面点击重载后worker进程无变化我该怎么排查
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

改了配置文件之后,点这两个按钮之后有效果不,有效果就不用管了

<!-- gh-comment-id:1794036587 --> @0xJacky commented on GitHub (Nov 6, 2023): 改了配置文件之后,点这两个按钮之后有效果不,有效果就不用管了
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

改了配置文件之后,点这两个按钮之后有效果不,有效果就不用管了

默认空白是没有效果的,我自定义命令也没有效果,但无论哪种在页面点击都提示成功
Uploading img_v3_024u_606c6a1b-0348-4f30-bb72-325b692621ag.jpeg…

<!-- gh-comment-id:1794129074 --> @White1221 commented on GitHub (Nov 6, 2023): > 改了配置文件之后,点这两个按钮之后有效果不,有效果就不用管了 默认空白是没有效果的,我自定义命令也没有效果,但无论哪种在页面点击都提示成功 ![Uploading img_v3_024u_606c6a1b-0348-4f30-bb72-325b692621ag.jpeg…]()
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

直接在 ssh 执行这两个命令有效果吗

<!-- gh-comment-id:1794569344 --> @0xJacky commented on GitHub (Nov 6, 2023): 直接在 ssh 执行这两个命令有效果吗
Author
Owner

@White1221 commented on GitHub (Nov 6, 2023):

终端执行是好的

<!-- gh-comment-id:1794588656 --> @White1221 commented on GitHub (Nov 6, 2023): 终端执行是好的
Author
Owner

@0xJacky commented on GitHub (Nov 6, 2023):

方便说一下主机的系统,nginx 的版本,以及 nginx 安装的方式?我看看能否复现

<!-- gh-comment-id:1794594910 --> @0xJacky commented on GitHub (Nov 6, 2023): 方便说一下主机的系统,nginx 的版本,以及 nginx 安装的方式?我看看能否复现
Author
Owner

@White1221 commented on GitHub (Nov 7, 2023):

方便说一下主机的系统,nginx 的版本,以及 nginx 安装的方式?我看看能否复现

Linux version 3.10.0-957.el7.x86_64
nginx version: nginx/1.20.2
configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_addition_module --with-pcre --with-stream
安装的时候都是root用户操作的

<!-- gh-comment-id:1797107142 --> @White1221 commented on GitHub (Nov 7, 2023): > 方便说一下主机的系统,nginx 的版本,以及 nginx 安装的方式?我看看能否复现 Linux version 3.10.0-957.el7.x86_64 nginx version: nginx/1.20.2 configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_addition_module --with-pcre --with-stream 安装的时候都是root用户操作的
Author
Owner

@0xJacky commented on GitHub (Nov 7, 2023):

ubuntu、centos还是什么系统呢

<!-- gh-comment-id:1797107909 --> @0xJacky commented on GitHub (Nov 7, 2023): ubuntu、centos还是什么系统呢
Author
Owner

@White1221 commented on GitHub (Nov 7, 2023):

CentOS Linux release 7.6.1810 (Core)

<!-- gh-comment-id:1797110237 --> @White1221 commented on GitHub (Nov 7, 2023): CentOS Linux release 7.6.1810 (Core)
Author
Owner

@0xJacky commented on GitHub (Nov 7, 2023):

nginx 是怎么安装的,yum 吗

<!-- gh-comment-id:1797133766 --> @0xJacky commented on GitHub (Nov 7, 2023): nginx 是怎么安装的,yum 吗
Author
Owner

@White1221 commented on GitHub (Nov 7, 2023):

tar包本地编译安装的,版本是1.20.2;
依赖:yum install -y gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel
编译命令:./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_addition_module --with-pcre --with-stream && make && make install
环境变量:
PATH=$PATH:/usr/local/nginx/sbin/
export PATH

<!-- gh-comment-id:1798107537 --> @White1221 commented on GitHub (Nov 7, 2023): tar包本地编译安装的,版本是1.20.2; 依赖:yum install -y gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel 编译命令:./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_addition_module --with-pcre --with-stream && make && make install 环境变量: PATH=$PATH:/usr/local/nginx/sbin/ export PATH
Author
Owner

@0xJacky commented on GitHub (Nov 10, 2023):

试试在 ReloadCmd 和 RestartCmd 中配置完整的 nginx 可执行路径,猜测可能是 go 没读到环境变量

<!-- gh-comment-id:1805411337 --> @0xJacky commented on GitHub (Nov 10, 2023): 试试在 ReloadCmd 和 RestartCmd 中配置完整的 nginx 可执行路径,猜测可能是 go 没读到环境变量
Author
Owner

@White1221 commented on GitHub (Nov 10, 2023):

可以了,使用绝对路径就可以,感谢

<!-- gh-comment-id:1805456561 --> @White1221 commented on GitHub (Nov 10, 2023): 可以了,使用绝对路径就可以,感谢
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#5874
No description provided.