Integration of Hazelcast and MongoDBI. Hazelcast and MongoDB
Hazelcast's Distributed Data Structure and computing performance enable it to serve as the "MongoDB" at the application backend ".
MongoDB is an open-source, document-oriented database
Hazelcast and MongoDB integrated Chszs, not allowed to reprint without the Bo master. Permitted reprint should be marked by author and blog homepage: Http://blog.csdn.net/chszs, Hazelcast and MongoDBHazelcast's distributed data structure and
1 MongoDBMongoDB is written by the C + + language and is an open source database system based on distributed file storage. With high performance, high availability, and automatic scalability. MongoDB stores data as a document and data structures
Production Environment Best Practices1. Linux:1] disable the atime option of the file system/partitionVI/etc/fstabAdd noatime and nodiratime after the corresponding partition itemLabel =/1/ext3 defaults 1 1Label =/data1/Data ext4 defaults, noatime,
Look at the MongoDB cluster configuration, but never mind how the client is connected. You can also use MONGOs and config server when you are not using fragmentation.
When testing the configuration, see, this is not the case. Config server is not
Compile and install PHP7
Compile installation PHP7 mongdb extension
#先安装一个依赖库yum-y install openldap-develwget https://pecl.php.net/get/mongodb-1.1.1.tgz/home/server/php7/bin/phpize # Depends on your own compiled PHP
Linux environment, through the Mongofiles file operation MongoDB:
Using the--uri parameter, you can create a short connection that is easy to use in your program and does not need to be initialized or disconnected after the end.
The official format
1. MongoDB Installation on Mac
Download mongodb,https://www.mongodb.org/
Unzip to a specified folder, such as:/users/enniu1/desktop/zjg/mongodb-osx-x86_64-3.2.6 (This is the version of my MongoDB)
Configure path
Input
Dex introduces mongodb index and query analyzer dex. It is a MongoDB performance adjustment tool that compares MongoDB log files and index entries and provides index recommendations. Currently, you must provide a URI to connect to the database. Dex
We are about to start the simplest MongoDB connection to access data. Before that, you have installed MongoDB! Maybe, probably, it should have been installed. Really not installed yet? So: Click here to [install MongoDB]
Start:
Download a C #
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.