In this configuration file we will specify the following:
- location of the data files
- log file path
- the verbosity of the log file
Here are the steps:
- Create a folder in your operating systems
- create a file call mongo-db-config.config in the folder
- Type in the following lines of configuration settings
dbpath = /techjunkie/mongodb/db
logpath = /techjunkie/mongodb/mongo-db-server.log
verbose = vvvvv
dbpath : specifies the path of the data files
logpath : specifies the path of the log file
verbose: specifies how verbose we want out log files to be, in this we want our log files to be very verbose we want to log everything. The settings is from v to vvvvv going from least to most verbose
4. Save the file, put the path C:\Program Files\MongoDB\Server\3.4\bin into the Environment Variables "Path" varible, now open up the command line utility type in the following command to use the configuration file
mongod -f c:\techjunkie\mongodb\mongo-db-config.conf
5. Now you will see a log file has been created in the folder
Similar Posts:
Aivivu đại lý vé máy bay, tham khảo
ReplyDeleteVé máy bay đi Mỹ
đặt vé máy bay từ mỹ về việt nam
chuyến bay thương mại từ canada về việt nam
cách mua vé máy bay từ nhật về việt nam
Máy bay từ Hàn Quốc về Việt Nam
Vé máy bay từ Đài Loan về Việt Nam
chi phí vé máy bay cho chuyên gia nước ngoài