Spring Boot,端口443可能已在使用中,或者连接器可能配置错误

时间:2017-06-28 23:13:25

标签: tomcat networking spring-boot

我寻找解决方案但没有成功。我的第一步是扫描打开的端口:

$ lsof -n -i
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    2505 adam  191u  IPv6  29475      0t0  TCP ip6-localhost:9300 (LISTEN)
java    2505 adam  193u  IPv6  29483      0t0  TCP localhost:9300 (LISTEN)
java    2505 adam  242u  IPv6  32882      0t0  TCP ip6-localhost:9200 (LISTEN)
java    2505 adam  243u  IPv6  28669      0t0  TCP localhost:9200 (LISTEN)
firefox 4193 adam   48u  IPv4 132995      0t0  TCP 192.168.2.104:41492->waw02s05-in-f14.1e100.net:https (ESTABLISHED)
firefox 4193 adam   78u  IPv4 136834      0t0  TCP 192.168.2.104:50010->waw02s07-in-f170.1e100.net:https (ESTABLISHED)
firefox 4193 adam   82u  IPv4 118882      0t0  TCP 192.168.2.104:60282->waw02s07-in-f174.1e100.net:https (ESTABLISHED)
firefox 4193 adam   98u  IPv4 131071      0t0  TCP 192.168.2.104:38022->151.101.193.69:https (ESTABLISHED)
firefox 4193 adam  115u  IPv4  47061      0t0  TCP 192.168.2.104:47570->192.0.73.2:https (ESTABLISHED)
java    4416 adam   14u  IPv4 141527      0t0  TCP localhost:39235->localhost:42200 (ESTABLISHED)
java    4416 adam   62u  IPv4 133369      0t0  TCP localhost:37871->localhost:51470 (ESTABLISHED)
java    4416 adam  171u  IPv4 125198      0t0  TCP *:39235 (LISTEN)
java    4416 adam  194u  IPv4 118604      0t0  TCP localhost:6942 (LISTEN)
java    4416 adam  435u  IPv4 119554      0t0  TCP localhost:63342 (LISTEN)
java    4416 adam  447u  IPv4 119565      0t0  TCP localhost:37871 (LISTEN)
java    4647 adam   32u  IPv6 125195      0t0  TCP *:23559 (LISTEN)
java    4647 adam   76u  IPv6 125196      0t0  TCP *:34679 (LISTEN)
java    4647 adam   77u  IPv6 138676      0t0  TCP localhost:42200->localhost:39235 (ESTABLISHED)
java    5334 adam  108u  IPv4 129812      0t0  TCP localhost:51470->localhost:37871 (ESTABLISHED)

this link内,您可以找到应用错误

applicatiom.yml

server:
  port: 443
  ssl:
    enabled: true
    key-alias: ontrack
    key-store: "keystore.p12"
    key-store-type: PKCS12
    key-store-password: password
    key-password: password
  undertow:
    ioThreads: 15
    workerThreads: 150
    accesslog:
      enabled: true
  compression:
    enabled: true
    mimeTypes: text/xml, text/css, text/plain, text/html, application/json, application/javascript
    minResponseSize: 512

我想使用没有端口的网址来打开我的网站。

1 个答案:

答案 0 :(得分:0)

我找到了解决方案,1到1024之间的端口是可以保证的。我使用过root权限,一切都很好。现在提问:使用root权限运行应用程序是好的吗?