搭建环境

https://gitee.com/opengauss

环境搭建指导

https://opengauss.org/zh/blogs/blogs.html?post/xingchen/opengauss_compile/

export CODE_BASE=/home/postgres/openGauss-server
export BINARYLIBS=/home/postgres/openGauss-third_party_binarylibs
export GAUSSHOME=$CODE_BASE/dest/
export GCC_PATH=$BINARYLIBS/buildtools/openeuler_aarch64/gcc7.3/
export CC=$GCC_PATH/gcc/bin/gcc
export CXX=$GCC_PATH/gcc/bin/g++
export LD_LIBRARY_PATH=$GAUSSHOME/lib:$GCC_PATH/gcc/lib64:$GCC_PATH/isl/lib:$GCC_PATH/mpc/lib/:$GCC_PATH/mpfr/lib/:$GCC_PATH/gmp/lib/:$LD_LIBRARY_PATH
export PATH=$GAUSSHOME/bin:$GCC_PATH/gcc/bin:$PATH

yum install  libaio-devel.x86_64 bison  bison-develncurses-devel net-tools -y



 0 [BACKEND] LOG:  unrecognized configuration parameter "comm_control_port" in file "/home/postgres/openGauss-server/dest/hadata/datanode1/postgresql.conf" line 769
 0 [BACKEND] LOG:  unrecognized configuration parameter "comm_sctp_port" in file "/home/postgres/openGauss-server/dest/hadata/datanode1/postgresql.conf" line 770
 0 [BACKEND] FATAL:  configuration file "/home/postgres/openGauss-server/dest/hadata/datanode1/postgresql.conf" contains errors



/home/postgres/openGauss-server/dest//bin/gaussdb --single_node -M pending -D /home/postgres/openGauss-server/dest//hadata/datanode1   > /home/postgres/openGauss-server/dest//hadata/datanode1/logdn1.log 2>&1 &

/home/postgres/openGauss-server/dest//bin/gs_ctl notify -M primary -D /home/postgres/openGauss-server/dest//hadata/datanode1   > /home/postgres/openGauss-server/dest//hadata/datanode1/logdn1.log 2>&1


/home/postgres/openGauss-server/dest//bin/gaussdb --single_node -M pending  -D /home/postgres/openGauss-server/dest//hadata/datanode1_standby   > /home/postgres/openGauss-server/dest//hadata/datanode1_standby/logdn1.log

/home/postgres/openGauss-server/dest//bin/gaussdb --single_node -M standby -R  -D /home/postgres/openGauss-server/dest//hadata/datanode1_dummystandby   > /home/postgres/openGauss-server/dest//hadata/datanode1_dummystandby/logdn1.log

/home/postgres/openGauss-server/dest//bin/gaussdb --single_node -M pending   -D /home/postgres/openGauss-server/dest//hadata/datanode1_dummystandby   > /home/postgres/openGauss-server/dest//hadata/datanode1_dummystandby/logdn1.log




问题

It occurs when either the system limit for the maximum number of semaphore sets

cat /proc/sys/kernel/sem

sysctl -w kernel.sem="500 64000 50 150"

posted @ 2021-10-21 00:58  stupidstan2019  阅读(35)  评论(0编辑  收藏  举报