目录
环境
系统平台:Linux x86-64 Red Hat Enterprise Linux 7,Linux x86-64 Red Hat Enterprise Linux 6
版本:5.6.4
本文档为Highgo Database 企业版版单机安装指导手册,适用于Highgo Database企业版安装指导。
015414104:Highgo Database 企业版单机参数配置(最佳实践)
详细信息
1、安装
下载Highgo Database安全版rpm包并上传至服务器,使用如下命令进行安装
[root@registry ~]# rpm -ivh hgdb5.6.4-enterprise-rhel7.x-x86-64-20190723.rpm Preparing... ################################# [100%] Updating / installing... 1:highgodb-5.6.4-1.el7 ################################# [100%] WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Note: Forwarding request to 'systemctl enable hgdb-se5.6.4.service'. Created symlink from /etc/systemd/system/multi-user.target.wants/hgdb-se5.6.4.service to /usr/lib/systemd/system/hgdb-se5.6.4.service. Created symlink from /etc/systemd/system/graphical.target.wants/hgdb-se5.6.4.service to /usr/lib/systemd/system/hgdb-se5.6.4.service. |
rpm包安装过程中会自动设置数据库开机启动,并在操作系统中创建highgo用户,同时将对应信息写入到用户环境变量中。
[highgo@registry ~]$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH export HG_BASE=/opt/HighGoDB-5.6.4 export PGHOME=/opt/HighGoDB-5.6.4 export HGDB_HOME=/opt/HighGoDB-5.6.4 export PGDATA=/opt/HighGoDB-5.6.4/data export LD_LIBRARY_PATH=/opt/HighGoDB-5.6.4/lib:$LD_LIBRARY_PATH export PATH=$PATH:/opt/HighGoDB-5.6.4/bin |
2、修改数据库连接
[root@hgdb ~]#su - highgo [highgo@hgdb ~]# psql -U highgo -d highgo highgo # alter system set listen_addresses = '*'; [highgo@hgdb ~]# vi $PGDATA/pg_hba.conf # IPv4 local connections: host all all 0.0.0.0/0 md5 [highgo@hgdb ~]$ pg_ctl -m fast stop [highgo@hgdb ~]$ pg_ctl start |
更多详细信息请登录【瀚高技术支持平台】查看https://support.highgo.com/#/index/docContent/43ad41ff03ab2932