opengauss单机部署
时间: 2023-10-18 17:29:04 浏览: 145
Opengauss单机部署的步骤如下:
1. 首先,执行下面命令准备安装环境:
```
cd /opt/software/openGauss/script
./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
```
2. 接下来,修改主机名:
```
echo "node1" > /etc/hostname
echo "192.168.17.129 node1" >> /etc/hosts
```
3. 下载opengauss安装包及创建用户组和目录:
```
groupadd dbgrp
useradd -g dbgrp -d /home/omm -m -s /bin/bash omm
echo "omm" | passwd --stdin omm
mkdir -p /opt/software/openGauss
chmod 755 -R /opt/software
chown -R omm:dbgrp /opt/software/openGauss
cd /opt/software/openGauss/
wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.0.0/x86/openGauss-2.0.0-CentOS-64bit-all.tar.gz
tar -zxvf openGauss-2.0.0-CentOS-64bit-all.tar.gz
tar -zxvf openGauss-2.0.0-CentOS-64bit-om.tar.gz
```
4. 最后,对于单机部署,您还需要进行环境设置:
- 操作系统要求使用虚拟机VMware和CentOS7.9。
- 虚拟机内存要求为3G,磁盘为100G。
- 修改系统版本设置。
请按照上述步骤进行opengauss单机部署。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [openGauss_单机部署](https://blog.csdn.net/weixin_51578439/article/details/126527769)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【参赛作品49】openGauss单机部署](https://blog.csdn.net/GaussDB/article/details/122078227)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文