Redhat 7.5安装HGDB 4.1.1说明文档

目录

文档用途

详细信息

相关文档

文档用途

介绍HGDB4.1.1在Redhat 7.5系统上的图形化安装流程。

详细信息

1.安装版本及注意事项

1.1 安装版本

操作系统

Redhat 7.5 x86_64

HGDB

HGDB 4.1.1

1.2 注意事项

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

2.状态检查

2.1 检查SWAP空间

[root@localhost ~]# grep MemTotal /proc/meminfo

MemTotal:        1015508 kB

[root@localhost ~]# grep SwapTotal /proc/meminfo

SwapTotal:        839676 kB

[root@localhost ~]# free -h

              total        used        free      shared  buff/cache   available

Mem:           991M        705M         70M        5.6M        214M        102M

Swap:          819M         90M        729M

2.2 操作系统

 

[root@localhost ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.5 (Maipo)

[root@localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

2.3 关闭防火墙

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

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

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

2.4 关闭NetworkManager

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

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

Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

2.5 关闭selinux

[root@localhost ~]# sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

[root@localhost ~]# setenforce 0

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

# SELINUX= can take one of these three values:

SELINUX=disabled

# SELINUXTYPE= can take one of three two values:

SELINUXTYPE=targeted 

2.6 主机名和时间检查

[root@localhost ~]# hostnamectl status

   Static hostname: localhost.localdomain

         Icon name: computer-vm

           Chassis: vm

        Machine ID: 2bad7c3a0b264eff8f1939c33ca63a2c

           Boot ID: fde62257be904629b34be751afc97924

    Virtualization: kvm

  Operating System: Red Hat Enterprise Linux Server 7.5 (Maipo)

       CPE OS Name: cpe:/o:redhat:enterprise_linux:7.5:GA:server

            Kernel: Linux 3.10.0-862.el7.x86_64

      Architecture: x86-64

[root@localhost ~]# timedatectl

      Local time: Thu 2018-07-05 22:30:17 CST

  Universal time: Thu 2018-07-05 14:30:17 UTC

        RTC time: Thu 2018-07-05 14:30:14

       Time zone: Asia/Shanghai (CST, +0800)

     NTP enabled: yes

NTP synchronized: yes

 RTC in local TZ: no

      DST active: n/a

2.7 安装系统软件包

[root@localhost ~]# 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-redhat-release

创建/media/cdrom目录:

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

挂载操作系统镜像:

[root@localhost ~]# mount /dev/sr0 /media/cdrom

安装系统软件包:

[root@localhost ~]# yum install wget readline readline-devel zlib zlib-devel openssl openssl-devel pam-devel libxml2-devel libxslt-devel python-devel tcl-devel gcc gcc-c++ -y

2.8 创建用户

[root@localhost ~]# groupadd -g 5866 highgo

[root@localhost ~]# useradd -u 5866 -g highgo highgo; echo XXXXXX(密码) | passwd -f --stdin highgo

Changing password for user highgo.

passwd: all authentication tokens updated successfully.

2.9 创建相关目录

[root@localhost ~]# mkdir -p /home/highgo/4.1.1

[root@localhost ~]# mkdir -p /home/hgdbbak/archive

[root@localhost ~]# chown -R highgo:highgo /home/highgo/

[root@localhost ~]# chown -R highgo:highgo /home/hgdbbak/

2.10 修改内核参数

[root@localhost ~]# vi /etc/sysctl.conf

添加以下内容:

#for highgo db 4.1.1

kernel.shmmni = 4096

kernel.sem = 4096 2147483647 2147483646 512000

fs.file-max = 7672460

net.ipv4.ip_local_port_range = 9000 65000

net.core.rmem_default = 1048576

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_max_syn_backlog = 4096

net.core.netdev_max_backlog = 10000

vm.overcommit_memory = 0

fs.aio-max-nr = 1048576

net.ipv4.tcp_timestamps = 0

root用户运行如下命令是参数立即生效:

 

[root@localhost ~]# sysctl -p

2.11 修改用户限制

[root@localhost ~]# vi /etc/security/limits.conf

添加如下内容:

#for highgo db 4.1.1

highgo soft  core unlimited

highgo hard  nproc unlimited

highgo soft  nproc unlimited

highgo hard  memlock unlimited

highgo hard  nofile 1024000

highgo soft  memlock unlimited

highgo soft  nofile 1024000

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

https://support.highgo.com/#/index/docContent/aafac8190403bab7

猜你喜欢

转载自blog.csdn.net/pg_hgdb/article/details/82904866
今日推荐