![特定用户无法在端口 443 上运行 Spring Boot 应用程序,但 root 可以执行此操作](https://linux22.com/image/1622221/%E7%89%B9%E5%AE%9A%E7%94%A8%E6%88%B7%E6%97%A0%E6%B3%95%E5%9C%A8%E7%AB%AF%E5%8F%A3%20443%20%E4%B8%8A%E8%BF%90%E8%A1%8C%20Spring%20Boot%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%EF%BC%8C%E4%BD%86%20root%20%E5%8F%AF%E4%BB%A5%E6%89%A7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C.png)
我无法在 CentOS 上的端口 443(或 433 无所谓)上以特定用户运行 Spring Boot 应用程序。
Caused by: java.net.SocketException: Permission denied
Root 可以执行此操作。当我尝试在端口 8761 上运行它(使用相同的特定用户)时,它成功了。我应该在哪里应用此权限?
答案1
以下是我发现的内容
The Well Known Ports (0-1023) – which are reserved for the operating system and core services.
The Registered Ports (1024-49151) – which can be used by applications, specific services, and users.
The Dynamic and/or Private Ports (49152-65535)