CentOS7安装openGauss5.0.2LTS版本(主备)
一、安装规划
| 序号 | 主机名 | ip地址 | 软件版本 | |
|---|---|---|---|---|
| 1 | opengauss1 | 192.168.59.131 | openGauss-5.0.2 | 主 |
| 2 | opengauss2 | 192.168.59.132 | openGauss-5.0.2 | 备 |
| 安装规划项 | 安装规划项值 | 备注 |
|---|---|---|
| openGauss安装目录 | /software/opengauss | |
| openGauss数据目录 | /data/opengauss/corefile | |
| openGauss临时目录 | /data/opengauss/tmp | |
| openGauss 日志目录 | /data/opengauss/log | |
| 开放端口 | 5432 | |
| openGauss账号/密码 | opengauss/opengauss@123 | 可以根据自己需要设置,记好就行 |
二、安装准备
2.1 修改主机相关信息
192.168.65.131(opengauss1)执行:
hostnamectl set-hostname opengauss1
cat >> /etc/hosts << EOF
192.168.59.131 opengauss1
192.168.59.132 opengauss2
EOF
192.168.65.132(opengauss2)执行:
hostnamectl set-hostname opengauss2
cat >> /etc/hosts << EOF
192.168.59.131 opengauss1
192.168.59.132 opengauss2
EOF
2.2 安装依赖
(opengauss1,opengauss2)主备执行。
yum -y install readline-devel zlib-devel gettext-devel openssl openssl-devel pam pam-devel libxml2 libxml2-devel libxslt libxslt-devel perl perl-devel tcl-devel uuid-devel gcc gcc-c++ make perl-ExtUtils* ntpdate wget curl sqlite-devel libaio-devel flex bison ncurses-devel glibc-devel patch libnsl bzip2 net-tools vim ntp\* expect*
2.3 同步时间
(opengauss1,opengauss2)主备执行。
systemctl restart ntpd
systemctl enable ntpd
#这个可以不执行
ntpdate ntp.aliyun.com && hwclock -w
2.4 关闭防火墙
(opengauss1,opengauss2)主备执行。
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state #not running,即为关闭成功
2.5 关闭selinux
(opengauss1,opengauss2)主备执行。
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
getenforce #Disabled,即为关闭成功,如果不成功,重启一下服务器。
2.6 关闭透明大页
(opengauss1,opengauss2)主备执行。
sed -i "s/quiet/quiet numa=off transparent_hugepage=never/g" /etc/default/grub
#重新做grub
grub2-mkconfig -o /boot/grub2/grub.cfg
2.7 设置网卡MTU
(opengauss1,opengauss2)主备执行。
ens33要根据自己的实际网卡调整。
ifconfig ens33 mtu 8192
2.8 设置字符集
(opengauss1,opengauss2)主备执行。
echo LANG=en_US.UTF-8 >> /etc/profile
source /etc/profile
2.9 安装Python3.6.9
(opengauss1,opengauss2)主备执行。
2563



被折叠的 条评论
为什么被折叠?



