Highgo Database 企业版配置(最佳实践)

目录

环境

文档用途

详细信息

环境

系统平台:Linux x86-64 Red Hat Enterprise Linux 7,中标麒麟(CPU申威)7,中标麒麟(CPU海光)7,中标麒麟(CPU龙芯)7,中标麒麟(CPU飞腾)7

版本:4.3.4,4.7.7,4.7.6,4.7.5,4.3.2,4.1.1

文档用途

本文档适用于指导Highgo Database企业版安装后配置。

本文档将会不定期更新,请在使用前下载最新版本。

详细信息

1、调整swap

内存及对应swap建议值参照表

MemTotal

SwapTotal

8G

2~4G

8~16G

4~8G

16~64G

8~32G

>=64G

32G

2、添加端口到系统防火墙

--添加数据库端口到防火墙

[root@k8s1 ~]# firewall-cmd --add-port=5866/tcp --permanent

success

3、关闭并禁用NetworkManager

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

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

4、关闭并禁用selinux

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

[root@hgdb ~]# setenforce 0

[root@hgdb ~]# cat /etc/selinux/config | grep SELINUX=disabled

[root@hgdb ~]# getenforce

5、安装软件包

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

6、配置用户limits

--修改limits.conf添加以下内容

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

#for highgo db 4.3.4

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

highgo hard  stack  65536

highgo soft  stack  65536

更多详细信息请登录【瀚高技术支持平台】 查看

发布了399 篇原创文章 · 获赞 108 · 访问量 65万+

猜你喜欢

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