makemake PREFIX=/usr/local/redis installmkdir /etc/redis/cp redis.conf /etc/redis/
Open the redis.conf file and modify daemonize yes to run vim /etc/ in the background redis/redis.conf
Use the configuration file to start the redis service./redis-server /etc/redis/redis.conf
How to check that the redis service starts normally? Use ps to view or netstat
ps aux | grep redis-servernetstat -tunple | grep 6
Linux is a free to use and freely disseminated class The UNIX operating system is a multi-user, multi-task, multi-thread and multi-CPU operating system based on POSIX. Linux can be used to run major Unix tool software, applications and network protocols.
The above is the detailed content of How to check Redis status in Linux system. For more information, please follow other related articles on the PHP Chinese website!