openGauss单节点服务器

1.系统环境

操作系统:CentOS 7 x86

安装版本:openGauss-6.0.0-RC1-CentOS-64bit.tar.bz2

2.配置系统参数

(1)关闭操作系统防火墙和selinux

systemctl stop firewalld.service
systemctl disable firewalld.service

vim /etc/selinux/config
SELINUX=disabled

reboot

(2)关闭RemoveIPC

vim  /etc/systemd/logind.conf
RemoveIPC=no

systemctl daemon-reload
systemctl restart systemd-logind

3.安装过程 

(1)创建用户组dbgroup,创建用户组dbgroup下的普通用户omm

groupadd dbgroup
useradd -g dbgroup omm

(2)omm用户上传安装包并解压

cd /data/opengauss/
tar -xvf openGauss-6.0.0-RC1-CentOS-64bit.tar.bz2

(3)进入解压目录

cd /data/opengauss/simpleInstall/

(4)执行install.sh脚本安装openGauss

sh install.sh  -w "1qaz@WSX" &&source ~/.bashrc

若报错

root用户执行

sysctl -w kernel.sem="250 85000 250 330"

后重新执行install.sh

(5)使用ps和gs_ctl查看进程是否正常

ps ux | grep gaussdb
gs_ctl query -D /data/opengauss/data/single_node/

(6)gsql -dpostgres进库

[omm@databse opengauss]$ gsql -dpostgres
gsql ((openGauss 6.0.0-RC1 build ed7f8e37) compiled at 2024-03-31 11:59:31 commit 0 last mr  )
Non-SSL connection (SSL connection is recommended when requiring high-security)
Type "help" for help.

openGauss=#
openGauss=#

 

  • 7
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
OpenGauss是基于PostgreSQL的企业级数据库,提供了高性能、安全性以及可扩展性。以下是OpenGauss企业版节点安装的基本步骤,但请注意,实际操作可能需要根据官方文档或最新版本的要求进行调整: 1. **准备工作**: - 下载OpenGauss安装包:访问OpenGauss官方网站下载适用于你操作系统和硬件环境的最新版本。 - 准备所需的系统配置:包括磁盘空间、内存、网络等。 2. **安装前的环境检查**: - 检查操作系统是否满足OpenGauss的最低要求(比如Linux内核版本)。 - 确保所有依赖项(如GCC、Python等)已安装并更新至最新版本。 3. **运行安装脚本**: - 使用终端或命令行工具,解压下载的安装包并进入目录。 - 运行`./configure`命令,指定安装路径、数据目录等选项。 ``` ./configure --prefix=/path/to/opengauss --enable-thread-safe ``` 4. **编译和安装**: - 如果一切配置正常,执行`make all`进行编译,然后`make install`完成安装。 ``` make all sudo make install ``` 5. **启动数据库服务**: 安装完成后,你可以使用`pg_ctl`工具启动服务,例如: ``` sudo /usr/local/opengauss/bin/pg_ctl start -D /path/to/opengauss/data ``` 6. **首次运行数据库**: 需要创建管理员用户和初始化数据库,可以使用`createdb`命令: ``` createdb -U postgres template0 psql -U postgres -c "CREATE DATABASE mydatabase;" ``` 7. **配置和管理**: 根据需求,编辑配置文件(如`postgresql.conf`),设置监听地址、日志级别等,并对权限和性能进行调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

柠檬不酸z

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值