瀚高資料庫V4.1.1標準化安裝流程
目錄
文件用途
詳細介紹瀚高資料庫V4.1.1的標準化安裝流程。
詳細資訊
1. 資料庫安裝路徑
安裝目錄: /home/hgdb4.1.1/
data目錄: /data/highgo/4.1.1/data
歸檔目錄: /hgarch
2. 檢查swap空間
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
3. 關閉防火牆
service iptables stop
chkconfig iptables off
4. 關閉NetworkManager和selinux
service NetworkManager stop
chkconfig NetworkManager off
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
cat /etc/selinux/config
setenforce 0
5. 檢查主機名、時間、時區
cat /etc/sysconfig/network
cat /etc/hosts
cat /etc/sysconfig/clock
date
6. 安裝系統軟體包
vi /etc/yum.repos.d/highgo.repo
[Server]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=file:///mnt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
掛載作業系統映象
mount /dev/sr0 /mnt
yum install wget readline readline-static readline-devel zlib zlib-devel zlib-static openssl openssl-devel pam-devel libxml2-devel libxslt-devel python-devel tcl-devel gcc gcc-c++ -y
7. 建立作業系統使用者
8. 建立資料庫安裝目錄
mkdir -p /home/hgdb4.1.1/
mkdir -p /data/highgo/4.1.1/data
mkdir /hgarch
chown -R highgo:highgo /home/hgdb4.1.1
chown -R highgo:highgo /data
chown -R highgo:highgo /hgarch
9. 配置作業系統核心引數
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使用者執行如下命令是引數立即生效。
sysctl -p
詳細的配置作業系統limits、設定highgo使用者環境變數、修改資料庫引數、修改網路訪問控制以及解除安裝資料庫等請登入【瀚高技術支援平臺】檢視
https://support.highgo.com/#/index/docContent/f4ecd3cf00244671