MongoDB database installation, replicaSet configuration, master-slave configuration
Mongodb installation, master-slave configuration, replicaSet configuration I have been studying mongodb some time ago. I read some books and read a lot of information on the Internet. In fact, I copied it here and there. Many of them were not verified by myself. I just posted it on the blog and then This is really not a good idea to deceive people. I suffered a lot from it in the beginning, so it is inevitable that people in the future will take the same detours as me. I took some time to sort out some of my practical operations and wrote this article. . The article is very simple. It mainly talks about the basic configuration. The key is to be careful when configuring. I don’t talk about the principles here. After all, the space is limited, so if you have any doubts during the configuration process, you can communicate with me. I hope everyone will support me. Also, I am very busy at work, so it is not easy to write a post. If you think it is useful, please give me a reply and show your support, which can be considered as a little motivation, haha. 1. Installation…
MongoDB database installation, configuration, master-slave synchronization, backup and recovery under Linux system
=== MongoDB Overview === Mongo is a high-performance, open source, schema-free document database that can be used to replace traditional relational databases or key-value storage methods in many scenarios. Mongo is developed using C++ and has the following features: l Collection-oriented storage: suitable for storing objects and data in JSON form. l Dynamic query: Mongo supports rich query expressions. The query command uses tags in JSON format to easily query objects and arrays embedded in the document. l Complete index support: including document embedded objects and arrays. Mongo’s query optimizer analyzes query expressions and generates an efficient query plan. l Query monitoring: Mongo includes a monitoring tool for analyzing the performance of database operations. l Replication and automatic failover: Mongo database supports data replication between servers, master-slave mode and mutual replication between servers. The main goal of replication is to provide redundancy and automatic failover. l Efficient traditional storage method: supports binary data and large objects (such as photos or pictures). l Auto-sharding to support cloud-level scalability (in early alpha stage): Auto-sharding supports horizontal database clusters, with additional machines dynamically added. Schema-free means that we do not need to know any structure definition for files stored in the mongodb database.…

mysql, redis, mongodb database installation
Install mysql If there is an installation dependency error, you can first update the download source with sudo apt-get update 1. Install the server sudo apt-get install mysql-server Start service sudo service mysql start Stop the service sudo service mysql stop Restart the service sudo service mysql restart Check whether mysql exists in the process ps ajx|grep mysql 2 . MySQL configuration file The configuration file directory is /etc/mysql/mysql.cnf Enter the conf.d directory ,open mysql.cnf,found that there is no configuration Enter the mysql.conf.d directory,Open mysql.cnf,You can see the configuration items The main configuration items are as follows bind- address represents the IP bound to the server,The default is 127.0.0.1port represents the port,The default is 3306 datadir represents the database directory,The default is /var/lib/mysqlgeneral_log_file represents the normal log,The default is / var/log/mysql/mysql.loglog_error represents the error log,The default is /var/log/mysql/error.log 3. Client installation sudo apt-get install mysql-client Connect to database mysql -u username -p password Press ctrl+d or enter the following command to exit quit or exit Install redis 1. Download the installation package wget http://download.redis.io /releases/redis-4.0.9.tar.gz 2. Unzip the package tar xzf redis-4.0.9.tar.gz 3. Move,to the usr/local directory sudo mv ./redis-4.0.9 /usr/local/redis/ 4. Enter the redis directory cd /usr/local/redis/ 5. Generate…
MongoDB database installation, replicaSet configuration, master-slave configuration
Mongodb installation, master-slave configuration, replicaSet configuration I have been researching mongodb some time ago, read some books, and read a lot of information on the Internet. In fact, they are all copied and copied. Many of them have not been verified by myself. I just post it on the blog, and then It’s really not good to cheat people. I suffered from it at the beginning, so it’s inevitable that people will take these detours like me later. I took some time to sort out some of my practical operations and wrote this article. . The article is very simple. It mainly talks about basic configuration. The key is to be careful when configuring. There are no fundamental things mentioned here. After all, the space is limited, so if you have any doubts during the configuration process, you can communicate with me. I hope you will support me a lot. Also, I am very busy with work, so it is not easy to write a post. Everyone thinks that the post is useful, and if you give a reply and express your support, it will also be considered as a motivation, haha. 1. Mongodb installation Environment: linux 64bit Version: 2.0.1…
MongoDB database installation, configuration, master-slave synchronization, backup and recovery under Linux system
=== MongoDB Overview === Mongo is a high-performance, open source, schema-free document database, which can be used in many scenarios to replace traditional relational databases or key/value (key-value) storage methods. Mongo is developed with C++ and has the following features: l Collection-oriented storage: suitable for storing objects and data in the form of JSON. l Dynamic query: Mongo supports rich query expressions. The query command uses JSON format tags, which can easily query the embedded objects and arrays in the document. l Complete index support: including document embedded objects and arrays. Mongo’s query optimizer analyzes query expressions and generates an efficient query plan. l Query monitoring: Mongo includes a monitoring tool for analyzing the performance of database operations. l Replication and automatic failover: Mongo database supports data replication between servers, master-slave mode and mutual replication between servers. The main goal of replication is to provide redundancy and automatic failover. l Efficient traditional storage method: supports binary data and large objects (such as photos or pictures). l Auto-sharding for cloud-level scalability (in early alpha): Auto-sharding supports horizontal database clusters where additional machines can be added dynamically. Schema-free means that for files stored in the mongodb database, we don’t need to know…
MongoDB database installation, configuration, master-slave synchronization, backup and recovery tutorial
=== MongoDB Overview === Mongo is a high-performance, open source, schema-free document database, which can be used in many scenarios to replace traditional relational databases or key/value (key-value) storage methods. Mongo is developed with C++ and has the following features: 1. Set-oriented storage: suitable for storing objects and data in the form of JSON. 2. Dynamic query: Mongo supports rich query expressions. The query command uses JSON format tags, which can easily query the embedded objects and arrays in the document. 3. Complete index support: including document embedded objects and arrays. Mongo’s query optimizer analyzes query expressions and generates an efficient query plan. 4. Query monitoring: Mongo includes a monitoring tool for analyzing the performance of database operations. 5. Replication and automatic failover: Mongo database supports data replication between servers, master-slave mode and mutual replication between servers. The main goal of replication is to provide redundancy and automatic failover. 6. Efficient traditional storage methods: support binary data and large objects (such as photos or pictures). 7. Automatic sharding to support cloud-level scalability (in the early alpha stage): The automatic sharding function supports horizontal database clusters and can dynamically add additional machines. 8. Schema-free means that we don’t need to know…