天天看點

HGDB4.3.2在CentOS 6.x中安裝和解除安裝指導手冊1.安裝版本及注意事項1.1 安裝版本2.狀态檢查

目錄

文檔用途

詳細資訊

文檔用途

介紹HGDB4.3.2在CentOS 6.8系統上的安裝和解除安裝流程。

詳細資訊

1.安裝版本及注意事項

1.1 安裝版本

作業系統 CentOS 6.8 x86_64
HGDB HGDB 4.3.2

2.狀态檢查

2.1 檢查SWAP空間

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

MemTotal:        1020072 kB

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

SwapTotal:        835580 kB

[[email protected] ~]# free -h

             total       used       free     shared    buffers     cached

Mem:          996M       179M       816M       200K        11M        63M

-/+ buffers/cache:       103M       892M

Swap:         815M         0B       815M

2.2 作業系統

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

CentOS release 6.8 (Final)

[[email protected] ~]# uname -a

Linux hgtest 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

2.3 關閉防火牆

[[email protected] ~]# service iptables stop

iptables: Setting chains to policy ACCEPT: filter               [  OK  ]

iptables: Flushing firewall rules:                         [  OK  ]

iptables: Unloading modules:                             [  OK  ]

[[email protected] ~]# chkconfig iptables off

2.4 關閉selinux

[[email protected] ~]# setenforce 0

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

[[email protected] ~]# 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 these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted 

2.5 主機名和時間檢查

[[email protected] ~]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

[[email protected] ~]# cat /etc/sysconfig/clock

ZONE="Asia/Shanghai"

2.6 安裝系統軟體包

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

更多詳細的安裝資訊請登入【瀚高技術支援平台】檢視

https://support.highgo.com/#/index/docContent/3bf3e76401eb852c