Replica-Sets 설정
권혁수
0
2190
0
2015.09.26 17:47
안녕하세요,
Replica-Sets 설정하는데 잘 안되네요..
p.257이 안돼서 258꺼를 하고 있는데요, 아래와 같은 에러가 계속나서 추가할 수 없습니다.
다른 포트가지고 처음부터 해봐도 똑 같은 에러가 발생하네요. 무엇이 문제죠?
rptmongo:PRIMARY> rs.add("localhost:5003")
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}
rptmongo:PRIMARY> rs.add("localhost:5002")
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}
rptmongo:PRIMARY> rs.add("localhost:5002",{arbiterOnly:true})
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}
rptmongo:PRIMARY> rs.add("localhost:5002")
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}
rptmongo:PRIMARY> rs.add("localhost:5002",{arbiterOnly:true})
{
"errmsg" : "exception: can't use localhost in repl set member names except when using it for all members",
"code" : 13393,
"ok" : 0
}