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

 

arrow
arrow
    文章標籤
    Mongodb fork windows
    全站熱搜

    Kenneth 發表在 痞客邦 留言(0) 人氣()