percona-server-mongodb在不同平台上的编译
Percona-server-mongodb编译
x86平台,rocksdb引擎需要
CentOS 7.6
gcc 5.4
psmdb 3.4.22-2.20
RocksDB 6.9
scons 3.1.2
yum install -y python2-scons
git clone git@github.com:percona/percona-server-mongodb.git
git clone -b v3.4 git@github.com:mongodb-partners/mongo-rocks.git
git clone https://github.com/facebook/rocksdb.git
cd rocksdb;USE_RTTI=1 CFLAGS=-fPIC make shared_lib;sudo INSTALL_PATH=/usr make install
cd percona-server-mongodb
git checkout psmdb-3.4.22-2.20
mkdir src/mongo/db/modules/
cp -r ~/mongo-rocks src/mongo/db/modules/rocks
scons MONGO_VERSION=smdb-3.4.22-2.20 all -j40
# 删除编译信息
strip mongod
strip mongos
1
2
3
4
5
6
7
8
9
10
11
12
13
arm平台
CentOS 7.6
gcc 5.4
psmdb 3.4.22-2.20
RocksDB 6.9
git clone git@github.com:percona/percona-server-mongodb.git
git clone -b v3.4 git@github.com:mongodb-partners/mongo-rocks.git
git clone https://github.com/facebook/rocksdb.git
cd rocksdb;USE_RTTI=1 CFLAGS=-fPIC make shared_lib;sudo INSTALL_PATH=/usr make install
cd percona-server-mongodb
git checkout psmdb-3.4.22-2.20
mkdir src/mongo/db/modules/
cp -r ~/mongo-rocks src/mongo/db/modules/rocks
# 编译
python2 buildscripts/scons.py MONGO_VERSION=3.4.22-2.20 all CFLAGS="-march=armv8-a+crc -mtune=generic" -j128 --disable-warnings-as-errors
# 删除编译信息
strip mongod
strip mongos
————————————————
版权声明:本文为CSDN博主「种花家的小白」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/H_haow/article/details/105810098
相关文章