From bc3eeb8da04708f6abc2bac41465597282306ac7 Mon Sep 17 00:00:00 2001 From: zhang1024fan <113490183+zhang1024fan@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:40:28 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 53713f3..ddf1c50 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ admin/admin@2025 ## 技术交流+社区 - 作者wx:zf5391621 -- QQ群:925037324 +- QQ群:545118130 - 邮箱:zfwh1024@163.com - 项目地址:https://github.com/zhang1024fan/deviops.git ![alt text](image-3.png) From d880df9ea529c372af5c59e4d6edd057ed433c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E6=98=A5=E9=98=B3?= Date: Fri, 10 Oct 2025 09:38:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20readme=20=E4=B8=AD=E7=9A=84=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index ddf1c50..af9aa72 100644 --- a/README.md +++ b/README.md @@ -198,30 +198,30 @@ SELECT user, host, plugin FROM mysql.user WHERE user = 'root'; * 启动nginx服务 nginx -s reload ## 2. 配置后端 -git clone https://github.com/zhang1024fan/deviops.git -mkdir -p /home/devops/{logs,upload} -cp -r deviops/devops /home/devops/ #后端项目 -cp -r deviops/config.yaml /home/devops/ #配置文件 -cp -r deviops/devops.sql /home/devops/ #sql文件 -cp -r deviops/devops.service /etc/systemd/system/ #服务启动脚本 +git clone https://github.com/zhang1024fan/deviops.git +mkdir -p /home/devops/{logs,upload} +cp -r deviops/devops /home/devops/ #后端项目 +cp -r deviops/config.yaml /home/devops/ #配置文件 +cp -r deviops/devops.sql /home/devops/ #sql文件 +cp -r deviops/devops.service /etc/systemd/system/ #服务启动脚本 ### 导入sql mysql -u root -p'xxxxxx' < /home/devops/devops.sql ### 安装监控工具 prometheus+pushgateway ![alt text](image-4.png) -mkdir -p /opt/prometheus/ -cd /opt/prometheus/ -wget https://github.com/prometheus/prometheus/releases/download/v2.47.0/prometheus-2.47.0.linux-amd64.tar.gz -tar -zxvf prometheus-2.47.0.linux-amd64.tar.gz -wget https://github.com/prometheus/pushgateway/releases/download/v1.6.1/pushgateway-1.6.1.linux-amd64.tar.gz -修改 prometheus.yml 配置 +mkdir -p /opt/prometheus/ +cd /opt/prometheus/ +wget https://github.com/prometheus/prometheus/releases/download/v2.47.0/prometheus-2.47.0.linux-amd64.tar.gz +tar -zxvf prometheus-2.47.0.linux-amd64.tar.gz +wget https://github.com/prometheus/pushgateway/releases/download/v1.6.1/pushgateway-1.6.1.linux-amd64.tar.gz +修改 prometheus.yml 配置 ![alt text](image-5.png) -tar -xvf prometheus-2.47.0.linux-amd64.tar.gz -cp prometheus.service /etc/systemd/system/ -cp pushgateway.service /etc/systemd/system/ -systemctl daemon-reload -systemctl start prometheus.service -systemctl start pushgateway.service +tar -xvf prometheus-2.47.0.linux-amd64.tar.gz +cp prometheus.service /etc/systemd/system/ +cp pushgateway.service /etc/systemd/system/ +systemctl daemon-reload +systemctl start prometheus.service +systemctl start pushgateway.service ### 修改配置文件 /home/devops/config.yaml ![alt text](image-1.png) ![alt text](image-2.png)