ps -ef |grep redis Check whether the background process is running
#Detect whether port 6379 is listening
netstat -lntp | grep 6379
#Use the `redis-cli` client to check whether the connection is normal
./redis-cli
For more Redis-related technical articles, please visit the Redis Tutorial column to learn!
The above is the detailed content of How to check whether redis is started. For more information, please follow other related articles on the PHP Chinese website!