tokumx安装记录
公良子轩
2023-12-01
1. 下载tokumx2.0.0
http://www.tokutek.com/tokumx-for-mongodb/download-community/
2. 解压并移至/mongodb
# mkdir /home/mongodb
# mkdir /home/mongodb/db
# tar -zxvf tokumx-2.0.0-linux-x86_64-main.tar.gz
# mv tokumx-2.0.0-linux-x86_64 /home/mongodb/tokumx
# mkdir -p /home/mongodb/tokumx/etc/
# mkdir -p /home/mongodb/logs/
# touch /home/mongodb/logs/mongo.log
# chmod -R 777 /home/mongodb/logs/mongo.log
3. 创建mongdb.conf配置文件
# vi /home/mongodb/tokumx/etc/mongodb.conf
内容如下:
port=27017
dbpath=/home/mongodb/db
logpath=/home/mongodb/logs/mongo.log
pidfilepath=/home/mongodb/tokumx/mongodb.pid
fork=true #后台启动
maxConns=5000 #最大同时连接数
logappend=true #日志记录方式,追加到日志文件中
bind_ip=127.0.0.1,172.23.1.109 #只允许通过局域网IP:172.23.1.109及本机访问
noauth=true #不启用验证
4.启动
# numactl --interleave=all /home/mongodb/tokumx/bin/mongod -f /home/mongodb/tokumx/etc/mongodb.conf