# 2号仓库 **Repository Path**: luobai-bg/warehouse-2 ## Basic Information - **Project Name**: 2号仓库 - **Description**: 个人的Linux脚本仓库 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-12-05 - **Last Updated**: 2025-07-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 高斯数据库自动化部署脚本 ## 📖 项目说明 本仓库提供 **CentOS** 和 **EulerOS** 系统下的高斯数据库自动部署脚本 - 支持交互式和静默安装模式。 - 并且只在**有网络**的情况下执行! --- ## 🚀 核心特性 - 双系统支持:适配 CentOS 7+/EulerOS 20.03/EulerOS 22.03 系统 - 安装模式选择: - **交互模式**:手动确认配置项 - **静默模式**:`-y` 参数启用默认配置(网络设置仍需手动) --- ## 🛠️ 快速安装指南 ### CentOS 系统 ```bash # 交互式安装(逐步确认配置) bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/centos7.sh) # 静默式安装(使用默认配置) bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/centos7.sh) -y ``` ### EulerOS 系统 静默式安装(使用默认配置)请在最后面加一个 -y #### EulerOS 24.03系统(数据库openGauss 7.0.0-RC1) ```bash bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/euler2403_7RC1.sh) ``` #### EulerOS 22.03系统(openGauss 6.0.1 (LTS)) ```bash bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/euler2203.sh) ``` #### EulerOS 20.03系统(openGauss 6.0.1 (LTS)) ``` bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/euler2003.sh) ``` ### 如果出现CRLF请在后面加 sed 's/\r//g' 例子: ``` bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/euler2003.sh | sed 's/\r//g') # 检查文件是否包含 CRLF(无输出表示已修复) cat opengauss/euler2003.sh | grep -q $'\r' && echo "CRLF detected!" || echo "OK: Unix line endings" ``` ## 🛠️ openGauss使用脚本 ``` https://gitee.com/luobai-bg/warehouse-2/raw/master/opengauss/db ``` ### openGauss极简版下载链接 ``` curl -L -X GET -H "Referer: https://www.yunzhongzhuan.com" "https://demo.yunzhongzhuan.com/download/2949313/4zMBjZDY/openGauss-Server-6.0.1-CentOS7-x86_64.tar.bz2?t=1743226151&t2=-1" -o openGauss-Server-6.0.1-CentOS7-x86_64.tar.bz2 curl -L -X GET -H "Referer: https://www.yunzhongzhuan.com" "https://demo.yunzhongzhuan.com/download/2949307/5GiT1sSb/openGauss-Server-6.0.1-openEuler22.03-x86_64.tar.bz2?t=1743226151&t2=-1" -o openGauss-Server-6.0.1-openEuler22.03-x86_64.tar.bz2 curl -L -X GET -H "Referer: https://www.yunzhongzhuan.com" "https://demo.yunzhongzhuan.com/download/2950221/xKmVrXx4/openGauss-Server-6.0.1-openEuler20.03-x86_64.tar.bz2?t=1743773140" -o "openGauss-Server-6.0.1-openEuler20.03-x86_64.tar.bz2" ``` ## 防火墙 ``` bash <(curl -sL https://gitee.com/luobai-bg/warehouse-2/raw//network/firewall) ``` ``` curl -sS -O https://gitee.com/luobai-bg/warehouse-2/raw/master/utils/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh ```