GBase 8s
安装配置
问答

安装成功后,gserver 和 dbacess 命令不存在

发表于2024-12-12 19:13:03288次浏览5个评论

 

【GBase版本】: GBase8sV8.8_TL_3.5.1_3X2_x86_64

【操作系统】: Centos8 (Docker构建的)

[root@localhost gbase]# cat Dockerfile
FROM centos:8

# 替换为阿里云镜像源
RUN sed -i 's|mirrorlist=|#mirrorlist=|g' /etc/yum.repos.d/CentOS-*.repo && \
    sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://mirrors.aliyun.com|g' /etc/yum.repos.d/CentOS-*.repo && \
    yum clean all && yum makecache

# 安装必要的工具
RUN yum update -y && \
    yum install -y shadow-utils && \
    yum install -y unzip && \
    yum install -y libnsl && \
    yum install -y ncurses java-1.8.0-openjdk java-1.8.0-openjdk-devel && \
    yum clean all

# 创建用户组和用户
RUN groupadd gbasedbt && \
    useradd -g gbasedbt gbasedbt && \
    echo "gbasedbt:gbasedbt" | chpasswd


# 创建目标目录并更改权限
RUN mkdir -p /opt/GBASE/gbase && \
    chown -R gbasedbt:gbasedbt /opt/GBASE/gbase

# 设置工作目录
WORKDIR /opt

# 保持容器运行
CMD ["/bin/bash"]

 

【CPU】:

[gbasedbt@ae8e80484b2a opt]$ lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              48
On-line CPU(s) list: 0-47
Thread(s) per core:  2
Core(s) per socket:  12
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Silver 4310 CPU @ 2.10GHz
Stepping:            6
CPU MHz:             799.932
CPU max MHz:         3300.0000
CPU min MHz:         800.0000
BogoMIPS:            4200.00
Virtualization:      VT-x
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            18432K
NUMA node0 CPU(s):   0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46
NUMA node1 CPU(s):   1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 invpcid_single ssbd mba rsb_ctxsw ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq md_clear pconfig spec_ctrl intel_stibp flush_l1d arch_capabilities

 

【问题描述】*:

安装完成Gbase 8s后,按照安装手册,执行 gserver 和 dbaccess,都提示找不到命令

[root@localhost gbase]# docker exec -it gbase-container bash
[root@ae8e80484b2a opt]# ps -ef | grep oninit
gbasedbt  5247     0  0 10:50 ?        00:00:01 /opt/GBASE/gbase/bin/oninit -ivwy
root      5248  5247  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5249  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5250  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5251  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5252  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5253  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5254  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5255  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5256  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      5257  5248  0 10:50 ?        00:00:00 /opt/GBASE/gbase/bin/oninit -ivwy
root      6584  6566  0 11:07 ?        00:00:00 grep --color=auto oninit
[root@ae8e80484b2a opt]# gserver
bash: gserver: command not found
[root@ae8e80484b2a opt]# dbaccess
bash: dbaccess: command not found

 

用户创建情况

[root@ae8e80484b2a opt]# id gbasedbt
uid=1000(gbasedbt) gid=1000(gbasedbt) groups=1000(gbasedbt)

 

目录情况

[root@ae8e80484b2a opt]# pwd
/opt
[root@ae8e80484b2a opt]# ls -l
total 338312
drwxr-xr-x 3 root root       109 Dec 12 10:34 clientsdk_3.5.1_3X2_1_x86_64
drwxr-xr-x 2 root root        89 Oct 18 09:04 doc
drwxr-xr-x 3 root root        27 Dec 12 08:16 GBASE
-rwxr-xr-x 1 root root 346341229 Oct 18 09:11 ids_install
-rw-r--r-- 1 root root      1864 Oct 18 09:11 ids.properties
-rwxr-xr-x 1 root root     82770 Oct 18 09:11 onsecurity


[root@ae8e80484b2a GBASE]# pwd
/opt/GBASE
[root@ae8e80484b2a GBASE]# ls -l
total 4
drwxr-xr-x 21 gbasedbt gbasedbt 4096 Dec 12 11:00 gbase



[root@ae8e80484b2a opt]# cd /opt/GBASE/gbase/
[root@ae8e80484b2a gbase]# ls -l
total 304
drwxrwxr-x  2 gbasedbt gbasedbt     50 Dec 12 10:47 aaodir
drwxr-xr-x  5 gbasedbt gbasedbt   4096 Dec 12 10:48 bin
drwxrwxr-x  2 gbasedbt gbasedbt     52 Dec 12 10:48 dbssodir
drwxr-xr-x  8 gbasedbt gbasedbt    114 Dec 12 10:48 demo
drwxr-xr-x  3 gbasedbt gbasedbt     29 Dec 12 10:48 doc
drwxrwxr-x  4 gbasedbt gbasedbt   4096 Dec 12 10:50 etc
drwxr-xr-x 13 gbasedbt gbasedbt    269 Dec 12 10:48 extend
-rwxr-xr-x  1 root     root      28340 Dec 12 10:47 GBase_GLS_Install_12_12_2024_10_47_43.log
-rwxr-xr-x  1 root     root     113607 Dec 12 10:48 GBase_Install_12_12_2024_10_47_56.log
-rwxr-xr-x  1 root     root      17615 Dec 12 11:00 GBase_Software_Bundle_Install_12_12_2024_10_47_30.log
drwxr-xr-x  7 gbasedbt gbasedbt     86 Dec 12 10:47 gls
drwxr-xr-x  5 gbasedbt gbasedbt     60 Dec 12 10:48 incl
drwxr-xr-x  3 gbasedbt gbasedbt   4096 Dec 12 10:48 isa
drwxr-xr-x  2 gbasedbt gbasedbt    296 Dec 12 10:48 lib
drwxr-xr-x  3 gbasedbt gbasedbt     74 Dec 12 10:48 msg
-rwxr-xr-x  1 root     root        302 Dec 12 10:48 ol_gbasedbt1210.csh
-rwxr-xr-x  1 root     root        341 Dec 12 10:48 ol_gbasedbt1210.ksh
-rw-rw-r--  1 gbasedbt gbasedbt   8391 Dec 12 11:00 ol_gbasedbt1210.log
drwxr-xr-x  3 gbasedbt gbasedbt     27 Dec 12 10:48 release
-rwxrw-rw-  1 root     root     106661 Dec 12 10:48 RUNasroot.installserver
drwxr-xr-x  2 gbasedbt gbasedbt   4096 Dec 12 10:48 sbin
drwxr-xr-x  4 gbasedbt gbasedbt     41 Dec 12 10:47 SDK
drwxrwx---  2 gbasedbt gbasedbt     10 Dec 12 10:48 ssl
drwxr-xr-x  2 gbasedbt gbasedbt     29 Dec 12 10:48 storage
drwxrwx---  2 gbasedbt gbasedbt    196 Dec 12 10:50 tmp
drwxrwxrwx  4 gbasedbt gbasedbt     63 Dec 12 10:47 uninstall

 

 

评论

登录后才可以发表评论
用户头像
曾阿牛发表于 1年前
环境变量不对吧
最佳回答
用户头像
liaosnet发表于 1年前
容器中的环境变量,需要自己定义好。
用户头像
levvel发表于 9个月前
我看好你哟!
用户头像
山佳发表于 2个月前
谢谢分享
用户头像
山佳发表于 2个月前
学习中,还不清楚。