diff --git a/anolis-courses/SysOM/.DS_Store b/anolis-courses/SysOM/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..54ebfb34fb7395e46f6a3c334a026d1f2763dd82 Binary files /dev/null and b/anolis-courses/SysOM/.DS_Store differ diff --git a/anolis-courses/SysOM/deploy/finish.md b/anolis-courses/SysOM/deploy/finish.md new file mode 100644 index 0000000000000000000000000000000000000000..bb0c12a0232ef5109fa25c17af4f61064d9ab7e7 --- /dev/null +++ b/anolis-courses/SysOM/deploy/finish.md @@ -0,0 +1,43 @@ +部署成功之后,可以通过访问部署时指定的公网/私网地址访问 SysOM前端,比如 http://172.22.3.238 + +### 1. 说明: + + - 默认的用户名密码:admin/123456 + - 教程环境内无法访问前端,可以自行部署体验 + - SysOM提供了 Demo 体验网站,可以访问:[http://sysom.openanolis.cn/](http://sysom.openanolis.cn/) + +### 2. 登陆 +![1.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389265443-1.png) + +### 3. 主页面 +![2.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389299998-2.png) + +### 4. 主机管理 +![3.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389392197-3.png) + +### 5. 集群管理 +![4.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389416846-4.png) + +### 6. 监控中心 +![5.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389457545-5.png) + +### 7. 宕机列表 +![6.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389523688-6.png) + +### 8. 宕机匹配 +![7.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389557996-7.png) + +### 9. 宕机配置 +![8.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389591640-8.png) + +### 10. 系统健康检查 +![10.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389646049-10.png) + +### 11. 系统负载诊断 +![9.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389713147-9.png) + +### 12. 内存大盘 +![11.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389827000-11.png) + +### 13. 日志中心 +![12.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665389941149-12.png) \ No newline at end of file diff --git a/anolis-courses/SysOM/deploy/index.yaml b/anolis-courses/SysOM/deploy/index.yaml new file mode 100644 index 0000000000000000000000000000000000000000..be5b14ed78d178243a392bedc769a44d53730290 --- /dev/null +++ b/anolis-courses/SysOM/deploy/index.yaml @@ -0,0 +1,14 @@ +name: SysOM部署教程 +desc: 本章节对SysOM运维平台的部署进行详细的介绍 +image: Anolis OS 8.4 ANCK 64位 +live_time: 10min +machine: x86_64-2c4g +max_clients: 2 +details: + steps: + start: start.md + - name: 获取SysOM源码并编译 + content: step2.md + - name: 部署 + content: step3.md + finish: finish.md diff --git a/anolis-courses/SysOM/deploy/start.md b/anolis-courses/SysOM/deploy/start.md new file mode 100644 index 0000000000000000000000000000000000000000..8782fda61709b3d01d6560b4414f2143fbbda015 --- /dev/null +++ b/anolis-courses/SysOM/deploy/start.md @@ -0,0 +1,17 @@ +### 1. 首先安装 nodejs + +```bash +dnf module install nodejs:16 -y +``` + +### 2. 然后安装 yarn + +```bash +npm install -g yarn +``` + +### 3. 最后安装 git + +```bash +dnf install git -y +``` \ No newline at end of file diff --git a/anolis-courses/SysOM/deploy/step2.md b/anolis-courses/SysOM/deploy/step2.md new file mode 100644 index 0000000000000000000000000000000000000000..2ae74f963b459df4d2f2a761eb0d7b49d56c82a1 --- /dev/null +++ b/anolis-courses/SysOM/deploy/step2.md @@ -0,0 +1,30 @@ +### 1. 拉取源码 + +```bash +git clone https://gitee.com/anolis/sysom.git +``` + +### 2. 编译打包 + +```bash +cd sysom +bash package.sh +``` + +输出包含如下结果表示编译成功: +![13.png](https://anolis-pub-share.oss-cn-hangzhou.aliyuncs.com/anolis-lab/assets/1665390883244-13.png) + +执行完之后使用 `tree -L 1` 查看当前文件夹分布如下: + +```bash +. +├── LICENSE +├── package.sh +├── README.md +├── script +├── sysom_api +├── sysomRelease-20221010152537.tar.gz => 压缩包后面会根据打包的时间自动加后缀,每次编译均不同 +├── sysom_web +└── tools +``` + diff --git a/anolis-courses/SysOM/deploy/step3.md b/anolis-courses/SysOM/deploy/step3.md new file mode 100644 index 0000000000000000000000000000000000000000..a43ad211d69b735b77820eb5b5a1a615ff906fca --- /dev/null +++ b/anolis-courses/SysOM/deploy/step3.md @@ -0,0 +1,49 @@ +### 1. 首先将 Release 包解压 +```bash +tar -zxvf sysomRelease-20221010152537.tar.gz +cd sysomRelease-20221010152537 +``` +解压完成后,Release 包内的文件分布如下: +```bash +. +├── deploy.sh +├── script +├── sysom_api +├── sysom_web +└── tools +``` + +### 2. 使用 `deploy.sh` 脚本进行部署 + +- 首先使用 `ifconfig` 查看当前机器的IP => 比如:`172.22.3.238` + +- `deploy.sh` 部署脚本参数说明 + + ```bash + bash deploy.sh <部署目录> <内网IP> <外网IP> + ``` + - arg1 : 部署目录 + - arg2 : 内网IP(主要是方便内网通讯,用户需要保证内网能通) + - arg3 : 外网IP(浏览器可以访问到的IP地址) + +- 使用 `deploy.sh` 脚本进行一键部署 + > 教程环境没有公网,所以均使用内网IP就行了,实际部署时可以替换成公网 + + ```bash + ./deploy.sh /usr/local/sysom 172.22.3.238 172.22.3.238 + ``` + + 上述 `deploy.sh` 脚本会安装一些必要的依赖,并启动部署过程,命令执行结束不代表部署完成,后台仍然在执行静默部署,可以使用 'journal' 命令查看部署进度 + ```bash + journalctl -f -u sysom-server.service + ``` + + 当服务日志输出下列日志表示部署成功: + ```bash + Oct 10 12:58:51 mfeng bash[3217754]: /usr/local/sysom/init_scripts/server + Oct 10 12:58:51 mfeng bash[3217754]: + for dir in `ls` + Oct 10 12:58:51 mfeng bash[3217754]: + '[' -d init.sh ']' + Oct 10 12:58:51 mfeng bash[3217754]: + for dir in `ls` + Oct 10 12:58:51 mfeng bash[3217754]: + '[' -d stop.sh ']' + Oct 10 12:58:51 mfeng bash[3217754]: + sed -i 's/^FIRST_INIT_DONE=0/FIRST_INIT_DONE=1/g' /usr/local/sysom/init_scripts/server/init.sh + ``` \ No newline at end of file diff --git a/anolis-courses/SysOM/index.yaml b/anolis-courses/SysOM/index.yaml new file mode 100644 index 0000000000000000000000000000000000000000..abce653e3a28519c00ad38c3330c93d19b7b5b1b --- /dev/null +++ b/anolis-courses/SysOM/index.yaml @@ -0,0 +1,10 @@ +name: SysOM +desc: SysOM(System Operation&Maintenance)致力于打造一个集主机管理、配置部署、监控报警、异常诊断、安全审计等一系列功能的自动化运维平台。 探索创新的sysAK、ossre诊断工具及高效的LCC(Libbpf Compiler Collection)开发编译平台和netinfo网络抖动问题监控系统等, 实现系统问题的快速上报、分析与解决,提升集群的全自动运维效率,构建大规模集群运维生态链。本课程将为你介绍SysOM的编译部署和使用。 +type: course +total_time: 10min +level: beginner +chapters: + - name: SysOM部署教程 + desc: 本章节对SysOM运维平台的部署进行详细的介绍 + content: deploy + live_time: 10min