[root@hgdb ~]# rpm -ivh hgdb-see-4.5.8-fe4791c.x86_64.rpm 准备中... ################################# [100%] 正在升级/安装... 1:hgdb-see-4.5.8-fe4791c ################################# [100%] Created symlink from /etc/systemd/system/multi-user.target.wants/hgdb-see-4.5.8.service to /usr/lib/systemd/system/hgdb-see-4.5.8.service. Created symlink from /etc/systemd/system/graphical.target.wants/hgdb-see-4.5.8.service to /usr/lib/systemd/system/hgdb-see-4.5.8.service. Created symlink from /etc/systemd/system/multi-user.target.wants/hgproxy.service to /usr/lib/systemd/system/hgproxy.service. Created symlink from /etc/systemd/system/graphical.target.wants/hgproxy.service to /usr/lib/systemd/system/hgproxy.service.
安装完毕后,会在/opt/highgo下生成如下安装目录:
[root@hgdb ~]# cd /opt/highgo/ [root@hgdb highgo]# ls dbha hgdbconfiguration hgdb-see-4.5.8 hgproxy
[root@ hgdb etc]# ./laststep.sh 是否按照默认值初始化一个数据库实例?(yes/no/exit)(默认yes)yes initdb -A sm3 -e sm4 -c echo 12345678 -D /opt/highgo/hgdb-see-4.5.8/data --pwfile=/opt/highgo/hgdb-see-4.5.8/etc/default_passwd The files belonging to this database system will be owned by user "root". This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english".
Data page checksums are disabled. Data encryption using sm4 is enabled.
creating directory /opt/highgo/hgdb-see-4.5.8/data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... PRC creating configuration files ... ok running bootstrap script ... 2022-05-05 13:23:55.450 CST [25261] LOG: Switchover the SSHA Role. Current is NONE ok performing post-bootstrap initialization ... 2022-05-05 13:23:56.475 CST [25272] LOG: data encryption performed by sm4 2022-05-05 13:23:56.484 CST [25272] LOG: Switchover the SSHA Role. Current is NONE
ok syncing data to disk ... ok
Success. You can now start the database server using:
hg_sslkeygen.sh /opt/highgo/hgdb-see-4.5.8/data pg_ctl -D /opt/highgo/hgdb-see-4.5.8/data -l logfile start /opt/highgo/hgdb-see-4.5.8/bin/hg_sslkeygen.sh /opt/highgo/hgdb-see-4.5.8/data Setting the ssl configuration to /opt/highgo/hgdb-see-4.5.8/data Generating RSA private key, 2048 bit long modulus ............+++ .............................................................................................................................................................+++ e is 65537 (0x10001) pg_ctl start -D /opt/highgo/hgdb-see-4.5.8/data waiting for server to start....2022-05-05 13:24:15.002 CST [25296] LOG: data encryption performed by sm4 2022-05-05 13:24:15.614 CST [25296] LOG: starting HighGo Security Enterprise Edition Database System 4.5.8 on x86_64,build on 20220419 2022-05-05 13:24:15.615 CST [25296] LOG: listening on IPv6 address "::1", port 5866 2022-05-05 13:24:15.615 CST [25296] LOG: listening on IPv4 address "127.0.0.1", port 5866 2022-05-05 13:24:15.738 CST [25296] LOG: listening on Unix socket "/tmp/.s.PGSQL.5866" 2022-05-05 13:24:15.798 CST [25296] LOG: This is a trial HighGo Security Enterprise Edition Database, valid until 2022-06-04 23:59:59. Pre-sale service hotline: 400-708-8006. Online technical support platform: https://support.highgo.com/. 2022-05-05 13:24:15.808 CST [25298] LOG: database system was shut down at 2022-05-05 13:24:08 CST 2022-05-05 13:24:15.811 CST [25298] LOG: Switchover the SSHA Role. Current is NONE 2022-05-05 13:24:15.827 CST [25296] LOG: database system is ready to accept connections done server started psql -U syssso -d highgo -f secure_param.sql NOTICE: ------------------------------------------- Login User: syssso Login time: 2022-05-05 13:24:17.054059+08 Login Address: [local] Last Login Status: SUCCESS Login Failures: 0 Valied Until: 2022-05-12 13:23:56+08 -------------------------------------------
set_secure_param --------------------------------- set configuration successfully. (1 row)
set_secure_param --------------------------------- set configuration successfully. (1 row)
set_secure_param --------------------------------- set configuration successfully. (1 row)
set_secure_param --------------------------------- set configuration successfully. (1 row)
set_secure_param --------------------------------- set configuration successfully. (1 row)
set_audit_param --------------------------------- set configuration successfully. (1 row)
pg_ctl restart -D /opt/highgo/hgdb-see-4.5.8/data 2022-05-05 13:24:17.230 CST [25296] LOG: received fast shutdown request waiting for server to shut down....2022-05-05 13:24:17.241 CST [25296] LOG: aborting any active transactions 2022-05-05 13:24:17.250 CST [25296] LOG: background worker "logical replication launcher" (PID 25304) exited with exit code 1 2022-05-05 13:24:17.250 CST [25299] LOG: shutting down 2022-05-05 13:24:17.620 CST [25296] LOG: database system is shut down done server stopped waiting for server to start....2022-05-05 13:24:17.666 CST [25321] LOG: data encryption performed by sm4 2022-05-05 13:24:17.676 CST [25321] LOG: starting HighGo Security Enterprise Edition Database System 4.5.8 on x86_64,build on 20220419 2022-05-05 13:24:17.676 CST [25321] LOG: listening on IPv4 address "0.0.0.0", port 5866 2022-05-05 13:24:17.676 CST [25321] LOG: listening on IPv6 address "::", port 5866 2022-05-05 13:24:17.694 CST [25321] LOG: listening on Unix socket "/tmp/.s.PGSQL.5866" 2022-05-05 13:24:17.789 CST [25321] LOG: redirecting log output to logging collector process 2022-05-05 13:24:17.789 CST [25321] HINT: Future log output will appear in directory "hgdb_log". done server started