centos7(物理机)下安装编译安装mongo-3.2.0(power)
来源:互联网 发布:死亡轮回游戏知轩 编辑:程序博客网 时间:2024/06/06 07:12
1.编译安装环境
gcc,gcc-c++,python,git,openssl-devel 可以yum安装
2.mongo编译安装
a.上传软件
mongo-3.2.0-rc1-pre-.zip
pymongo-3.2.tar.gz
scons-2.4.1-1.noarch.rpm
firefox-38.4.0esr.source.tar.bz2
3.编译安装
a.安装pymongo-3.2
[root@localhost mongodb]# tar -zxvf pymongo-3.2.tar.gz
[root@localhost mongodb]# cd pymongo-3.2/
[root@localhost pymongo-3.2]# python setup.py install
b.安装scons
[root@localhost mongodb]# rpm -ivh scons-2.4.1-1.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:scons-2.4.1-1 ################################# [100%]
c.配置spiderMonkey
1)将firefox-38.4.0esr.source.tar.bz2 拷贝到 mongo-3.2.0\src\third_party\mozjs-38 路径下面
[root@localhost mongodb]# unzip mongo-3.2.0-rc1-pre-.zip
[root@localhost mongodb]# cp firefox-38.4.0esr.source.tar.bz2 mongo-3.2.0-rc1-pre-/src/third_party/mozjs-38/
2)解压firefox-38.4.0esr.source.tar.bz2
[root@localhost mozjs-38]# tar -jxvf firefox-38.4.0esr.source.tar.bz2
3)复制重命名
[root@localhost mozjs-38]# mv mozilla-esr38 mozilla-release
4).配置
[root@localhost mozjs-38]# ./gen-config.sh PowerPC linux
d.编译
[root@localhost mongo-3.2.0-rc1-pre-]# scons all -j160 --prefix=/mongodb3.2.0rc1pre --allocator=system --ssl
e.安装
[root@localhost mongo-3.2.0-rc1-pre-]# scons install -j160 --prefix=/mongodb3.2.0rc1pre --allocator=system --ssl
f.启动服务端,客户端连接
[root@localhost mongo-3.2.0-rc1-pre-]# mkdir /home/qiliansheng/mongodata/data
[root@localhost mongo-3.2.0-rc1-pre-]# mkdir /home/qiliansheng/mongodata/log
[root@localhost mongo-3.2.0-rc1-pre-]# ./mongod --port 30019 --dbpath /home/qiliansheng/mongodata/data --logpath /home/qiliansheng/mongodata/log/test.log --logappend --nojournal --fork&
[1] 82177
[root@localhost mongo-3.2.0-rc1-pre-]# about to fork child process, waiting until server is ready for connections.
forked process: 82179
child process started successfully, parent exiting
[1]+ Done ./mongod --port 30019 --dbpath /home/qiliansheng/mongodata/data --logpath /home/qiliansheng/mongodata/log/test.log --logappend --nojournal --fork
[root@localhost mongo-3.2.0-rc1-pre-]# ps -ef | grep mongo
root 82179 1 0 09:50 ? 00:00:00 ./mongod --port 30019 --dbpath /home/qiliansheng/mongodata/data --logpath /home/qiliansheng/mongodata/log/test.log --logappend --nojournal --fork
root 82193 70917 0 09:51 pts/0 00:00:00 grep --color=auto mongo
[root@localhost mongo-3.2.0-rc1-pre-]# ./mongo --port 30019
MongoDB shell version: 3.2.0-rc1-pre-
connecting to: 127.0.0.1:30019/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:
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten]
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten]
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-12-16T09:50:42.701+0800 I CONTROL [initandlisten]
>
>
- centos7(物理机)下安装编译安装mongo-3.2.0(power)
- [bigata-114] centos7.2安装mongo 3.2
- centos7下编译安装nginx
- centos7下编译安装mysql
- centos7下编译安装nginx
- centos7下编译安装nginx
- 在物理机上安装centos7系统
- 物理机(服务器)安装centos7系统
- linux下安装Mongo
- linux下安装mongo
- CentOS7编译安装codelite9.0
- 【R】在centOS7下编译安装R3.3.2和R
- 【OCR】CentOS7下编译安装tesseract-ocr
- centos7下nginx的编译安装
- CentOS7下编译安装ffmpeg3.1.5
- centos7下编译安装mysql5.7.17
- CentOS7下编译安装SPDK iSCSI Target
- CentOS7下编译安装tesseract-ocr
- session会话过期时间设置
- QT SQLite 多数据库操作大全
- QT QTableWidget 用法总结
- TwoSum
- delete 与 deleteLater()
- centos7(物理机)下安装编译安装mongo-3.2.0(power)
- Qt浅谈之一:内存泄露(总结)
- Educational Codeforces Round 2 E. Lomsat gelral(启发式合并)
- 【Java每日一题】20161216
- CButtonST使用技巧(二)
- QTableWidget详解(样式、右键菜单、表头塌陷、多选等)
- 物联网建设中通讯互联层的终极解决方案
- Qt之操作数据库(SQLite)
- 新手学习心得12-16-2016