hadoop mongodb install(3)
reference:http://dblab.xmu.edu.cn/blog/868-2/
root@iZuf68496ttdogcxs22w6sZ:~# mv mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz /usr/local/
root@iZuf68496ttdogcxs22w6sZ:~# su hadoop
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo tar zxf mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz -C /usr/local/
[sudo] password for hadoop:
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo mv mongodb-linux-x86_64-ubuntu1604-3.2.7 mongodb
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ sudo chown -R hadoop:hadoop mongodb
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local$ cd mongodb/
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ ls
bin GNU-AGPL-3.0 MPL-2 README THIRD-PARTY-NOTICES
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ mkdir data/db/journal -p
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ ls
bin data GNU-AGPL-3.0 MPL-2 README THIRD-PARTY-NOTICES
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb$ cd data/db/journal/
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data/db/journal$ ls
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data/db/journal$ touch mongodb.log
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/data$ cat mongodb.conf
logpath=/usr/local/mongodb/data/db/journal/mongodb.log
logappend=true
fork=true
dbpath=/usr/local/mongodb/data/db
port=27017
add export PATH=$PATH:/usr/local/mongodb/bin to ~/.bashrc
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ mongod -f ../data/mongodb.conf
about to fork child process, waiting until server is ready for connections.
forked process: 16409
child process started successfully, parent exiting
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ pgrep mongod -l
16409 mongod
hadoop@iZuf68496ttdogcxs22w6sZ:/usr/local/mongodb/bin$ mongo
MongoDB shell version: 3.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
Server has startup warnings:
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 7856 processes, 65535 files. Number of processes should be at least 32767.5 : 0.5 times number of files.
2019-01-28T13:43:33.783+0800 I CONTROL [initandlisten]
if we want to in-depth study mongodb , we can learn from :
http://www.runoob.com/mongodb/mongodb-connections.html
hadoop mongodb install(3)的更多相关文章
- hadoop redis install (4)
reference: http://dblab.xmu.edu.cn/blog/131/ https://github.com/dmajkic/redis https://blog.csdn ...
- Hadoop+MongoDB的四种方案
背景: 公司核心业务库现存在MongoDB中,分布在6台MongoDB节点.现面临如下问题: 1.最大的一张表有10多个G,MongoDB在查询方面尚能胜任,但是涉及到复杂计算时会比较吃力. 2.Mo ...
- mongodb Install the MongoDB service
在用到mongodb时,首先要运行mongod.exe以启动mongo,这样就会出现命令框( command prompt),为了避免出现这种情况.要以服务的形式来启动mongo,这样就不会出现命令框 ...
- MongoDB install
下载地址1:https://www.mongodb.org/dl/linux下载地址2:https://www.mongodb.com/download-center/community关于Mongo ...
- hadoop mysql install (5)
reference : http://dblab.xmu.edu.cn/blog/install-mysql/ http://wiki.ubuntu.org.cn/MySQL #install mys ...
- linux(centos )mongodb install
file down :http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz /usr/local/ tar zxvf mongo ...
- hadoop kafka install (6)
reference: http://kafka.apache.org/quickstart http://dblab.xmu.edu.cn/blog/1096-2/ hadoop@iZuf68496 ...
- hadoop hive install (5)
reference : http://dblab.xmu.edu.cn/blog/install-hive/ http://dblab.xmu.edu.cn/blog/hive-in-practice ...
- hadoop hbase install (2)
reference: http://dblab.xmu.edu.cn/blog/install-hbase/ reference: http://dblab.xmu.edu.cn/blog/2139- ...
随机推荐
- 关于即来即停app的功能
Asmallpark软件接口文档说明 编码均采用UTF-8格式传输全部为http,POST请求状态码:200 操作成功 100 服务器异常,稍后再试 404 请求非法 402 数据库 ...
- ubuntu下交叉编译imagemagick
环境:ubuntu16.04 交叉编译器版本号:4.8.3 在编译之前要编译以下其依赖的软件或库:freetype,libpng,libxml2,libtiff,libjpeg,zlib,graphv ...
- Pandas fillna('Missing')
https://blog.csdn.net/donghf1989/article/details/51167083/ .使用0替代缺失值(当然你可以用任意一个数字代替NaN) df.fillna(0) ...
- url rewrite导致的500.19 0x8007000d
https://stackoverflow.com/questions/13532447/http-error-500-19-iis-7-5-error-0x8007000d It seems you ...
- Educational Codeforces Round 27 A B C
A. Chess Tourney Berland annual chess tournament is coming! Organizers have gathered 2·n chess pla ...
- 【Python】【内置函数】【bytes&bytearray&str&array】
[bytes] 英文文档: class bytes([source[, encoding[, errors]]]) Return a new “bytes” object, which is an i ...
- 华中农业大学第四届程序设计大赛网络同步赛 G.Array C 线段树或者优先队列
Problem G: Array C Time Limit: 1 Sec Memory Limit: 128 MB Description Giving two integers and and ...
- Seafile 文件访问日志时间不一致问题
修改/seafile-server-latest/seahub/seahub/setting.py # Local time zone for this installation. Choices c ...
- [ios]NSThread传值 NSValue传值
NSThread:http://www.cocoachina.com/bbs/read.php?tid=51873 NSValue:http://blog.sina.com.cn/s/blog_bf9 ...
- [C++] string与int, float, double相互转换
参考:http://blog.csdn.net/candadition/article/details/7342380 将string类型转换为int, float, double类型 主要通过以下几 ...