Hermes 搭建可视化 web-dashboard 界面

官网升级版本配置解决通过 nginx 代理

Hermes 搭建可视化 web-dashboard 界面官网 hermes【https://hermes-agent.nousresearch.com/docs/user-guide/feature...

升级版本

查询当前版本是否和官网一致

hermes version

图片

升级版本

hermes update

配置 hermes dashboard

http://192.168.0.107:9119/

图片

hermes dashboard --host 0.0.0.0

图片

原因是 hermes 安全控制不允许本机之外访问,解决通过 nginx 代理。

安装 nginx

curl -o nginx-1.26.2.tar.gz http://nginx.org/download/nginx-1.26.2.tar.gz
tar -zxvf nginx-1.26.2.tar.gz
cd nginx-1.26.2

编译环境

# 安装开发工具组(包含 gcc、make 等所有编译必需工具)
sudo yum groupinstall "Development Tools" -y

编译

./configure --prefix=/usr/local/nginx --with-http_ssl_module
make
sudo make install

启动

sudo /usr/local/nginx/sbin/nginx

图片

配置代理

cd /usr/local/nginx/conf/
vim nginx.conf
server {
    listen 9118;
    #server_name 你的内网IP;
    server_name 192.168.0.107

    location / {
        proxy_pass http://127.0.0.1:9119;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        # 注意:此处已移除 auth_basic 相关配置
    }
}

重启 nginx 服务

./nginx -s reload

访问如下地址

http://192.168.0.107:9118/

图片

如果不能访问确认端口是否启用

netstat -tlnp | grep 9119

重启 hermes dashboard 后台启动命令

nohup hermes dashboard > /tmp/hermes-dashboard.log 2>&1 &

标签: none

添加新评论