首页 > 其他分享 >step by step系列之:openGauss1.0.1单机安装指南v1.2

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

时间:2024-04-17 11:57:13浏览次数:13  
标签:cat etc step v1.2 ipv4 conf openGauss net openGauss1.0

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 数据库软件

下载地址为:https://opengauss.org/zh/download/

数据库安装包上传至 centos 上

安装 openGauss 单机数据库
解压缩 openGauss DBMS 介质

cd /opt/software/openGauss
tar xf openGauss-1.0.1-CentOS-64bit.tar.gz
创建 XML 文件

cat > clusterconfig.xml<<EOF

<root\>

标签:cat,etc,step,v1.2,ipv4,conf,openGauss,net,openGauss1.0
From: https://www.cnblogs.com/helloopenGauss/p/18140247

相关文章

  • 5.CentOS-7-Minimal 安装KubernetesV1.23.17&DockerV20.10.23
    1.环境准备主节点IP:192.168.254.130node1IP:192.168.254.131node2IP:192.168.254.132OSversion:CentOS7miniCPUArchitecture:x86_64/amd64K8sversion:v1.23.17Dockerversion:20.10.232.安装前准备#安装依赖yuminstall-ycurlwgetsystemdbash-completi......
  • 52 Things: Number 34: Describe the Baby-Step/Giant-Step method for breaking DLPs
    52Things:Number34:DescribetheBaby-Step/Giant-StepmethodforbreakingDLPs52件事:第34件:描述打破DLP的小步/大步方法 Thisisthelatestinaseriesofblogpoststoaddressthelistof '52ThingsEveryPhDStudentShouldKnow' todoCryptography:ase......
  • P3654 First Step (ファーストステップ)
    题目链接:本题数据范围仅为\(100\),因此可以暴力枚举\(O(n^3)\),唯一需要注意的一点就是当\(k=1\)时,横着站和竖着站是一样的,答案被计算了两次,因此最终的\(\rmans\)需要再除以\(2\)。#include<bits/stdc++.h>constintN=110;charw[N][N];intR,C,K,ans;boolfl......
  • 在aarch64上编译,fstack: master分支:5b97230c858598a10e1b82c tag: v1.23, origin/mast
    F-Stack一个基于DPDK的开源和高性能网络框架 基于DPDK23.11需要做如下操作sed替换:sed-n'/DEV_RX_OFFLOAD_IPV4_CKSUM/p'drivers/net/macb/*sed-i's/ETH_/RTE_ETH_/g'*.csed-i's/DEV_/RTE_ETH_/g'*.c f-stack适配dpdk20.11sed-i's/RTE_MBUF_F_RX_I......
  • Stepwise Self-Consistent Mathematical Reasoning with Large Language Models
    本文是LLM系列文章,针对《StepwiseSelf-ConsistentMathematicalReasoningwithLargeLanguageModels》的翻译。基于大型语言模型的逐步自洽数学推理摘要1引言2相关工作3TriMaster100数据集4循序渐进的自洽思维链5实验6结论摘要使用大型语言模型进......
  • 云盘:StableBit CloudDrive v1.2.6 Crack
    StableBitCloudDrivev1.2.6.17创建与真实驱动器没有区别的虚拟硬盘驱动器。将实际数据存储在您选择的云提供商中(或本地)所有内容都可以使用行业标准AES-256进行加密,密钥只有您知道。在您不知情的情况下,任何人都无法窥探或访问您的数据了解您最常访问的数据并将其存储在......
  • git tag -a v1.2.0 -m "version: 1.2.0" 这个是什么意思
    gittag-av1.2.0-m"version:1.2.0"这个是什么意思gittag-av1.2.0-m"version:1.2.0"是Git命令行中创建带有注解(annotated)标签的操作。具体含义和作用如下:gittag:基础命令,用于创建、列出、删除或校验Git标签。-a:选项指定创建一个带有注解的标签(annotate......
  • Step by Step Data Replication Using Oracle GoldenGate
    1、Quickstarts2、ConfigureDeployments3、ManageDeploymentsfromtheServiceManager 4、ConfigureDataReplicationProcessesfromtheAdministrationService 5、ConfigurePathstoTransportTraiData 6、MonitorPathsandTrailsfromtheReceiver......
  • CF1139D Steps to One
    期望就是\(\sum序列长度\times这个长度的概率\)我们先想长为\(x\)的序列出现的概率为多大长度为\(i\)的序列,对于每个约数,约数集合为\(\sigma\),出现概率为\(\sum_{p\in\sigma}(\frac{\lfloor\frac{m}{p}\rfloor}{m})^{i-1}\times\frac{m-\lfloor\frac......
  • Step-by-Step之-openGauss1-0-1单机安装指南v1-2
    StepbyStep之:openGauss1.0.1单机安装指南v1.2在CentOS7.6上安装openGauss单机版配置操作系统满足安装要求硬件环境:虚拟机的内存8GB,4核心CPU,900G磁盘(非必须)软件环境:CentOS7.6关闭防火墙#停止firewallsystemctlstopfirewalld.service#禁止firewall开机启......