环境:
操作系统Linx-6.0.80-20191126-amd64-DVD.iso
数据库安全版4.5.8
1.安装凝思操虚拟机
-
凝思系统安装完成后,root账户密码一般为系统默认的R0ck9
-
配置桥接网络
virtualbox针对该虚拟机设置桥接类型
更改网络设置
/etc/network/interfaces:# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.31.138 netmask 255.255.255.0 network 192.168.31.0 broadcast 192.168.31.255 gateway 192.168.31.254
重启网络服务
/etc/init.d/networking restart
配置DNS
vim /etc/resolv.conf
nameserver 219.147.1.66
-
通过ssh连接需要更改如下配置:
在文件/etc/ssh/sshd_config最后一行,添加如下内容:
PermitRootLogin yes
- 安装数据库
-
所有节点安装数据库
dpkg -i hgdb-see_4.5.8-db43858_amd64.deb -
主节点初始化数据库
/opt/highgo/hgdb-see-4.5.8/bin/initdb -D ~/data -e sm4 -c “echo 12345678” --data-checksums
法规及
主节点更改postgres.conf和pg_hba.conf
/opt/highgo/hgdb-see-4.5.8/bin/hg_sslkeygen.sh /root/data