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:
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