In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Greater than or equal to 3.2 in this way
[root@ ip-17231-33-43 conf] # more shard1. Conf
# where to write logging data.
SystemLog:
Destination: file
LogAppend: true
Path: / data/shard1/log/shard1. Log
# Where and how to store data.
Storage:
DbPath: / data/shard1/data
Journal:
Enabled: true
WiredTiger:
EngineConfig:
CacheSizeGB: 5 # # limit memory usage
# how the process runs
ProcessManagement:
Fork: true
PidFilePath: / data/shard1/log/shard1. Pid
# network interfaces
Net:
Port: 27001
BindIp: 172. 31. 33. forty-three
# security:
# authorization: enabled
# operationProfiling:
Replication:
ReplSetName: shard1
Sharding:
ClusterRole: shardsvr
Security: # enable permission authentication
KeyFile: / usr/local/mongodb/keyfile
Authorization: enabled
[root@ ip-17231-33-43 conf] # more config. Conf
# # content
SystemLog:
Destination: file
LogAppend: true
Path: / data/config/log/config. Log
# Where and how to store data.
Storage:
DbPath: / data/config/data
Journal:
Enabled: true
# how the process runs
ProcessManagement:
Fork: true
PidFilePath: / data/config/log/configsrv. Pid
# network interfaces
Net:
Port: 21000
BindIp: 172. 31. 33. forty-three
# operationProfiling:
Replication:
ReplSetName: config
Sharding:
ClusterRole: configsvr
[root@ ip-17231-33-43 conf] # more mongos. Conf
SystemLog:
Destination: file
LogAppend: true
Path: / data/mongos/log/mongos. Log
ProcessManagement:
Fork: true
# network interfaces
Net:
Port: 20000
BindIp: 172. 31. 33. forty-three
# configuration server that is listening. Only one or three configs can be the replica set name of the configuration server.
Sharding:
ConfigDB: config/172. 31. 33. 43: 21000, 172. 31. 45. 127: 21000, 172. 31. 36. 162: 21000
Less than 3.2 generally according to this format
Port = 27017
Dbpath = / data/mongodb/data
Logpath = / data/mongodb/logs/mongodb. Log
Pidfilepath = / data/mongodb/logs/mongodb. Pid
Logappend = true
Auth = true
Fork = true
WiredTigerCacheSizeGB = 20
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.