What's a Redis thing?

Source: Internet
Author: User
Tags install redis redis server

Recently the company's front-end PHP project said to turn on Redis support, so look at what is a thing.

Sentence Description:

Redis is an open source, advanced key-value Storage and a perfect solution for building high-performance, scalable Web applications.

Advantage:

    • Unusually fast.

    • Support for rich data types.

    • The operations are atomic in nature.

    • Multifunctional utility.

To determine if the test server is installing a Redis environment:

1. Information found on the Internet

Check to see if Redis is working?

$redis-CLI

This will open a redis hint, as shown in:

Redis 127.0.0.1:6379>

The above tip 127.0.0.1 is the IP address of this machine, and 6379 is the port that the Redis server is running on. Now enter the ping command as shown in.

Redis 127.0.0.1:6379> PingPONG

This means that you have successfully installed Redis on your machine.

2. Actual operation

redis-CLI127.0. 0.1:6379>
127.0. 0.1:6379ping-bash:redis:command not found

The Redis prompt opened successfully, using the ping command failed, it is unclear what is going on.

3. I used the way to determine whether to install Redis support for PHP:

Because it is a PHP project, create a new file directly, and enter the following code to save as a test.php file

<? PHP Phpinfo ();? >

The above code is to print PHP information, so search inside whether there is redis related information.

To open the page in a browser, the search finds the following information:

Redis Support

Therefore, the test server is judged to have a Redis environment installed for PHP.

What is Redis

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.