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安装

详细的安装流程请登录【瀚高技术支持平台】查看

https://support.highgo.com/#/index/docContent/96978e3305de4ad9

猜你喜欢

转载自blog.csdn.net/pg_hgdb/article/details/86747327