{"id":798,"date":"2020-04-11T23:34:49","date_gmt":"2020-04-11T15:34:49","guid":{"rendered":"http:\/\/prayerlaputa.com\/?p=798"},"modified":"2020-04-11T23:34:49","modified_gmt":"2020-04-11T15:34:49","slug":"%e8%bf%9e%e6%8e%a5redis%e6%97%b6%e5%87%ba%e7%8e%b0-err-client-sent-auth-but-no-password-is-set-%e5%bc%82%e5%b8%b8%e7%9a%84%e5%8e%9f%e5%9b%a0%e5%8f%8a%e8%a7%a3%e5%86%b3%e5%8a%9e","status":"publish","type":"post","link":"http:\/\/prayerlaputa.com\/?p=798","title":{"rendered":"\u8fde\u63a5redis\u65f6\u51fa\u73b0 \u201cERR Client sent AUTH, but no password is set\u201d \u5f02\u5e38\u7684\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<h2 id=\"%E7%8E%B0%E8%B1%A1\" class=\"mume-header\">\u73b0\u8c61<\/h2>\n<p>\u4f7f\u7528<code>redis-cli<\/code>\u8fde\u63a5redis\u65f6\uff0c\u62a5\u9519\uff1a<br \/>\n<code>ERR Client sent AUTH, but no password is set<\/code><\/p>\n<p>\u5f02\u5e38\u4fe1\u606f\u7c7b\u4f3c\uff1a<!--more--><\/p>\n<pre class=\"language-\" data-role=\"codeBlock\" data-info=\"\"><code>redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool\r\nat redis.clients.util.Pool.getResource(Pool.java:53)\r\nat redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)\r\nat cn.hncu.RedisPool.getJedis(RedisPool.java:66)\r\nat cn.hncu.RedisJava.main(RedisJava.java:15)\r\nCaused by: redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set\r\nat redis.clients.jedis.Protocol.processError(Protocol.java:127)\r\nat redis.clients.jedis.Protocol.process(Protocol.java:161)\r\nat redis.clients.jedis.Protocol.read(Protocol.java:215)\r\nat redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)\r\nat redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:239)\r\nat redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2139)\r\nat redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:108)\r\nat org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)\r\n<\/code><\/pre>\n<h2 id=\"%E5%8E%9F%E5%9B%A0\" class=\"mume-header\">\u539f\u56e0<\/h2>\n<p>Redis\u670d\u52a1\u5668\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801\uff0c\u4f46\u5ba2\u6237\u7aef\u5411\u5176\u53d1\u9001\u4e86AUTH\uff08authentication\uff0c\u8eab\u4efd\u9a8c\u8bc1\uff09\u8bf7\u6c42\u3002<\/p>\n<h2 id=\"%E8%A7%A3%E5%86%B3\" class=\"mume-header\">\u89e3\u51b3<\/h2>\n<h3 id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%951%E9%85%8D%E7%BD%AE%E5%8F%82%E6%95%B0%E4%B8%8D%E4%BC%A0%E5%AF%86%E7%A0%81\" class=\"mume-header\">\u89e3\u51b3\u65b9\u6cd51\uff1a\u914d\u7f6e\u53c2\u6570\u4e0d\u4f20\u5bc6\u7801<\/h3>\n<p>\u4e0d\u63a8\u8350\uff0c\u8bf7\u76f4\u63a5\u8df3\u8fc7\u8fd9\u4e2a\u6b65\u9aa4\u3002<\/p>\n<h3 id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%952%E7%BB%99redis%E9%9B%86%E7%BE%A4%E8%AE%BE%E7%BD%AE%E5%AF%86%E7%A0%81\" class=\"mume-header\">\u89e3\u51b3\u65b9\u6cd52\uff1a\u7ed9redis\u96c6\u7fa4\u8bbe\u7f6e\u5bc6\u7801<\/h3>\n<p>\u9996\u5148\u627e\u5230\u6b63\u5728\u4f7f\u7528\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u627e\u5230<code>requirepass<\/code>\uff0c\u53bb\u6389\u6ce8\u91ca\u8bbe\u7f6e\u5bc6\u7801\uff0c\u7f16\u8f91\u5b8c\u540e\u4fdd\u5b58\uff0c\u91cd\u65b0\u542f\u52a8Redis\uff0c\u518d\u8fd0\u884c\u7a0b\u5e8f<\/p>\n<h1 id=\"%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\" class=\"mume-header\">\u53c2\u8003\u8d44\u6599<\/h1>\n<ul>\n<li><a href=\"https:\/\/blog.csdn.net\/iw1210\/article\/details\/72428824\">Java\u94fe\u63a5Redis\u65f6\u51fa\u73b0 \u201cERR Client sent AUTH, but no password is set\u201d \u5f02\u5e38\u7684\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u8c61 \u4f7f\u7528redis-cli\u8fde\u63a5redis\u65f6\uff0c\u62a5\u9519\uff1a ERR Client sent AUTH, but no <a href='http:\/\/prayerlaputa.com\/?p=798' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[94],"tags":[95],"_links":{"self":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/798"}],"collection":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=798"}],"version-history":[{"count":1,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":799,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=\/wp\/v2\/posts\/798\/revisions\/799"}],"wp:attachment":[{"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/prayerlaputa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}