Redis is a key-value storage system. Similar to Memcached, it supports relatively more stored value types, including string (string), list (linked list), set (set), zset (sorted set - ordered set) and hash (hash type). These data types all support push/pop, add/remove, intersection, union, difference, and richer operations, and these operations are all atomic. On this basis, redis supports various different ways of sorting. Like memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-slave) synchronization is achieved.
Check whether redis-cli and redis-server are installed on linux;
[root@localhost bin]# whereis redis-cli redis-cli: /usr/bin/redis-cli [root@localhost bin]# whereis redis-server redis-server: /usr/bin/redis-server
It means it has been installed. If you don’t know how to install it, tell us With a simple method, you can install php, php-redis extension, redis-server, and redis-cli in one step.
The above is the detailed content of Check whether redis is installed on linux. For more information, please follow other related articles on the PHP Chinese website!