CentOS 7.1安装HGDB 3.1.4 说明文档

文档用途

本文档介绍了CentOS 7.1的安装方法以及在CentOS 7.1上安装HGDB 3.1.4的步骤。

详细信息

安装版本及注意事项

安装版本

操作系统

CentOS 7.1   x86_64

HGDB

HGDB 3.1.4

注意事项

使用图形化安装HGDB时,必须将系统用户切换至highgo用户执行安装,在root用户中执行su – highgo命令切换用户,安装时不能显示图形界面。

操作系统安装

操作系统安装

测试介质然后安装。

undefined

选择安装过程中使用的语言。

undefined

安装时的其他选项一览。

undefined

设置日期和时间。

undefined

选择要安装的环境。

undefined

选择安装位置,手动进行磁盘分区。

undefined

undefined

undefined

设置主机名和网络配置。

undefined

undefined

所有选项设置完毕,点击Begin Installation开始安装。

undefined

安装过程中可以配置root账户的密码和进行用户的创建。

undefined

undefined

undefined

安装过程完毕,点击重启(Reboot)即可。

undefined

系统配置

主机名

[root@hgdb ~]# hostname

hgdb

关闭防火墙

[root@hgdb ~]# systemctl stop firewalld.service

[root@hgdb ~]# systemctl disable firewalld.service

rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'

rm '/etc/systemd/system/basic.target.wants/firewalld.service'

关闭NetworkManager

[root@hgdb ~]# systemctl stop  NetworkManager.service

[root@hgdb ~]# systemctl disable NetworkManager.service

rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'

rm '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'

rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'

关闭selinux

[root@localhost ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of three two values:

#     targeted - Targeted processes are protected,

#     minimum - Modification of targeted policy. Only selected processes are protected.

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

YUM系统包

[root@hgdb ~]# mkdir /media/cdrom

[root@hgdb ~]# mount /dev/cdrom /media/cdrom

[root@hgdb ~]# vi /etc/yum.repos.d/highgo.repo

[Server]

name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source

baseurl=file:///media/cdrom

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[root@hgdb ~]# yum clean all

[root@hgdb ~]# yum list

[root@hgdb ~]# yum install lrzsz sysstat e4fsprogs ntp openssl* pam-devel libxml2-devel libxslt-devel python-devel tcl-devel make smartmontools flex bison perl* OpenIPMI-tools systemtap-sdt-devel  *readline* *zlib* gcc -y

创建用户

[root@hgdb ~]# /usr/sbin/groupadd -g 3000 highgo

[root@hgdb ~]# /usr/sbin/useradd -u 3100 -g highgo highgo

[root@hgdb ~]# passwd highgo

Changing password for user highgo.

New password:

BAD PASSWORD: it does not contain enough DIFFERENT characters

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

创建目录

[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 ~]# cat /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用户安装

选择语言。

undefined

undefined

undefined

选择安装路径。

undefined

undefined

undefined

undefined

确认各项设置的安装选项。

32.png

undefined

undefined

选择执行脚本。

undefined

[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

undefined

undefined

安装完成。

undefined

欢迎登录【瀚高技术支持平台】查看更多资料

瀚高技术支持平台

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值