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-1.4.6版本在windows下修改配置文件始终不生效 #11399

Closed
Alleyf opened this issue Nov 18, 2023 · 3 comments
Closed

nacos-1.4.6版本在windows下修改配置文件始终不生效 #11399

Alleyf opened this issue Nov 18, 2023 · 3 comments
Labels
contribution welcome kind/bug Category issues or prs related to bug. os/windows
Milestone

Comments

@Alleyf
Copy link

Alleyf commented Nov 18, 2023

Describe the bug
nacos-1.4.6版本在windows下修改配置文件始终不生效,人就使用target目录下的默认配置,无法以application.properties文件的新配置启动。

Expected behavior
修改application.properties文件的端口以进行集群部署

Actually behavior
修改端口失败,还是默认运行在8848端口

How to Reproduce

  1. windows下:

修改bin目录下的startup.cmd文件:
将:set "NACOS_CONFIG_OPTS=--spring.config.additional-location=optional:%CUSTOM_SEARCH_LOCATIONS%"
改为:set "NACOS_CONFIG_OPTS=--spring.config.additional-location=%CUSTOM_SEARCH_LOCATIONS%"

  1. lunux下修改对应startup.sh配置即可
@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Nov 20, 2023
@KomachiSion
Copy link
Collaborator

#10526

@KomachiSion KomachiSion closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
@KomachiSion KomachiSion reopened this Nov 20, 2023
@KomachiSion KomachiSion added contribution welcome and removed status/duplicate This issue or pull request already exists labels Nov 20, 2023
@KomachiSion KomachiSion added this to the 1.4.7 milestone Nov 20, 2023
@KomachiSion KomachiSion added kind/bug Category issues or prs related to bug. os/windows labels Nov 20, 2023
@KomachiSion
Copy link
Collaborator

Welcome PR to v1.x-develop

@DiligenceLai
Copy link
Contributor

After modification, the problem has been solved. I deployed Nacos cluster locally for testing, and all nodes in the cluster performed normally.
44a7ba1a91fa537401201d506254302

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. os/windows
Projects
None yet
Development

No branches or pull requests

3 participants