One of the Redis advanced practices VMware Pro Virtual machine installation and Linux system installation

Source: Internet
Author: User
Tags message queue redis download ssh secure shell install redis value store


Original: One of the advanced Redis practices VMware Pro Virtual machine installation and Linux system installation





First, Introduction



The design pattern is finished, the equivalent of re-learning, each learning will have different feelings, the design pattern of understanding deepened, more thorough understanding. Also poor a summary of the design patterns of the article, after writing this summary of the article, the design pattern of the article for the moment to sue a paragraph, this summary of the article I will fill in as soon as possible. From today onwards, I will take the process of my Learning Redis download, for later query to watch. A long time ago to contact with Redis, but has not yet formed a system, recently have time to re-learn, and strive to systematically master the various aspects of Redis. Well, the nonsense is not much to say, start the text.



Second. Introduction and classification of NoSQL

In the software construction process, if the size of the software system is not very large, user traffic is not very large, like the general practice of development, and do not need to use special technology. If we develop a large number of users of software systems, large numbers of users frequent access will bring another problem, that is, high concurrency, if not a good solution to concurrency problems, will make the system slow, the user experience is reduced, the final result is a large loss of your users. For a web system, the user is the capital, then how to solve the problem of high concurrency? One technique that has to be used is caching. Let's first introduce a concept called "NoSQL," what is NoSQL? Let's take a look at its definition, as follows: NoSQL (NoSQL = not-only sql), meaning "not just SQL", not just relational database, SQL refers to relational database, is a new database revolutionary movement, development to the 2009 trend is rising. NoSQL advocates are advocating the use of non-relational data storage, a concept that is undoubtedly an infusion of new thinking.



We simply look at the categories of NoSQL and see its classification, which is helpful for us to understand Redis.


1. Key value (key-value) Storage database
This type of database primarily uses a hash table that has a specific key and a pointer to the specific data. The advantage of the Key/value model for IT systems is simplicity and ease of deployment. But if the DBA only queries or updates part of the value, Key/value becomes inefficient. Similar databases are: Tokyo cabinet/tyrant,Redis, Voldemort, Oracle BDB.

2. The column stores the database.
This type of database is often used to deal with massive amounts of data for distributed storage. Keys still exist, but they are characterized by pointing to multiple columns. These columns are arranged by the column family. This type of database is as follows: Cassandra,HBase, Riak.

3. Document Type Database
This type of database is similar to the first key-value store. This type of data model is a versioned document, and semi-structured documents are stored in a specific format, such as JSON. A document database can be considered an upgraded version of a key-value database, allowing for the nesting of key values. and the document database is more efficient than the key-value database query. Databases of this type are: CouchDB,MongoDb。 Domestic also has the document type database SEQUOIADB, already open source.

4. Graph Database (graph)
The graphical structure of the database is different from the other columns and the rigid structure of the SQL database, it is using a flexible graphical model, and can be extended to multiple servers.

NoSQL databases do not have a standard query language (SQL), so database queries require a data model. Many NoSQL databases have rest-type data interfaces or query APIs. such as: Neo4j,infogrid, Infinite Graph.

Now that we have a basic understanding of NoSQL databases, NoSQL data also has its own usage scenarios, using NoSQL databases in the following scenarios:

1, the data model is relatively simple, complex is the use of relational database;

2, the need for more flexible IT systems;

3, the database performance requirements are high;

4, do not need a high degree of data consistency, such as Redis is to support the transaction, but its transaction can not guarantee the full commit or all rollback, that is, the consistency of data is not guaranteed;

5, for a given key, it is easier to map complex values of the environment.

You see, in fact, the Redis database is a NoSQL database is the first classification, that is, "key-value Storage database", so Redis is also a nosql database, no problem. Next, let's meet the Redis database.


Third. introduction of Redis



Here we briefly introduce the Redis database, let us have a basic understanding of it, we first look at the definition of Redis database.



Remote Dictionary Server (the name Redis is an abbreviation) is a key-value-based, fully open source, free, compliant memory database storage system that adheres to the BSD protocol and is commonly used as a cache or message queue. supports a variety of data structures, including string (string), list (linked list), set (set), Zset (sorted set: Ordered set), and hash (hash type). These data types support Push/pop, Add/remove, and intersection-set and difference sets, and richer operations, and these operations are atomic.

