In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to solve mistakes in springboot integrating redis Times on linux". The editor shows you the operation process through actual cases. The operation method is simple, fast and practical. I hope this article "how to solve mistakes in springboot Integration linux redis Times" can help you solve the problem.
If you integrate redis on linux in springboot, all other configurations are correct, but the following information is still prompted when you visit:
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the'--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside.
Then choose to use the absolute path when starting redis on Linux. I did it in this way after various attempts failed! It is hereby recorded and ready for reference!
For example, my startup command is as follows:
[root@localhost fsrm] # / usr/local/redis/bin/redis-server / home/fsrm/ document / redis.conf
No matter how the previous changes do not take effect, it may be that the default redis.conf configuration file is loaded at startup, resulting in not starting with your own modified configuration file, so any changes are meaningless!
Here are a few common commands when using redis under Linux
[root@localhost] # ps-ef | grep redis / / View redis process information [root@localhost fsrm] # kill-9 XXXX / / Kill the process corresponding to XXXX port number
Several configuration items in the redis.conf configuration file
# bind 127.0.0.1 / / comment out to access daemonize yes through the public network / / to start the daemon by default no protected-mode no / / unprotected mode yes is enabled by default
In addition, after restarting redi, the springboot project must also be restarted, otherwise it will not take effect!
This is the end of the content on "how to solve the mistakes of the redis Times on springboot Integration linux". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.