10-Aug-2019 15:33:29.854 SEVERE [http-nio-8080-exec-2] redis.clients.jedis.HostAndPort.getLocalHostQuietly cant resolve localhost address
java.net.UnknownHostException: dev3-phoenix-java-0.153: dev3-phoenix-java-0.153: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1506)
at redis.clients.jedis.HostAndPort.getLocalHostQuietly(HostAndPort.java:105)
at redis.clients.jedis.HostAndPort.<clinit>(HostAndPort.java:12)
at redis.clients.jedis.JedisFactory.<init>(JedisFactory.java:37)
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:185)
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:162)
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:144)
at org.crazycake.shiro.RedisManager.init(RedisManager.java:31)
at org.crazycake.shiro.RedisManager.checkAndInit(RedisManager.java:38)
at org.crazycake.shiro.RedisManager.set(RedisManager.java:93)
at org.crazycake.shiro.RedisSessionDAO.saveSession(RedisSessionDAO.java:50)
at org.crazycake.shiro.RedisSessionDAO.doCreate(RedisSessionDAO.java:91)
at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.create(AbstractSessionDAO.java:116)
at org.apache.shiro.session.mgt.DefaultSessionManager.create(DefaultSessionManager.java:177)
at org.apache.shiro.session.mgt.DefaultSessionManager.doCreateSession(DefaultSessionManager.java:158)
at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.createSession(AbstractValidatingSessionManager.java:136)
at org.apache.shiro.session.mgt.AbstractNativeSessionManager.start(AbstractNativeSessionManager.java:99)
at org.apache.shiro.mgt.SessionsSecurityManager.start(SessionsSecurityManager.java:152)
at org.apache.shiro.subject.support.DelegatingSubject.getSession(DelegatingSubject.java:340)
at org.apache.shiro.subject.support.DelegatingSubject.getSession(DelegatingSubject.java:316)
at com.ruoyi.common.utils.security.ShiroCasUtils.getIp(ShiroCasUtils.java:81)
at com.ruoyi.framework.manager.factory.AsyncFactory.recordLogininfor(AsyncFactory.java:96)
at com.ruoyi.framework.shiro.realm.MyShiroCasRealm.doGetAuthenticationInfo(MyShiroCasRealm.java:138)
at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:571)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)
at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
本地windows环境开发过程中启动无异常,linux服务器上启动报如上错误
再次启动就不会再报错了