step by step系列之:openGauss1.0.1单机安装指南v1.2

Step by Step 之:openGauss1.0.1 单机安装指南 v1.2

在 CentOS7.6 上安装 openGauss 单机版

配置操作系统满足安装要求

硬件环境:虚拟机的内存 8GB,4 核心 CPU,900G 磁盘(非必须)

软件环境:CentOS7.6

关闭防火墙

#停止 firewall

systemctl stop firewalld.service

#禁止 firewall 开机启动

systemctl disable firewalld.service

关闭 SELinux

getenforce
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
setenforce 0
getenforce

修改/etc/hosts

添加一行

cat >>/etc/hosts <<EOF
***.***.***.*** node1
EOF

配置库路径

cat>> /etc/profile<<EOF
export LD_LIBRARY_PATH=/opt/software/openGauss/script/gspylib/clib:$LD_LIBRARY_PATH
EOF

关闭 os 交换区

编辑/etc/fstab 文件,将交换区的那一行注释掉

vi /etc/fstab

****

临时关闭交换区命令:

swapoff -a
free

配置网络参数

cat>>/etc/sysctl.conf<<EOF
net.ipv4.ip_local_port_range = 26000 65500
net.ipv4.tcp_rmem = 4096 87380 4194304
 net.ipv4.tcp_wmem = 4096 16384 4194304
net.ipv4.conf. ens33.rp_filter = 1
net.ipv4.tcp_fin_timeout=60
net.ipv4.tcp_retries1=5
net.ipv4.tcp_syn_retries=5
net.sctp.path_max_retrans=10
net.sctp.max_init_retransmits=10
EOF

说明:

如果对外工作的网卡万兆网卡 ens33,需要设计最大 MTU 为 8192。 虚拟机没有万兆网卡不能配置该项,否则认证报错!

配置 NTPD(单机可以不用配置)

yum install ntp -y
vi /etc/ntp.conf

添加以下一行:

restrict ***.***.***.*** mask 255.255.255.0 nomodify notrap

添加以下 3 行,并注释掉所有的 server 行:

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

server node1

#启动 ntpd 时间服务器

service ntpd start

#开机自启动

chkconfig ntpd on

或者

systemctl enable ntpd.service

设置 root 用户远程登陆

sed -i "s/#Banner none/Banner none/g" /etc/ssh/sshd_config
cat >>/etc/ssh/sshd_config<<EOF
PermitRootLogin yes
EOF

systemctl restart sshd

#检查

cat /etc/ssh/sshd_config  | grep PermitRootLogin
PermitRootLogin yes

#检查

cat /etc/ssh/sshd_config | grep Banner
Banner none

文件系统参数、系统支持的最大进程数

echo "* soft nofile 1000000" >>/etc/security/limits.conf
echo "* hard nofile 1000000" >>/etc/security/limits.conf
echo "* soft nproc unlimited" >>/etc/security/limits.conf
echo "* hard nproc unlimited" >>/etc/security/limits.conf

安装 python3.6.x

yum install openssl* -y
yum install python3* -y

说明:

也可以直接编译安装或者 rpm 包安装。

reboot

重新启动服务器

创建安装包的存放目录

mkdir -p /opt/software/openGauss
chmod 755 -R /opt/software

下载 openGauss 数据库软件

下载地址为:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值