1. First enter the redis directory and install redis to the specified directory
Use the make PREFIX=/usr/local/redis install command
2. Enter the redis directory and copy the redis.conf file to the usr/local/redis file
cp redis.conf /usr/local/redis
3. Enter the redis directory. Run vi redis.conf
4, change daemonize no to daemonize yes, save and exit
5, restart Click the redis service
./bin/redis-server ./redis.conf
and then you can use redis to operate
For more Redis-related technical articles, please visit the Redis Tutorial column to learn!
The above is the detailed content of How to enter redis command line operation in linux. For more information, please follow other related articles on the PHP Chinese website!