Skip to content
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.5在redhat7.8系统上修改端口无效 #10217

Closed
lyon121024 opened this issue Mar 29, 2023 · 2 comments
Closed

nacos-server-1.4.5在redhat7.8系统上修改端口无效 #10217

lyon121024 opened this issue Mar 29, 2023 · 2 comments
Labels
contribution welcome kind/bug Category issues or prs related to bug. kind/research
Milestone

Comments

@lyon121024
Copy link

Describe the bug
nacos-server-1.4.5在redhat7.8系统上修改端口无效

Expected behavior
我希望将nacos-server-1.4.5的服务端口从8848改为27010

Actually behavior
实际上我修改了conf/application.properties中的 server.port=27010,然后用 ./bin/startup.sh -m standalone 启动,但是发现nacos-server的端口还是8848。我试了好多次。

How to Reproduce
Steps to reproduce the behavior:

  1. 从github下载nacos-server-1.4.5.zip到服务器,然后unzip
  2. vim conf/application.properties , 修改server.port=27010
  3. ./bin/startup.sh -m standalone && tail -f /data/nacos/logs/start.out
  4. 发现日志:nacos 1.4.5
  5. Running in stand alone mode,
  6. Port: 8848
  7. Pid: 6000
  8. 并且使用ss -lntp 也观察到nacos使用的是8848端口。且浏览器能够访问。

Desktop (please complete the following information):

  • OS: Red Hat Enterprise Linux Server release 7.8 (Maipo)
  • Version : nacos-server-1.4.5
  • Module : config
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context
Add any other context about the problem here.

@KomachiSion KomachiSion added kind/bug Category issues or prs related to bug. kind/research labels Mar 29, 2023
@KomachiSion KomachiSion added this to the 1.4.6 milestone Mar 29, 2023
@KomachiSion
Copy link
Collaborator

The problem come from #9617.

Please modified the bin/startup.sh line 119

JAVA_OPT="${JAVA_OPT} --spring.config.additional-location=optional:${CUSTOM_SEARCH_LOCATIONS}"

to

JAVA_OPT="${JAVA_OPT} --spring.config.additional-location=${CUSTOM_SEARCH_LOCATIONS}"

@lyon121024
Copy link
Author

thanks! It's very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome kind/bug Category issues or prs related to bug. kind/research
Projects
None yet
Development

No branches or pull requests

2 participants