animeic 55f0e7407d update | 1 년 전 | |
---|---|---|
mongo-migrations | 1 년 전 | |
nginx | 1 년 전 | |
config-service.yaml | 1 년 전 | |
docker-compose.yaml | 1 년 전 | |
readme.md | 1 년 전 | |
start.sh | 2 년 전 |
nginx 184xx bus 144xx mongo 374xx redis 164xx
https://3dqueen.cloud/3dshow/v2/dev/3dshow/
3dshow2-nginx-dev 18401
3dshow2-mongo 37401
3dshow2-redis 16401
3dshow2-bus 14401
command: mongod --port 27017 --replSet rs0 docker exec -it pack-3dshow-3dshow2-mongo-1 mongo use admin db.auth("root","3dshowzzz_x") rs.initiate() rs.status()// 单节点副本集,事务支持
conf = {_id : "rs0",members: [{ _id: 0, host: "3dshow2-mongo:27017" }]}
rs.initiate({_id : "rs0",members: [{ _id: 0, host: "3dshow2-mongo:27017"}]})
### error:Our replica set config is invalid or we are not a member of it
# docker 环境
rs.reconfig({_id:"rs0",version:1,members:[{ _id:0,host:"3dshow2-mongo:27017"}]},{force:true})
# 本地运行show2服务 需要3dshow2应用能访问到,所以是192.168.110.125,不能是localhost或者127.0.0.1
rs.reconfig({_id:"rs0",version:1,members:[{ _id:0,host:"192.168.110.125:37039"}]},{force:true})
### error:Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused