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

How to enter redis command line operation in linux

Release: 2019-06-25 17:48:52
Original
20094 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template