In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In the centos6.4 installation record, download the mongodb installation package mongodb-linux-x86_64-2.4.8.tgz from "http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz"."
Decompress:
Tar zxvf mongodb-linux-x86_64-2.4.8.tgz
Move to the specified directory:
Mv mongodb-linux-x86_64-2.4.8 / mongodb
Enter the directory:
Cd / mongodb
Create a data storage directory:
Mkdir-p data/db
Configuration file
Vi mongo.conf
The content is:
Port= [Port]
Dbpath=/mongodb/data/db
Logpath=/mongodb/mongo.log
Directoryperdb=true
Logappend=true
Bind_ip= [ip]
Auth=true
Fork=true
Run, MONGO_HOME is the mongodb installation directory:
$MONGO_HOME/bin/mongod-config $MONGO_HOME/../mongo.conf &
To add a database admin user:
Use admin
Db.addUser ('name',' pwd')
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: 236
*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.