如何获取kingbase安装的概要信息
sys_config 获取已安装的KES 的信息
[root@kesv8112 ~]# su - kingbase
[kingbase@kesv8112 ~]$ sys_config
BINDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/bin
INCLUDEDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/include
PKGINCLUDEDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/include
INCLUDEDIR-SERVER = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/include/server
LIBDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/lib
PKGLIBDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/lib
LOCALEDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/share/locale
SHAREDIR = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/share
PGXS = /opt/Kingbase/ES/V8/KESRealPro/V008R006C009B0014/Server/lib/pgxs/src/build/makefiles/pgxs.mk
COnFIGURE= '--prefix=/home/docker/workspace/V9R1_template/postgres/KES_Server/release' '--with-python' '--with-ldap' '--with-zlib' '--enable-nls' '--enable-integer-datetimes' '--with-openssl' '--with-libxml' '--with-uuid=e2fs' '--with-license-name=SALES' '--with-icu' '--with-commercial-version=V8.0' '--enable-debug' 'CFLAGS=-O2 -funwind-tables' 'LDFLAGS=-L/usr/local/lib' 'LIBS=-ltinfo' 'XML2_COnFIG=/home/docker/env/KES_build_rely/libxml2-2.9.8/bin/xml2-config' 'PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig'
CC = gcc -std=gnu99
CPPFLAGS = -I/usr/local/include -DOpenssl_H -D_GNU_SOURCE -I/home/docker/env/KES_build_rely/libxml2-2.9.8/include/libxml2
CFLAGS = -DOpenssl_H -Werror -DSTABILITY -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2 -funwind-tables
CFLAGS_SL = -fPIC
LDFLAGS = -L/usr/local/lib -L/home/docker/env/KES_build_rely/libxml2-2.9.8/lib -Wl,--as-needed -Wl,-rpath,'/home/docker/workspace/V9R1_template/postgres/KES_Server/release/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lkcomm -lkcompat -lpthread -lxml2 -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm -ltinfo
VERSION = KingbaseES 12.1
[kingbase@kesv8112 ~]$
注意: V8 和V9 的获取的 VERSION 都是 KingbaseES 12.1
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作