renren-generator 在 MAC 运行 80 端口占用问题解决

分享 1 2891
hunt
hunt 2018-10-10
MAC 系统 IDEA 环境运行 renren-generator ,控制台描述如下问题(80 端口占用) [pre] Description: The Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 80, or configure this application to listen on another port. [/pre] 之前以为是 MAC 自带的 Apache 占用 80 端口,后来将工程中 application.yml “port: 80” 改为 “port: 89”,还是出现同样问题。 查了一下, MAC 1024 及以下的端口,需要系统权限,所以将端口改为 1024 以上(不被别的进程占用就行) “port: 1949” 即可正常运行。 浏览器运行地址 http://localhost:1949/
回帖