openGauss单机版安装
机器:
hostnamectl set-hostname node1
编译安装python3
前提条件
yum install -y libaio-devel gcc gcc-c++ zlib-devel expect bzip2
[root@node1 ~]# mkdir -p /opt/software/txdb
[root@node1 ~]# chmod 755 -R /opt/software
编译安装Python3
[root@cenots7 ~]# mkdir -p /usr/local/python3 [root@cenots7 ~]# cd Python-3.6.5 [root@cenots7 Python-3.6.5]# ./configure --prefix=/usr/local/python3 --enable-shared CFLAGS=-fPIC [root@cenots7 Python-3.6.5]# make -j 8 [root@cenots7 Python-3.6.5]# make install [root@cenots7 Python-3.6.5]# ln -s /usr/local/python3/bin/python3 /usr/bin/python3 [root@cenots7 Python-3.6.5]# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 [root@cenots7 Python-3.6.5]# touch /etc/ld.so.conf.d/python3.conf [root@cenots7 Python-3.6.5]# echo "/usr/local/python3/lib" >> /etc/ld.so.conf.d/python3.conf [root@cenots7 Python-3.6.5]# ldconfig [root@cenots7 Python-3.6.5]# python3 Python 3.6.5 (default, Sep 7 2023, 09:46:41) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
安装
/opt/software/txdb/script/tx_preinstall -U rapids -G dbgrp -X /opt/software/txdb/clusterconfig.xml chown -R rapids:dbgrp /opt/software/txdb/lib chown -R rapids:dbgrp /opt/software/txdb/script su - rapids tx_install -X /opt/software/txdb/clusterconfig.xml --gsinit-parameter="--locale=en_US.UTF-8" --gsinit-parameter="--encoding= UTF-8"
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)