In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
[root@sc-wjg] # uname-a
Linux sc-wjg 2.6.32-358.23.2.el6.x86_64 # 1 SMP Wed Oct 16 18:37:12 UTC 2013 x86 "64 GNU/Linux
[root@sc-wjg ~] # cat / etc/redhat-release
CentOS release 6.4 (Final)
[root@sc-wjg ~] # groupadd mongo
[root@sc-wjg ~] # useradd-g mongo mongo
[root@sc-wjg] # mkdir-p / database/mongodb/data/
[root@sc-wjg] # chown-R mongo:mongo / database/mongodb/data/
[root@sc-wjg] # mkdir-p / var/applog/mongo_log/
[root@sc-wjg] # chown-R mongo:mongo / var/applog/mongo_log/
[root@sc-wjg ~] #
Wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.2.7.tgz
[root@sc-wjg ~] # tar zxf mongodb-linux-x86_64-2.2.7.tgz
[root@sc-wjg] # mv mongodb-linux-x86_64-2.2.7 / usr/local/mongodb
[root@sc-wjg ~] # cd / usr/local/mongodb/
[root@sc-wjg mongodb] # ll
Total 64
Drwxr-xr-x 2 root root 4096 Apr 7 16:00 bin
-rw- 1500500 34520 Jan 11 2013 GNU-AGPL-3.0
-rw- 1500500 1359 Jan 11 2013 README
-rw- 1500500 16787 Jan 11 2013 THIRD-PARTY-NOTICES
[root@sc-wjg mongodb] # mkdir / var/mongodb/data-p
[root@sc-wjg mongodb] # mkdir / var/mongodb/logs-p
[root@sc-wjg mongodb] # / etc/init.d/iptables stop
Start mongodb
[root@sc-wjg mongodb] # / usr/local/mongodb/bin/mongod-- dbpath=/var/mongodb/data-- logpath / var/mongodb/logs/log.log-fork
Forked process: 29117
All output going to: / var/mongodb/logs/log.log
Child process started successfully, parent exiting
Log in
[root@sc-wjg mongodb] # / usr/local/mongodb/bin/mongo
MongoDB shell version: 2.2.7
Connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
Http://docs.mongodb.org/
Questions? Try the support group
Http://groups.google.com/group/mongodb-user
> show dbs
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.