• 猿创征文|Highgo Database安全版安装指导手册


     

    目录

     

    Highgo Database安全版安装指导手册

    一、安装检查

    1.1、要验证系统是否满足要求

    1.2、检查内核参数

    二、安装前准备

    2.1、关闭防火墙

    2.2、关闭SELINUX

    2.3、检查主机名

    2.4、检查时间和时区

    2.5、安装系统软件包

    2.6、配置hosts

    2.7、创建highgo用户并修改密码

    2.8、创建数据库安装目录

    2.9、配置操作系统limits

    2.10、设置highgo用户环境变量 

    2.11、上传并解压HGDB安装包

    三、安装Highgo Database软件

    3.1、图形化安装

    3.2、字符界面安装

    四、收尾工作

    4.1、修改数据库默认参数

    4.2、修改pg_hba.conf文件

    4.3、安装license

    4.4、修改用户密码及密码到期时间

    五、卸载HGDB

    5.1、图形化卸载

    5.2、非图形化卸载


    Highgo Database安全版安装指导手册

    通用机使用的是国产芯片,操作系统为中标麒麟7.0,未做三权分立,作为普通Linux服务器使用。

    本文演示过程使用的操作系统是RedHat7,与中标麒麟安装过程完全一致。

    一、安装检查

    1.1、要验证系统是否满足要求

    要验证系统是否满足要求 Highgo Database4.x数据库的最低要求,以 root 用户身份登录并运行以下命令。要查看可用 RAM 和交换空间大小,运行以下命令:

    1. df -h
    2. free -h
    3. grep MemTotal /proc/meminfo
    4. grep SwapTotal /proc/meminfo
    5. # grep MemTotal /proc/meminfo
    6. MemTotal:512236 kB
    7. # grep SwapTotal /proc/meminfo
    8. SwapTotal:1574360 kB

    内存及对应swap建议值参照表:

    MemTotal

    SwapTotal

    8G

    2~4G

    8~16G

    16~64G

    8~32G

    >=64G

    32G

    1.2、检查内核参数

    1. cat /proc/sys/kernel/shmmax
    2. cat /proc/sys/kernel/shmall
    3. cat /proc/sys/kernel/shmmni   
    4. 这个参数(系统共享内存段的最大数量)数据库自动修改

    内存大小及对应内核参数建议值:

    MemTotal

    shmall

    shmmax

    8G

    7~8G

    4G

    8~64G

    M*50%

    M*90~95%

    >=64G

    32G

    M*90%~95%

    二、安装前准备

    2.1、关闭防火墙

    在NeoKylin 6.X执行如下命令

    1. service iptables stop
    2. chkconfig iptables off
    3. service iptables status
    4. service NetworkManager stop
    5. chkconfig NetworkManager off
    6. service NetworkManager status

    在NeoKylin 7.X(当前项目中的通用机大部分为7.x)执行如下命令

    1. systemctl stop firewalld.service
    2. systemctl disable firewalld.service
    3. systemctl status firewalld.service
    4. systemctl stop  NetworkManager.service
    5. systemctl disable NetworkManager.service
    6. systemctl status  NetworkManager.service

    2.2、关闭SELINUX

    1. sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
    2. setenforce 0
    3. cat /etc/selinux/config | grep SELINUX=disabled
    4. getenforce

    2.3、检查主机名

    1. [root@hgdb ~]# hostnamectl status
    2.    Static hostname: hgdb
    3.          Icon name: computer-vm
    4.            Chassis: vm
    5.         Machine ID: 5c7b0775b96044209a3858d9773a5b83
    6.            Boot ID: a379f124abc746c190aca4932ee34fe1
    7.     Virtualization: vmware
    8.   Operating System: Red Hat Enterprise Linux Server 7.3 (Maipo)
    9.        CPE OS Name: cpe:/o:redhat:enterprise_linux:7.3:GA:server
    10.             Kernel: Linux 3.10.0-514.el7.x86_64
    11.       Architecture: x86-64

    2.4、检查时间和时区

    1. [root@hgdb ~]$ timedatectl
    2.       Local time: Fri 2018-10-19 18:52:17 CST
    3.   Universal time: Fri 2018-10-19 10:52:17 UTC
    4.         RTC time: Fri 2018-10-19 10:52:18
    5.        Time zone: Asia/Shanghai (CST, +0800)
    6.      NTP enabled: no
    7. NTP synchronized: no
    8.  RTC in local TZ: no
    9.       DST active: n/a

    NeoKylin 7.X下如何修改时区

    1. [root@hgdb ~]# timedatectl list-timezones
    2. [root@hgdb ~]# timedatectl set-timezone Asia/Shanghai
    3. 修改时间
    4. [root@hgdb ~]# date -s "20170622 10:26:00"

    2.5、安装系统软件包

    配置yum源

    1. [root@hgdb ~]# cat /etc/yum.repos.d/highgo.repo
    2. [rhel]
    3. name=rhel
    4. baseurl=file:///media/cdrom
    5. enabled=1
    6. gpgcheck=0
    7. [root@hgdb ~]# mkdir /media/cdrom
    8. [root@hgdb ~]# mount /dev/cdrom /media/cdrom
    9. mount: /dev/sr0 is write-protected, mounting read-only

    安装依赖包

    1. [root@hgdb ~]# yum clean all
    2. [root@hgdb ~]# yum list
    3. [root@hgdb ~]# yum install vim wget readline readline-devel zlib zlib-devel
    4. openssl openssl-devel pam-devel libxml2-devel libxslt-devel python-devel
    5. tcl-devel gcc gcc-c++ rsync -y

    2.6、配置hosts

    1. [root@hgdb ~]# cat /etc/hosts
    2. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    3. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    4. 192.168.80.10 hgdb

    2.7、创建highgo用户并修改密码

    1. [root@hgdb ~]# groupadd -g 5866 highgo
    2. [root@hgdb ~]# useradd -u 5866 -g highgo highgo
    3. [root@hgdb ~]# passwd highgo 

    2.8、创建数据库安装目录

    数据库安装目录建议使用单独的磁盘或者lv卷组。

    1. [root@hgdb ~]# mkdir -p /data/highgo/4.3.4 -p
    2. [root@hgdb ~]# chown -R highgo:highgo /data
    3. #归档目录
    4. [root@hgdb ~]# mkdir /hgdbbak/archive -p    
    5. #备份目录
    6. [root@hgdb ~]# chown -R highgo:highgo /hgdbbak/

    2.9、配置操作系统limits

    1. [root@hgdb ~]# vi /etc/security/limits.conf
    2. #for highgo db 4.3.4
    3. highgo soft  core unlimited
    4. highgo hard  nproc unlimited
    5. highgo soft  nproc unlimited
    6. highgo hard  memlock unlimited
    7. highgo hard  nofile 1024000
    8. highgo soft  memlock unlimited
    9. highgo soft  nofile 1024000
    10. highgo hard  stack  65536
    11. highgo soft  stack  65536

    2.10、设置highgo用户环境变量 

    1. [root@hgdb ~]# vi /home/highgo/.bashrc
    2. export PGHOME=/data/highgo/4.3.4
    3. export PGUSER=highgo
    4. export PGPORT=5866
    5. export PGDATA=$PGHOME/data
    6. export PATH=$PGHOME/bin:$PATH:$HOME/bin
    7. export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH

    2.11、上传并解压HGDB安装包

    1. [root@hgdb upload]# tar -zxvf hgdb4.3.4-sec-rhel7.x-x86-64-20190130_195124.tar.gz
    2. [root@hgdb upload]# chown -R highgo:highgo hgdb_install4.3.4_redhat7.x_Enterprise_64/
    3. [root@hgdb upload]# ll
    4. drwxr-xr-x. 4 highgo highgo        50 Jul  7 17:49 hgdb_install4.3.4_redhat7.x_Enterprise_64

    三、安装Highgo Database软件

    3.1、图形化安装

    1、 首先应确保可以开启图形化界面,如果未安装图形界面使用如下命令进行安装

    1. NeoKylin 6.X
    2. yum groupinstall "X Window System" "Desktop"
    3. NeoKylin 7.X
    4. [root@hgdb ~]# yum -y groupinstall "Server with GUI"

    2、 进入highgo用户执行安装程序
    图形界面登录服务器
    请按照如下步骤:

    1. [root@hgdb 4.3.4]# xhost +
    2. access control disabled, clients can connect from any host
    3. su - highgo
    4. [highgo @hgdb ~]# export DISPLAY=:0.0
    5. [highgo @ hgdb 4.3.4]# ./runinstall

     

     

     

     

    使用root用户执行以上脚本,然后点击“OK”。

     

     上图中的两个问题是由于关闭防火墙导致找不到参数,可以直接忽略。

     

     

    root用户执行上面脚本后,点击“OK”

    1. [root@localhost ~]# sh /highgo/database/4.3.4/hginstall.sh
    2. Starting HighGo Database Server:
    3. waiting for server to start.... done
    4. server started
    5. HighGo Database Server started successfully


     

     

    3.2、字符界面安装

    1. [highgo@hgdb hgdb_enterprise_4.3.4_redhat7.x_x86-64_install_20180919]$ ./runinstall
    2. Welcome to the installation of HighGo Database 4.3.4 Enterprise Edition !
    3. press 1 to continue, 2 to quit, 3 to redisplay
    4. 1
    5. HIGHGO DATABASE END-USER SOFTWARE LICENSE AGREEMENT
    6. THANKS FOR YOUR SELECTION OF HIGHGO DATABASE.
    7. Copyright (c) 2017, HighGo Co., Ltd.
    8. All Rights Reserved.
    9. IMPORTANT: THIS SOFTWARE END USER LICENSE AGREEMENT("EULA") IS A LEGAL AGREEMENT BETWEEN YOU AND HighGo Co., Ltd. READ IT CAREFULLY BEFORE COMPLETING THE INSTALLATION PROCESS AND USING THE SOFTWARE. IT PROVIDES A LICENSE TO USE THE SOFTWARE AND CONTAINS WARRANTY INFORMATION AND LIABILITY DISCLAIMERS. BY INSTALLING AND USING THE SOFTWARE, YOU ARE CONFIRMING YOUR ACCEPTANCE OF THE SOFTWARE AND AGREEING TO BECOME BOUND BY THE TERMS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO BE BOUND BY THESE TERMS, PLEASE DO NOT INSTALL OR USE THE SOFTWARE. YOU MUST ASSUME THE ENTIRE RISK OF USING THIS PROGRAM. ANY LIABILITY OF HighGo WILL BE LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT OR REFUND OF PURCHASE PRICE BEFORE FIRST INSTALLATION.
    10. Definitions
    11.  1. "the Software" means "HighGo DataBase".
    12.  2.  "HighGo" is responsible for HighGo Co., Ltd.
    13. License Grants
    14.  1. You may use the Software for free for non-commercial use under the License Restrictions.
    15.  2. You may use the Software for commercial use after purchasing the commercial license. Moreover, according to the license you purchased you may get specified term, manner and content of technical support from HighGo.
    16. License Restrictions
    17.  1. You may not use the Software for commercial use or profit use, unless you have been licensed to. To purchase the license , please visit http://www.highgo.com for more information.
    18.  2. You may not rent, lease, sublicense, sell, assign, pledge the Software and its services.
    19.  3. You may not modify the Software to create derivative works for redistribution based upon the Software.
    20.  4. In the event that you fail to comply with this agreement, your license will be terminated.
    21.  
    22. LIMITED WARRANTY AND DISCLAIMER
    23.  1. THE SOFTWARE AND THE ACCOMPANYING FILES ARE SOLD "AS IS" AND WITHOUT WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER WARRANTIED WHETHER EXPRESSED OR IMPLIED.
    24.  2. You must assume the entire risk of using the Software. ANY LIABILITY OF HIGHGO WILL BE LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT, REFUND OF PURCHASE PRICE BEFORE YOUR FIRST INSTALLATION.
    25. press 1 to accept, 2 to reject, 3 to redisplay
    26. 1
    27. Select target path [/data/hgdb/4.3.4]
    28. /data/highgo/4.3.4
    29. press 1 to continue, 2 to quit, 3 to redisplay
    30. 1
    31.  
    32. TreePacksPanel
    33.  
    34. [JDK_JRE] [required]
    35. [hgdb.dbserverPack] [Already Selected]
    36. [hgdb.userInterfacePack] [Already Selected]
    37.        psql [Already Selected]
    38.        hgdbAdmin [Already Selected]
    39. [hgdb.developmentPack] [Already Selected]
    40. [hgdb.installPack] [Already Selected]
    41.        init and configure database [Already Selected]
    42.        uninstalldata [required]
    43. [tempExecutableFiles] [required]
    44. ...pack selection done.
    45. press 1 to continue, 2 to quit, 3 to redisplay
    46. 1
    47. To check the dependent packs.
    48. press 1 to check, 2 to skip, 3 to exit
    49. 1
    50.        Checks                              Status    Fixable  
    51.        net.netfilter.nf_conntrack_max      Failed    Yes      
    52.        net.nf_conntrack_max                Failed    Yes      
    53. Use the root user to execute the following script to modify the system parameters.
    54. /tmp/hgdb_2050248256/kernelParameterSets.sh
    55. 检测是否需要执行修复脚本,如果只剩此处两个则可直接忽略,其它情况则执行修复脚本
    56. press 1 to ignore, 2 to reject, 3 to recheck
    57. 1
    58. Data directory   [/data/highgo/4.3.4/data]            #按回车
    59.  
    60.  
    61. Port number   [5866]               #按回车
    62.  
    63.  
    64. Superuser name   [highgo]           #按回车
    65.  
    66.  
    67. Password   []
    68. 第一次输入密码,必须超出六位且包含数字字母,不可含有特殊字符-@*&…%¥#()
    69. Password(again)   []
    70.  
    71.  
    72.   [x] Whether to start automatically.
    73. input 1 to select, 0 to deselect:
    74.  
    75. datatype
    76. 0  [x] OLTP
    77. 1  [ ] OLAP
    78. 2  [ ] HTAP
    79. 3  [ ] Web
    80. 4  [ ] Desktop
    81. input selection:
    82.  
    83. Total Memory (GB) [2]
    84.  
    85.  
    86. connectionNumber [300]
    87.  
    88. Locale
    89. 0  [ ] aa_DJ
    90. 1  [ ] aa_DJ.iso88591
    91. 2  [ ] aa_DJ.utf8
    92. 3  [ ] aa_ER
    93. 4  [ ] aa_ER@saaho
    94. ……
    95. 环境语言根据客户要求选择,通常选择C或者zh_CN.utf8
    96. 773  [ ] zh_CN.gbk
    97. 774  [x] zh_CN.utf8
    98. 775  [ ] zh_HK
    99. 776  [ ] zh_HK.big5hkscs
    100. 777  [ ] zh_HK.utf8
    101. 778  [ ] zh_SG
    102. 779  [ ] zh_SG.gb2312
    103. 780  [ ] zh_SG.gbk
    104. 781  [ ] zh_SG.utf8
    105. 782  [ ] zh_TW
    106. 783  [ ] zh_TW.big5
    107. 784  [ ] zh_TW.euctw
    108. 785  [ ] zh_TW.utf8
    109. 786  [ ] zu_ZA
    110. 787  [ ] zu_ZA.iso88591
    111. 788  [ ] zu_ZA.utf8
    112. input selection:
    113.  
    114.  
    115.  
    116.  
    117. Encoding 
    118. 0  [ ] EUC_JP
    119. 1  [ ] EUC_KR
    120. 2  [ ] ISO_8859_5
    121. 3  [ ] ISO_8859_6
    122. 4  [ ] ISO_8859_7
    123. 5  [ ] ISO_8859_8
    124. 6  [ ] JOHAB
    125. 7  [ ] KOI8-R
    126. 8  [ ] LATIN1
    127. 9  [ ] LATIN2
    128. 10  [ ] LATIN3
    129. 11  [ ] LATIN4
    130. 12  [ ] LATIN5
    131. 13  [ ] LATIN9
    132. 14  [ ] MULE_INTERNAL
    133. 15  [ ] SQL_ASCII
    134. 16  [ ] WIN866
    135. 17  [ ] WIN874
    136. 18  [ ] WIN1250
    137. 19  [ ] WIN1251
    138. 20  [ ] WIN1252
    139. 21  [ ] WIN1256
    140. 22  [ ] WIN1258
    141. 23  [x] UTF8
    142. input selection:
    143. Installation path: /highgo/database/4.3.4.
    144. press 1 to continue, 2 to quit, 3 to redisplay
    145. 1
    146. Installation path: /highgo/database/4.3.4.
    147. Data directory: /highgo/database/4.3.4/data.
    148. Database port: 5866.
    149. Database Locale: zh_CN.utf8.
    150. Server Encoding: UTF8.
    151. DBA User: sysdba.
    152. Database Type: oltp
    153. Total Memory: 2
    154. Connections: 300
    155. press 1 to continue, 2 to quit, 3 to redisplay
    156. 1
    157. [ Starting to unpack ]
    158. [ Processing package: Jre (1/8) ]
    159. [ Processing package: Database Server (2/8) ]
    160. [ Processing package: User interfaces (3/8) ]
    161. [ Processing package: psql (4/8) ]
    162. [ Processing package: hgdbAdmin (5/8) ]
    163. [ Processing package: Development (6/8) ]
    164. [ Processing package: Install database (7/8) ]
    165. [ Processing package: Initial the database (8/8) ]
    166. To finish the database install, please follow the below steps:
    167.       1. execute following script with root user to complete the database self-starting configuration
    168.           /data/highgo/4.3.4/hginstall.sh
    169.      2. Press enter to continue, after hginstall.sh execute successfully .
    170.  
    171. [Press enter to continue!]
    172. 另开新窗口root用户执行
    173. [root@hgdb highgo]#  /data/highgo/4.3.4/hginstall.sh
    174. Starting HighGo Database Server:
    175. waiting for server to start.... done
    176. server started
    177. HighGo Database Server started successfully
    178.  
    179. 重新回到刚才的窗口:
    180. [Press enter to continue!]
    181. [ Unpacking finished ]
    182. Begin create shorcut:
    183.  [x]Create additional shortcuts on the desktop
    184. input 1 to select, 0 to deselect:
    185. 1
    186.  [x]Create shortcuts in the StartMenu
    187. input 1 to select, 0 to deselect:
    188. 1
    189. Select which user the program will create shortcut for:
    190. 0 [ ] current user
    191. 1 [x] all users
    192. input selection:
    193. Name of programgroup [HighgoDB V4.3.4]
    194. press 1 to continue, 2 to quit, 3 to redisplay
    195. 1
    196. Install was successful
    197. application installed on /highgo/database/4.3.4
    198. [ Console installation done ]

    四、收尾工作

    4.1、修改数据库默认参数

    1. #使用sysdba登录设置参数
    2. --设置*表示所有ip都可以访问数据库
    3. alter system set listen_addresses = '*';
    4. --修改数据库的最大连接数
    5. alter system set max_connections = 2000;
    6. --修改shared_buffers,建议设置为物理内存的25%,最大不超过40%,通用机一般为32G,设置为10G
    7. alter system set shared_buffers = '10240MB';
    8. alter system set checkpoing_timeout=30min;
    9. alter system set checkpoint_completion_target = 0.8;
    10. --设置hgdb生成的日志格式
    11. alter system set log_destination = 'csvlog';
    12. --开启日志
    13. alter system set logging_collector = on;
    14. --修改日志存放路径
    15. alter system set log_directory = 'hgdb_log';
    16. --修改日志文件名称格式
    17. alter system set log_filename = 'highgodb_%d.log';
    18. --设置每天生成一个新的日志文件
    19. alter system set log_rotation_age = '1d';
    20. --不限制单个日志文件大小
    21. alter system set log_rotation_size = 0;
    22. --覆盖同名文件
    23. alter system set log_truncate_on_rotation = on;
    24. --设置记录ddl语句
    25. alter system set log_statement = 'ddl';
    26. --开启归档
    27. alter system set wal_level = replica;
    28. alter system set archive_mode = on;
    29. --红色字体部分为归档存放路径
    30. alter system set archive_command = 'test ! -f /hgdbbak/archive/%f && cp %p /hgdbbak/archive/%f'
    31. --设置用户连接与断开数据库的信息
    32. alter system set log_connections=on;
    33. alter system set log_disconnections=on;
    34. alter system set maintenance_work_mem=1GB’;
    35. #如果应用不支持ssl,使用如下命令关闭
    36. alter system set ssl=off;

    注:log_filename定义了日志名称为highgodb_%d,%d表示当月几号生成的,例如10月20号,生成的日志为highgodb_20.log。log_rotation_age设定每天生成一个日志文件。log_rotation_size不限定日志大小。log_truncate_on_rotation设定如果存在相同文件名的日志会进行覆盖。以上四个参数共同设定了日志只能保存一个月。
    安全版数据库默认开启ssl加密,现场实施过程需要确认应用是否支持ssl,若不支持,则使用上面命令关闭。

    4.2、修改pg_hba.conf文件

    添加访问许可

    1. # IPv4 local connections:
    2. host    all             all             0.0.0.0/0            md5
    3. hostssl    all             all             0.0.0.0/0            md5

    注:0.0.0.0/0表示允许所有网段访问数据库,md5表示使用md5加密的密码。
    安全版数据库默认开启ssl,若已在数据库中关闭ssl功能,需要将上面“hostssl”对应的那列注释。
    参数修改完成后重新启动数据库

    1. [highgo@hgdb archive]$ pg_ctl -m fast stop
    2. [highgo@hgdb archive]$ pg_ctl start

    4.3、安装license

    注意:
    1、 激活license之前一定要确认合同中是测试license还是永久license
    2、 使用license之前请确保是否与当前数据库版本匹配
    未安装license,数据库启动时会显示剩余时间:

    [highgo@hgdb ~]$ 日志:  00000: This is a trial edition, validate until 2018-11-21 21:58:57, database will not be able to start up after that time,please apply an official license by that time.

    上传license并复制到data目录修改名称为hgdb.lic

    1. [root@hgdb uplaod]# cp hgdb_476_3m.lic /data/highgo/4.3.4/data/hgdb.lic
    2. [root@hgdb uplaod]# chown highgo:highgo -R /data/highgo/4.3.4/data/hgdb.lic
    3. [root@hgdb uplaod]# ls -l /data/highgo/4.3.4/data/hgdb.lic
    4. -rw-r--r-- 1 highgo highgo 239 Oct 22 22:21 /data/highgo/4.3.4/data/hgdb.lic

    激活license

    1. [highgo@hgdb data]$ pg_ctl reload
    2. server signaled

    日志:  00000: 接收到 SIGHUP, 重载配置文件
    日志:  00000: 注意 :检测到授权文件已更改,该license为试用版授权,有效期截止到2019-01-20 21:58:57
     
    检查license

    1. [highgo@hgdb data]$ check_lic -D $PGDATA
    2.  
    3. ############## HIGHGODB LICENSE ###################
    4. License status:Normal
    5. License validity:2019-1-21
    6. Database Version:Highgo Database 4.3.4 Trail Edition
    7. ###################################################

    4.4、修改用户密码及密码到期时间

    Highgo Database安全版遵循三权分立的设计,sysdba(数据库管理员)、syssso(安全管理员)、syssao(审计管理员)
    数据库安装完成后,必须修改syssso用户的密码,否则syssso超期或密码输入错误次数过多会被锁定,且无法恢复。
    用户密码及密码期限修改语句如下,每个用户只能修改自己的密码(例如:syssso只能修改自己的密码,不能修改sysdba及其他用户密码)。密码期限需使用syssso用户进行修改
    #各个用户分别登录数据库,使用如下命令修改密码

    1. alter user sysdba with password 'highgo123456';
    2. alter user syssso with password 'highgo123456';
    3. alter user syssao with password 'highgo123456';
    4. #使用syssso用户登录数据库,使用如下命令修改密码到期时间
    5. alter user sysdba valid until '2999-1-1';
    6. alter user syssao valid until '2999-1-1'
    7. alter user syssso valid until '2999-1-1';

    五、卸载HGDB

    5.1、图形化卸载

    确保数据库服务已经完全关闭,使用highgo用户进入$PGHOME/bin,执行以下命令

    ./uninstall

    选择是否删除数据文件

     

     

     

    使用root执行上面的脚本

    1. [root@hgdb ~]# /data/highgo/4.3.4/hguninstall.sh
    2. Execute Success !


     卸载完成 。

    5.2、非图形化卸载

    确保数据库服务已经完全关闭,使用highgo用户进入$PGHOME/bin,执行以下命令

    1. [highgo@sds1 4.3.4]$ ./uninstall
    2. Command line uninstaller.
    3.  Force the deletion of /data/highgo/4.3.4/data [y/n]y
    4. To finish the database uninstall, please follow the below steps:
    5.       1. execute following script with root user
    6.           /data/highgo/4.3.4/hguninstall.sh
    7.      2. Press enter to continue, after hguninstall.sh execute successfully .
    8.  
    9.   [Press enter to continue!]

    使用root用户执行脚本hguninstall.sh后按回车继续

    1. [root@hgdb data]# /data/highgo/4.3.4/hguninstall.sh
    2. Execute Success !

    注:如果执行./uninstall时选择n,将只删除HGDB软件,保留data目录

  • 相关阅读:
    深入探究 JVM 频繁 Full GC 的排查过程
    我又开始贩卖焦虑了,机器视觉兄弟们,打工这生意盘不活了?让人逃离北上广深,是毒鸡汤吗?
    【C++ Efficiency】使用运算符的复合形式取代其单独形式,效率更高
    (SpringBoot)第七章:SpringBoot日志文件
    聚类测试_31省市居民家庭消费水平
    iOS 内存泄漏问题总结
    关于系统架构
    hadoop 实现数据排序
    java继承和重写(代码演示)
    git提交规范
  • 原文地址:https://blog.csdn.net/Auspicious_air/article/details/126597417