1. 解压介质
mkdir -p /apps/DBClient/GaussDB
unzip dws_client_8.1.x_redhat_x64.zip -d /apps/DBClient/GaussDB

会在/apps/DBClient/GaussDB 文件夹下生成如下文件
drwxr-xr-x 2 root root   91 Dec 15  2022 bin
drwxr-xr-x 6 root root   56 Dec 15  2022 gds
drwx------ 3 root root  251 Dec 15  2022 gds-kafka
-rwxr-xr-x 1 root root 1465 Dec 13  2022 gsql_env.sh
drwxr-xr-x 3 root root 4096 Dec 15  2022 lib
drwxr-xr-x 3 root root   75 Dec 15  2022 sample

2. 配置环境变量

vi ~/.bashrc
#GaussDB env
. /apps/DBClient/GaussDB/gsql_env.sh

source ~/.bashrc
Configuring LD_LIBRARY_PATH and PATH for gsql ............... done
All things done.

3. 查看版本号

[root@dsmp-store1 GaussDB]# gsql -V
gsql (GaussDB 8.1.3 build c69be505) compiled at 2022-12-13 12:17:14 commit 3629 last mr 5138 release

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