mongoDb学习以及spring管理 (包括百度云配置)

1.windows下的安装http://www.cnblogs.com/liuzhiying/p/5915741.html

2.慕课网学习单机操作mongoDb

赋权限:http://blog.csdn.net/zilong0536/article/details/52624527

下载:http://download.csdn.net/download/it_ontway/9564623

分片:http://www.jb51.net/article/87916.htm    http://www.cnblogs.com/maybo/p/5183989.html  在慕课网上搜索mongodb,里面有专门分片介绍

3.java控制mongo

http://www.runoob.com/mongodb/mongodb-java.html

4.spring控制mongoDb

http://www.linuxidc.com/Linux/2015-02/114229.htm

http://blog.csdn.net/jacman/article/details/49814383

 

资料收集:

http://kb.cnblogs.com/page/152995/

 

百度云:

1.先把云盘分区:https://cloud.baidu.com/doc/CDS/GettingStarted.html#Windows-1

2.安装jdk : yum install java-1.7.0-openjdk* -y

3.安装tomcat: wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.73/bin/apache-tomcat-7.0.73.tar.gz 解压即可

4.安装mongo:

A.编辑/etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=0
enabled=1

B.执行 yum install -y mongodb-org

C.编辑/etc/mongod.conf,只修改日志和数据的保存路径即可

D.执行下面两句

echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled

echo never > /sys/kernel/mm/transparent_hugepage/defrag

E.设置防火墙:vi /etc/sysconfig/iptables 加上

-I INPUT -p tcp --dport 27017 -j DROP  (先关闭27017端口)
-I INPUT -s 127.0.0.1 -p tcp --dport 27017 -j ACCEPT (打开本机链接的27017端口)

F.设置随机启动:vi /etc/rc.d/rc.local
最后面加上:mongod --dbpath /home/data/mongo/ &

--------------------------------------------------------------


http://www.360doc.com/content/16/0503/22/16915_556035946.shtml  (按这个做的)

http://blog.csdn.net/congcong68/article/details/44545253

http://www.yl-blog.com/article/463.html
http://www.sidland.net/show/blog/3/17/30

http://v.youku.com/v_show/id_XOTM3NjI4NTMy.html?from=s1.8-1-1.2&spm=a2h0k.8191407.0.0

posted @ 2016-10-13 12:00  NewObject_1  阅读(500)  评论(0编辑  收藏  举报