Next, we are talking about the advantages of Redis, if there is no advantage, the wizards will use it.



1, read and write performance is very high –redis read speed is 110,000 times/s, write speed is 81,000 times/s, so using Redis cache data, access to data is almost 0 feel, of course, for users.

2, support rich data type –redis support rich data types, such as: string (String), Lists (linked list), hash (hash), set (unordered set) and Zset (ordered set) and other data types, so we gave up the memched, Because it supports too few data types.

3. All operations that support atomicity –redis are atomic, meaning either successful execution or failure. A single operation is atomic. Multiple operations also support transactions, namely atomicity, wrapped by multi and EXEC commands.

4, Rich features –redis support Publish/subscribe (Publish/subscribe), also support transactions, queues, persistence, you can set the key expiration time and so on features.

Well, since is the introduction, first said here, there are many features, we in the process of learning in one by one confessed it.



Fourth. installation of VMWare Pro and Linux


In this section, it is time for the staple food. Redis can be installed in the Windows environment, of course, can also be installed in the Linux environment, both of the installation of these two environments I will introduce each. Now that I want to install into the LIUNX environment, I'm not going to have two systems, and of course you can load two systems, like Windows 10 and CentOS 7. Select the second scenario, install the virtual machine before installing Redis in the virtual machine. So the preparation phase to the first virtual machine and Linux system installation, the following we will step by step to teach you to operate, very simple, we do not spray, if you are very familiar with, you can skip, I write this paragraph just to myself to leave a backup, later I can review. Not much to say, start a step-by-step installation.

4.1. Installation of VMWare Pro

1 ", we can go to" Baidu ", if you know the official website, you can also go directly to the official website download VMware Pro Software installation package, the address is as follows: Https://my.vmware.com/en/web/vmware/info/slug/desktop_end_ User_computing/vmware_workstation_pro/14_0?wd=&eqid=bdde195a00027b2c000000025a55be26, the effect is as follows:



2 ", after downloading, you can double-click the installation file to start the virtual machine installation. The Installation Wizard dialog box appears, click "Next" button to start the installation step.



3 ", choose to accept the terms of the agreement, then click on the" Next "button to continue


4 ", in this step, we can change the installation directory, it is recommended to select" Enhanced Keyboard Driver ", and then click on the" Next "button to continue



In the, click on the "Change" button to open the "Change target Folder" dialog box, select a good directory in the dialog box, and then click the "OK" button to return to the previous dialog box.



5 ", in this step, you can keep the default selection is good, and then click on the" Next "button to continue



6 ", in the" shortcut "this step, for their own convenience, both of which I choose, and then click on the" Next "button to continue


7 ", in this step, you are ready to install VMware Pro, then, click on the" Install "button to start the installation program.



8 "In this step, we can see the progress of the installation. When the installation progress is complete, it automatically jumps to the completion page.



9 ", installation is complete, if we directly click on the" complete "button to complete the installation of VMware Pro, the version is currently a trial version, you can click the" License "button to continue certification.



10 ", enter the VMware Workstation Pro 14 perpetual License Activation key (Ff31k-ahzd1-h8etz-8wwez-wuuva or CV7T2-6WY5Q-48EWP-ZXY7X-QGUWD, select one), click" Enter " Button



11 ", Finally, we click the" Finish "button to complete the installation of VMware Pro.



12 ", run the virtual machine, open the Virtual Machine window, the window is as follows:



13 ", if you do not enter the license key when installing, you can click" Help "--" Enter the license key "



14 ", enter the VMware Workstation Pro 14 perpetual License Activation key (Ff31k-ahzd1-h8etz-8wwez-wuuva or CV7T2-6WY5Q-48EWP-ZXY7X-QGUWD, two options), click OK, This completes the VMware Workstation Pro 14 installation process.



15 ", the installation is complete, we see whether our virtual machine has been activated, click on the Menu" Help "-" about VMware workstations ", see" License Information "Expires: Never expires, proof that all installation is complete.



All right, so far, our VMware Workstation Pro is the complete, correct installation. We have a virtual machine, and the next step is to install the Linux operating system in the virtual machine.

