我是靠谱客的博主 自信狗,这篇文章主要介绍redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够,现在分享给大家,希望可以做个参考。

异常信息

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
HTTP Status 500 - Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够 (connect failed) type Exception report message Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够 (connect failed) description The server encountered an internal error that prevented it from fulfilling this request. exception org.springframework.web.util.NestedServletException: Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够 (connect failed) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:986) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) root cause redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够 (connect failed) redis.clients.jedis.Connection.connect(Connection.java:207) redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93) redis.clients.jedis.Connection.sendCommand(Connection.java:126) redis.clients.jedis.Connection.sendCommand(Connection.java:117) redis.clients.jedis.BinaryClient.auth(BinaryClient.java:564) redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2138) com.devcoms.web.controller.HomeController.Index(HomeController.java:42) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:871) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:777) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) root cause java.net.ConnectException: 权限不够 (connect failed) java.net.PlainSocketImpl.socketConnect(Native Method) java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) java.net.Socket.connect(Socket.java:589) redis.clients.jedis.Connection.connect(Connection.java:184) redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93) redis.clients.jedis.Connection.sendCommand(Connection.java:126) redis.clients.jedis.Connection.sendCommand(Connection.java:117) redis.clients.jedis.BinaryClient.auth(BinaryClient.java:564) redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2138) com.devcoms.web.controller.HomeController.Index(HomeController.java:42) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:871) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:777) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.76 logs. Apache Tomcat/7.0.76

摸索

翻遍了各种搜索引擎,就没遇到过说权限不够的

1 修改服务运行用户为root

没效果

2 给tomcat所有相关的目录授权

没效果

3 修改tomcat配置文件,注入jvm参数

没效果

解决

也不算是解决了,是放弃了

原来 tomcat 是用 yum 安装的

换成官方的安装包,或编译安装都可以,就没有权限问题了

到最后我也没搞清楚啥原因,有时间了在继续研究

记得添加tomcat运行用户

复制代码
1
2
groupadd tomcat useradd -g tomcat -s /usr/sbin/nologin tomcat

最后

以上就是自信狗最近收集整理的关于redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: 权限不够的全部内容,更多相关redis.clients.jedis.exceptions.JedisConnectionException:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(79)

评论列表共有 0 条评论

立即
投稿
返回
顶部