Home >Database >Redis >How to enter redis command line operation in linux

How to enter redis command line operation in linux

尚
Original
2019-06-25 17:48:5220098browse

How to enter redis command line operation in linux

1. First enter the redis directory and install redis to the specified directory

Use the make PREFIX=/usr/local/redis install command

How to enter redis command line operation in linux

2. Enter the redis directory and copy the redis.conf file to the usr/local/redis file

cp redis.conf  /usr/local/redis

How to enter redis command line operation in linux

3. Enter the redis directory. Run vi redis.conf

How to enter redis command line operation in linux

4, change daemonize no to daemonize yes, save and exit

How to enter redis command line operation in linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn