Centos 7.3安装HGDB 4.3.2说明文档

目录

文档用途

详细信息

相关文档

文档用途

介绍HGDB4.3.2在Centos7.3系统上的图形化安装流程。

详细信息

 

  1. 1.安装版本及注意事项

  2. 1.1 安装版本

操作系统

CentOS 7.3 x86_64

HGDB

HGDB 4.3.2

  1. 1.2 注意事项

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

  1. 1.3 系统配置

  2. 1.3.1 操作系统

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

CentOS Linux release 7.3.1611 (Core)

  1. 1.3.2 关闭防火墙

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

[root@localhost data]# systemctl stop  firewalld.service
  1. 1.3.3 关闭NetworkManager

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

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

  1. 1.3.4 关闭selinux

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

[root@localhost upload]# 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
  1. 1.3.5 查看时区

[root@localhost data]# timedatectl

      Local time: Tue 2018-05-15 17:14:09 CST

    Universal time: Tue 2018-05-15 09:14:09 UTC

       RTC time: Tue 2018-05-15 09:14:10

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

     NTP enabled: yes

  NTP synchronized: yes

  RTC in local TZ: no

     DST active: n/a
  1. 1.3.6 YUM系统包

[root@localhost data]# 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
  1. 1.3.7 创建用户

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

[root@localhost data]# useradd -u 5866 -g highgo highgo; echo xxx(敏感信息) | passwd -f --stdin highgo

  1. 1.3.8 创建目录

[root@localhost upload]# mkdir -p /data/highgo/4.3.2

[root@localhost upload]# mkdir -p /data/hgdbbak/archive

[root@localhost upload]# chown -R highgo:highgo /data
  1. 1.3.9 修改内核参数

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

[root@localhost upload]# sysctl -p

net.core.wmem_default = 262144

fs.file-max = 76724600

vm.mmap_min_addr = 65536

net.core.somaxconn = 4096

net.core.wmem_max = 4194304

net.core.netdev_max_backlog = 10000

kernel.sem = 4096 2147483647 2147483646 512000

net.core.rmem_max = 4194304

vm.overcommit_ratio = 90

net.ipv4.tcp_tw_reuse = 1

net.core.rmem_default = 262144

net.ipv4.ip_local_port_range = 40000 65535

net.ipv4.tcp_rmem = 8192 87380 16777216

net.ipv4.tcp_max_syn_backlog = 4096

fs.nr_open = 20480000

net.ipv4.tcp_wmem = 8192 87380 16777216

vm.dirty_writeback_centisecs = 100

vm.dirty_ratio = 95

kernel.shmmni = 819200

vm.swappiness = 0

net.ipv4.tcp_mem = 8388608 12582912 16777216

vm.dirty_background_bytes = 409600000

net.ipv4.tcp_max_tw_buckets = 262144
  1. 1.3.10 修改用户限制

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

#for highgo db 4.3.2

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
  1. 1.3.11 用户环境变量配置

[root@localhost upload]# vi /home/highgo/.bash_profile

export

export PGHOME=/data/highgo/4.3.2

export PGUSER=highgo

export PGPORT=5866

export PGDATA=$PGHOME/data

export PATH=$PGHOME/bin:$PATH:$HOME/bin

export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH

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

https://support.highgo.com/#/index/docContent/7051912604f2bf23

猜你喜欢

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