# csuploy **Repository Path**: csudata/csuploy ## Basic Information - **Project Name**: csuploy - **Description**: 自动部署工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-29 - **Last Updated**: 2025-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 运行环境说明 运行环境的python需要是3.x以上的版本。 在CentOS7下面,默认的python版本比较旧,可以下载我们编译好的python版本: * https://gitee.com/csudata/csupy3.9.16/releases/download/1.0/csupy3.9.16.el7.tar.xz 把安装包csupy3.9.16.el7.tar.xz放到/opt/目录下,解压: ``` tar xf csupy3.9.16.el7.tar.xz ``` ## 部署文档 ## 使用帮助 ### DM数据库 安装好Python环境后,克隆下代码或者拷贝dmploy.py文件 ```sh git clone https://gitee.com/csudata/csuploy.git ``` 加载Python环境,执行 ```sh # source /opt/csu_pyenv/bin/activate python dmploy.py init_os_env python dmploy.py init_dm_db ``` ### MongoDB数据库 安装好Python环境后,克隆下代码或者拷贝mongodbploy.py文件 ```sh git clone https://gitee.com/csudata/csuploy.git ``` 安装步骤: 1. 下载MongoDB server端的安装包 mongodb-enterprise-server-8.0.13-1.el8.x86_64.rpm ,放到/root/目录下 2. 下载MongoDB client端的安装包 mongosh-2.5.7-linux-x64.tgz ,放到/root/目录下 3. 加载Python环境,执行 ```sh python3 mongodbploy.py ```