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.
linux Check whether redis is started
make
make PREFIX=/usr/local/redis install
mkdir /etc/redis/
cp redis.conf /etc/redis/
Open the redis.conf file and modify daemonize yes to run in the background
vim /etc/redis/redis.conf
Use the configuration file to start the redis service
./redis-server /etc/redis/redis.conf
How to check whether the redis service starts normally?
Use ps to view or netstat
ps aux | grep redis-server
netstat -tunple | grep 6379
The above is the detailed content of Linux checks whether redis is started. For more information, please follow other related articles on the PHP Chinese website!