Redis the file directory where the switch data is stored

Source: Internet
Author: User

root@ubuntu:/home/kyl# pwd
root@ubuntu:/home/kyl# cd/usr/local/bin
root@ubuntu:/usr/local/ bin# pwd
root@ubuntu:/tmp# redis-server/myredis/redis.conf 
root@ubuntu:/tmp# -P 6379> config get dir
1) "dir"
2) "/usr/local/bin"> SHUTDOWN Not
connected> exit
root@ubuntu:/tmp# cd/home/kyl
root@ubuntu:/home/kyl# redis-server/myredis/ redis.conf 
root@ubuntu:/home/kyl# redis-cli-p 6379> config get dir
1) "dir"
2) "/home/kyl"> SHUTDOWN not
connected> exit
root@ubuntu:/tmp# redis-server/myredis/redis.conf 
root@ubuntu:/tmp# redis-cli-p 6379> Config get dir
1) "dir"
2 "/tmp"
That is, go to which directory, and then start the service
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: