Hermes 搭建可视化web-dashboard界面
Hermes 搭建可视化 web-dashboard 界面官网 hermes【https://hermes-agent.nousresearch.com/docs/user-guide/feature...】 查询当前版本是否和官网一致 升级版本 原因是 hermes 安全控制不允许本机之外访问,解决通过 nginx 代理。 编译环境 编译 启动 重启 nginx 服务 访问如下地址 如果不能访问确认端口是否启用 重启 hermes dashboard 后台启动命令Hermes 搭建可视化 web-dashboard 界面
官网升级版本配置解决通过 nginx 代理
升级版本
hermes versionhermes update配置 hermes dashboard
http://192.168.0.107:9119/hermes dashboard --host 0.0.0.0安装 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 installsudo /usr/local/nginx/sbin/nginx配置代理
cd /usr/local/nginx/conf/
vim nginx.confserver {
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 -s reloadhttp://192.168.0.107:9118/netstat -tlnp | grep 9119nohup hermes dashboard > /tmp/hermes-dashboard.log 2>&1 &