如何让redis在本地工作?


2

我有一个redis数据库。现在我需要让它在本地工作。我的意思是我希望它只能在我的本地机器上访问。没有网络请求。我该怎么做?

我找到了redis.conf,内容如下:

# If you want you can bind a single interface, if the bind option is not
# specified all the interfaces will listen for incoming connections.


bind 127.0.0.1

行 bind 127.0.0.1 之前评论过。我重启了redis service redis restart,但我仍然可以通过网络读取redis。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.