How to check if redis is started by linux
In this issue, Xiaobian will bring you about Linux how to check whether redis is started. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
Redis is a key-value storage system. Similar to Memcached, it supports a relatively large number of stored value types, including string, list, set, zset, and hash. These data types all support push/pop, add/remove, and take intersection union and subtraction, as well as richer operations, all of which are atomic. On this basis, redis supports a variety of different ways of sorting. As with memcached, data is cached in memory for efficiency. The difference is that redis periodically writes updated data to disk or changes to additional log files, and on this basis achieves master-slave synchronization.
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
Start redis service using configuration file
./ redis-server /etc/redis/redis.conf
Use ps to view or netstat
ps aux | grep redis-server
netstat -tunple | grep 6379
The above is how to check whether redis is started for linux shared by Xiaobian. If there is a similar doubt, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.