-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nacos-server-1.4.1-SNAPSHOT 读取application.properties是否生效? #4556
Comments
|
集群配置 192.1.1.1:8849,192.1.1.2:8849,192.1.1.3:8849 |
最简单的复现就是 修改application.properties的server.port, |
nacos-server-1.4.1-SNAPSHOT 集群启动
application.properties 文件修改 server.port=8849,而非默认8848.
cluster.conf 添加3个集群节点 ip1:8849,ip2:8849,ip3:8849
运行start.sh 启动失败 8848端口被占用(该机器上已经有其他项目使用了8848端口,所以nacos我修改成了8849端口.)
报错信息 start.out
----->
org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 8848 failed to start
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.checkConnectorHasStarted(TomcatWebServer.java:228)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.checkThatConnectorsHaveStarted(TomcatWebServer.java:220)
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:200)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:297)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
at com.alibaba.nacos.Nacos.main(Nacos.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
<------
再次观察cluster.conf 文件
原来是 ip1:8849,ip2:8849,ip3:8849
现在是 ip1:8849,ip2:8849,ip3:8849,localhostIp:8848
这个localhostIp:8848 是启动时候给我添加的 导致启动失败?
而且是8848端口,启动的banner读取的server.port信息也是8848
Nacos 1.4.1-SNAPSHOT
Running in cluster mode, All function modules
Port: 8848
Console: http://ip:**8848**/nacos/index.html
我想问applicaion.properties 中修改的server.port 是否生效?
该问题在1.4.0 版本没有问题,因为1.4.0版本的集群信息界面上有许多弃用的信息所以升级了1.4.1 snapshot 版本,遇到这个问题
The text was updated successfully, but these errors were encountered: