小编Neo*_*Neo的帖子

尤里卡中的“续订”和“续订阈值”是什么意思

我是 Eureka 的新手,我从 Eureka 服务器的主页(localhost:8761 /)看到此信息。我没有从官方文档中找到有关“续订”和“续订阈值”的任何解释。谁能解释一下这几个字吗?谢谢!

netflix-eureka spring-cloud-netflix

4
推荐指数
1
解决办法
3728
查看次数

无法创建 docker 网络:在要分配给网络的默认值中找不到可用的、非重叠的 IPv4 地址池

命令docker create network mynetwork给了我以下错误响应:

Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
Run Code Online (Sandbox Code Playgroud)

我用谷歌搜索了这个错误,但这些解决方案都不起作用

  1. 我只有 3 个预定义的 docker 网络,所以docker network prune没什么区别。
  2. 我从未安装过 OpenVPN

这是有关我的服务器环境的一些信息。操作系统:

LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.3 (Final)
Release:    6.3
Codename:   Final
Run Code Online (Sandbox Code Playgroud)

核心:

Linux xxx.com 3.10.0_3-0-0-17 #181 SMP Thu Feb 8 16:34:08 CST 2018 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

码头工人:

Client:
 Version:   18.03.0-ce
 API version:   1.37
 Go …
Run Code Online (Sandbox Code Playgroud)

docker docker-networking docker-network

4
推荐指数
1
解决办法
7196
查看次数

Tomcat7:执行shutdown.sh时发生内存不足错误

我的Tomcat服务器已经运行了好几天,但是我无法正常关闭它,因为在执行时shutdown.sh,我收到了这个错误:

# root@iZ94hjppdqzZ:~/projects/taolijie# cat hs_err_pid5519.log 
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing …
Run Code Online (Sandbox Code Playgroud)

java tomcat

3
推荐指数
1
解决办法
1796
查看次数

Spring Security OAuth2:InsufficientAuthenticationException

首先,我禁用了基本身份验证:

security.basic.enabled=false
Run Code Online (Sandbox Code Playgroud)

然后,我访问授权页面:

http://localhost:8080/oauth/authorize?client_id=client&response_type=code&redirect_uri=http://www.baidu.com
Run Code Online (Sandbox Code Playgroud)

我得到以下异常:

org.springframework.security.authentication.InsufficientAuthenticationException: User must be authenticated with Spring Security before authorization can be completed.
    at org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize(AuthorizationEndpoint.java:138) ~[spring-security-oauth2-2.0.10.RELEASE.jar:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_45]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) ~[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) ~[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895) ~[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at ...
Run Code Online (Sandbox Code Playgroud)

我不明白为什么必须先进行OAuth身份验证?

spring-security spring-security-oauth2

2
推荐指数
1
解决办法
8232
查看次数