Redis the file directory where the switch data is stored

Source: Internet
Author: User
root@ubuntu:/home/kyl# pwd
/home/kyl
root@ubuntu:/home/kyl# cd/usr/local/bin
root@ubuntu:/usr/local/ bin# pwd
/usr/local/bin
root@ubuntu:/tmp# redis-server/myredis/redis.conf 
root@ubuntu:/tmp# -P 6379
127.0.0.1:6379> config get dir
1) "dir"
2) "/usr/local/bin"
127.0.0.1:6379> 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
127.0.0.1:6379> config get dir
1) "dir"
2) "/home/kyl"
127.0.0.1:6379> SHUTDOWN not
connected> exit
root@ubuntu:/home/kyl#
root@ubuntu:/tmp# redis-server/myredis/redis.conf 
root@ubuntu:/tmp# redis-cli-p 6379
127.0.0.1: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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: