在root用户下创建用户highgo用户。
创建目录
[root@hgdb ~]# mkdir -p /highgo/database/3.0
[root@hgdb ~]# chmod -R 775 /highgo/database/3.0
[root@hgdb ~]# chown -R highgo:highgo /highgo/database/3.0
为用户设置环境变量
[root@hgdb ~]# vim /home/highgo/.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_HOME=/highgo/database/3.0
export PGDATA=/highgo/database/3.0/data
export LD_LIBRARY_PATH=$HG_HOME/lib
export PATH=$HG_HOME/bin:$PATH
export
umask 022
HGDB安装
解压安装包
[root@hgdb opt]# tar -zxvf hgdb3.1.4_installer_centos6.4_64.tar.gz
[root@hgdb opt]# chown -R highgo:highgo hgdb3.1.4_installer_centos6.4_64
切换用户到HIGHGO用户安装
一直点击下一步,直到出现弹窗,一定先执行下面的语句再点击OK。

[root@hgdb ~]# /highgo/database/3.0/finish
Attempting to create directory /home/highgo/perl5
Starting HighGo Database Server:
waiting for server to start.... done
server started
HighGo Database Server started successfully

本文详细介绍在Linux环境下,如何使用root用户创建highgo用户,设置环境变量,创建数据库目录并进行权限分配,以及HighGo数据库3.1.4版本的安装流程。包括解压安装包、设置用户权限和完成安装的最后步骤。
762

被折叠的 条评论
为什么被折叠?



