1. 程式人生 > >Centos 7.3安裝HGDB 4.1.1說明文件

Centos 7.3安裝HGDB 4.1.1說明文件

目錄

文件用途

詳細資訊

相關文件

文件用途

介紹HGDB4.1.1在Centos7.3系統上的圖形化安裝流程。

詳細資訊

1.安裝版本及注意事項

1.1 安裝版本

作業系統

CentOS 7.3 x86_64

HGDB

HGDB 4.1.1

1.2 注意事項

使用圖形化安裝HGDB時,必須將系統使用者切換至highgo使用者執行安裝,在root使用者中執行su – highgo命令切換使用者,安裝時不能顯示圖形介面。

2.狀態檢查

2.1 檢查SWAP空間

[[email protected] ~]# grep MemTotal /proc/meminfo

MemTotal:        1016476 kB

[[email protected] ~]# grep SwapTotal /proc/meminfo

SwapTotal:        839676 kB

[[email protected] ~]# free -h

              total        used        free      shared  buff/cache   available

Mem:           992M        366M        154M        7.6M        471M        459M

Swap:          819M          0B        819M

2.2 作業系統

 

[[email protected] ~]# cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

[[email protected] ~]# uname -a

Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

2.3 關閉防火牆

[[email protected] data]# systemctl disable firewalld.service

[[email protected] data]# systemctl stop  firewalld.service

2.4 關閉NetworkManager

[[email protected] data]# systemctl stop  NetworkManager.service

[[email protected] data]# systemctl disable NetworkManager.service

2.5 關閉selinux

[[email protected] data]# setenforce 0

setenforce: SELinux is disabled

[[email protected] data]# sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

[[email protected] data]# 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 

2.6 主機名和時間檢查

[[email protected] data]# hostnamectl status

   Static hostname: localhost.localdomain

         Icon name: computer-vm

           Chassis: vm

        Machine ID: fd8d3f8d3b1a4ce5b31cd84cd732b3f7

           Boot ID: a91ab1617a69462b98e05a67d11e04e2

    Virtualization: kvm

  Operating System: CentOS Linux 7 (Core)

       CPE OS Name: cpe:/o:centos:centos:7

            Kernel: Linux 3.10.0-514.el7.x86_64

      Architecture: x86-64

[[email protected] data]# timedatectl

      Local time: Thu 2018-06-21 15:59:01 CST

  Universal time: Thu 2018-06-21 07:59:01 UTC

        RTC time: Thu 2018-06-21 07:59:01

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

     NTP enabled: yes

NTP synchronized: no

 RTC in local TZ: no

      DST active: n/a

2.7 安裝系統軟體包

[[email protected] data]# 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目錄:

[[email protected] data]# mkdir /media/cdrom

掛載作業系統映象:

[[email protected] data]# mount /dev/sr0 /media/cdrom

安裝系統軟體包:

[[email protected] 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

2.8 建立使用者

[[email protected] data]# groupadd -g 5866 highgo
[[email protected] data]# useradd -u 5866 -g highgo highgo; echo XXXXXX(機密資訊) | passwd -f --stdin highgo

2.9 建立相關目錄

[[email protected] data]# mkdir -p /data/highgo/4.1.1

[[email protected] data]# mkdir -p /data/hgdbbak/archive

[[email protected] data]# chown -R highgo:highgo /data

2.10 修改核心引數

[[email protected] data]# 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使用者執行如下命令是引數立即生效:

[[email protected] data]# sysctl -p

2.11 修改使用者限制

[[email protected] data]# 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

 

詳細的上傳並解壓HGDB安裝包以及圖片化安裝流程請登入【瀚高技術支援平臺】檢視

https://support.highgo.com/#/index/docContent/919ed70c009f1e95