In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Mongodb version 2.0.8
Main library
/ usr/local/mongodb/bin/mongod-port 27017-dbpath=/data/db-logpath=/data/db_log/log.log-logappend-master-auth-fork
Slave library
/ usr/local/mongodb/bin/mongod-- dbpath / data0/db-- logpath / data0/db_log/log.log-- port 27017-- source 33.5.71.175 data0/db 27017-- only bookuu-- slavedelay 8-- autoresync-- auth-- slave-- fork
When starting from the library, there will always be a problem of parameter error. After many attempts, it is found that it is a problem of parameter order, and there is no value, such as "--autoresync" and "--slave". It is a strange feeling to put them behind.
This error was not encountered in the startup of the local machine. When another machine started the slave library, it was found that the log report:
Fri Jul 26 18:03:01 [replslave] replHandshake res not: 0 res: {errmsg: "need to login", ok: 0.0}
Fri Jul 26 18:03:01 [replslave] repl: AssertionException nextSafe (): {$err: "unauthorized db:local lock type:-1 client:33.5.71.176", code: 10057}
Repl: sleep 2 sec before next pass
Baidu searches for "mongodb master and slave errmsg:" need to login ""
The solution is to set up an account under the local library on the master-slave machine for authentication, and then restart the slave library.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.