Administrator Guide

主机名更改 IP 地址的步
主机名解析失败时,用于主机名更改 IP 地址的步如下所示:
1. 以提升的管理模式打 DOS 提示符
2. C:\Program Files\DELL\WMS\MongoDB\bin
3. 入命令 mongo localhost -username stratus -p --authenticationDatabase admin
- MongoDB shell version v3.4.10
4. 入密
-
connecting to: mongodb://127.0.0.1:27017/localhost
MongoDB server version: 3.4.10
5. 入:use stratus
- switched to db stratus
6. 入命令 > db.bootstrapProperties.updateOne( {'name': 'stratusapp.server.url'}, {$set :
{'value' : "https://IP:443/ccm-web"}} )
- { "acknowledged" : true, "matchedCount" : 1, "modifiedCount" : 1 }
7. 入命令 > db.getCollection('bootstrapProperties').find({'name': 'stratusapp.server.url'})
- { "_id" : ObjectId("5b97905e48b7b7e99ad22aa6"), "name" : "stratusapp.server.url", "value" : "https://IP:443/ccm-web",
"isActive" : true, "committed" : true }
G
主机名更改 IP 地址的步 203