# osmind-deploy **Repository Path**: quanag_100/osmind-deploy ## Basic Information - **Project Name**: osmind-deploy - **Description**: No description available - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-09-26 - **Last Updated**: 2025-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # osmind-deploy ## 介绍 osmind-deploy是一款osmind一键部署工具,基于openEuler24.03-LTS-SP1开发,支持arm64架构和x86架构。 ## 软件架构 服务端单机部署,本教程服务端都部署在192.168.137.56上 ## 安装教程 ### 安装条件 1、操作系统支持openEuler24.03-LTS-SP1 2、支持在线和离线安装 3、脚本目前仅支持x86架构,正迭代中... > 注意:离线需要提前下载software离线包,下载路径:xxx ; 在线安装需要外网,本身的openEuler的repo源和下面的repo源 ```shell [copr:eur.openeuler.openatom.cn:HLG523653667:osmind] name=Copr repo for osmind owned by HLG523653667 baseurl=https://eur.openeuler.openatom.cn/results/HLG523653667/osmind/openeuler-24.03_LTS_SP1-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://eur.openeuler.openatom.cn/results/HLG523653667/osmind/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1 ``` ### 安装过程 #### 服务端安装 ##### 离线安装 ```shell tar -zxf osmind_deploy_v1.tar.gz cd osmind_deploy/ # 上传安装条件章节中software.tar.gz到osmind_deploy目录,不要放错位置!!! /bin/bash deploy.sh --aops --ip 192.168.137.56 ``` ##### 在线安装 自行修改脚本:deploy.sh #### 客户端安装 - 上传install_client_v1.tar.gz到**客户端** ```shell /bin/bash install_client.sh --ip 192.168.137.56 ``` > 192.168.137.56地址为kafka的地址 - 修改**服务端**prometheus的/etc/prometheus/prometheus.yml配置,添加客户端地址 ```shell .... - job_name: prometheus scrape_interval: 5s scrape_timeout: 5s static_configs: - targets: - localhost:9090 - 192.168.137.56:8888 - 192.168.137.57:8888 # 客户端地址 ..... ``` ## 首次登陆配置--应用注册 这里服务端IP为:192.168.137.56,客户端IP为192.168.137.57 可以参考:https://gitee.com/rearcher/aops-zeus/blob/doc/docs/zh/24.03_lts_sp2/aops_assistant_config.md - 登录authHub ```shell # 浏览器打开如下链接: http://192.168.137.56/authhub/oauth/authorize/login # 登录账号/密码为: administrator/changeme ``` - 创建应用并记录相关信息 点击右上角的“创建应用”,然后结合下面内容来填写信息: ```shell 应用名称:A-Ops 应用主页:http://192.168.137.56 应用回调地址:http://192.168.137.56/user/auth 注册回调URL:http://192.168.137.56/accounts/register 登出回调URL:http://192.168.137.56/accounts/logout/redirect # 注意:此处IP地址请结合实际情况进行修改 # 记录好client id和client secret信息。 ``` - 修改配置文件 ```shell vim /etc/aops/aops-config.yml .... # 在文件最后一行下方添加如下内容: client_id: D3WcrH6BphQ0vJH0YyH2WK9H #替换为上一步获取的client id redirect_uri: http://192.168.137.56/user/auth #替换为实际应用回调URL与注册应用填写的回调URL一致 client_secret: vn9krZz61uSMSlUHPWhbmvdgfg4kSjHXqYRJtZDNepHcANas #替换为上一步获取的client secret ``` - 重启服务 ```shell systemctl restart zeus-host-information systemctl restart zeus-operation systemctl restart zeus-user-access systemctl restart authhub ``` - 登录A-Ops前端 ```shell # 浏览器打开如下链接: http://192.168.137.56/ # 注意:如果不进行应用注册,直接打开此链接会报错!!! # 登录账号/密码为: admin/changeme ```