4.2, installation of Linuxinstallation in a virtual machine

1 ", ready to work, what to prepare, we at least first to need the software download down


                1.1), download and install VMware WORKSTATION14 (This step has been completed)

                 1.2), download the CENTOS7 installation package , with the following address: https:// www.centos.org/download/, as follows:

                   

                 1.3), download ssh Secure Shell Client , this tool can connect Linux system, the tool is very useful. The website address is as follows: https://www.ssh.com/ssh/, the effect is as follows:

                  

          2 ", Configuration of VMware virtual machines


2.1), open the virtual machine software "VMware Workstation", select "Create a new virtual machine", of course, you can also open the window to create a virtual machine from the menu.



2.2), display the New Virtual Machine Wizard dialog box, select the typical option, click the Next button to continue



2.3), display the "Install Guest operating System" dialog box, select "Install operating system later", click the "Next" button, continue



2.4), display the "Select Client operating System" dialog box, we select "Linux (L)", version select "CentOS 7 64-bit", click the "Next" button to continue



2.5), in the "Name Virtual Machine" dialog box, we can enter "virtual machine name", click "Browse" button, select the location of the virtual machine file save, click "Next" button to continue



2.6), in the "Specify Disk Capacity" dialog box, depending on the actual situation, you can choose your own design, or use the default settings, I re-modified the "Disk maximum size", the other to keep the default options, click the "Next" button to continue



2.7), to arrive at this step, the configuration of the virtual machine is basically complete, but we also have to use "Custom hardware" to configure the ISO file mapping, memory, CPU and other information, this configuration can be installed on the system. We continue to click on the "Custom Hardware" button to configure the hardware,



2.8), in this step, we want to modify the memory, the default value is 1G, I set to 2G, you can choose according to their own circumstances



2.9), in the current dialog, we select the "New CD/DVD" tab, select "Use ISO image file", then click "Browse", locate the centOS7 image file that you just downloaded, then click the "Close" button below to return to the upper window.



2.10), in this window, we click "Finish" button, to this, the virtual machine is created, the following we should install the CentOS operating system.



3 ", start installing the CENTOS7 operating system

3.1), turn on the virtual machine




3.2), start to install the CentOS system, I am more fortunate, once installed, no problems encountered.



3.2), this is the installation process of the CentOS system, there is nothing to say, we just wait.



3.2), select language "Chinese-Simplified Chinese"



3.3), Next display "Installation Information summary" page;



3.4), software selection: Determine the system after the installation of the features, if the use of the default, then the system after installation is no graphical interface; Select "GNOME desktop" will display a graphical interface; For learning purposes, choose the default setting "Mini-Install"





3.5), installation location: Partition configuration We select automatic configuration partition, which is also the default value.





3.6), Network and hostname: Open the connection switch, remember the IP address, SSH login use, set the hostname, click on the "Application" to take effect, the single-machine "complete" button to complete the setup.





3.7), start the installation



3.8), set the root password, you can install the system in the process of setting the root password.



3.9), can now install the



3.10), follow the steps set, the final installation is complete, click the "Restart" button, ready to start using the system.



3.11), after the system restarts, the Linux login:root, the password is you set the password, enters the password, displays as, proves the successful landing. (Need to explain, enter the password will not appear the * number, do not appear to enter a character, there is an * number case.) Before entering, you must click on the black desktop of the Linux system with your mouse before you can enter it.


4 ", now we use SSH login Linux

4.1), open the SSH software, click on the "Quick Connect" button to connect to the server.



4.2), configure the connection, enter the Linux system IP address, port number and user name, and then click the "Connect" button to start the connection.


Based on the Ethernet installed on the CentOS configuration, get the IP address: 192.168.127.128, Port: 22, is the default, the user name is root

4.3), enter the root password, if it is the first connection, will prompt the following window, according to their own choice.





4.4), Login successful





This window appears, indicating that using SSH to log on to the Linux system has been successful. Congratulations and congratulations to me.



Fifth. Summary



Finally finished, there are many to make, so the time spent more than 5 hours, but for themselves is worth. Looking back at every step, it's like in front of you, the system is ready, and the next step is to install Redis on the Linux system.



One of the Redis advanced practices VMware Pro Virtual machine installation and Linux system installation


Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.