I have seen on tutorials that they use --fork
as parameter of mongod. But when I try to do so, it says unknown option --fork
. So how to --fork
mongodb on windows?
The --fork
option is not for MongoDB for Windows users and you must execute this every mongod command in different window:
mongod --replSet m101 --logpath "1.log" --dbpath /data/rs1 --port 27017 --smallfiles --oplogSize 64
mongod --replSet m101 --logpath "2.log" --dbpath /data/rs2 --port 27018 --smallfiles --oplogSize 64
mongod --replSet m101 --logpath "3.log" --dbpath /data/rs3 --port 27019 --smallfiles --oplogSize 64
MongoDB for Unix-like platforms option --fork
文章標籤
全站熱搜
留言列表