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

如何修改默认端口号? #7

Closed
zengyunda opened this issue Apr 2, 2024 · 2 comments
Closed

如何修改默认端口号? #7

zengyunda opened this issue Apr 2, 2024 · 2 comments

Comments

@zengyunda
Copy link

想把大佬的多个项目部署在本地,但是几个项目均是使用8000的端口号,请大佬怎么修改端口号呢?

@Vinlic
Copy link
Member

Vinlic commented Apr 2, 2024

@zengyunda
使用docker的话修改启动参数即可 -p xxxx:8000
使用原生部署的话,可以修改configs/dev/service.yml,或者启动时指定pm2 start dist/index.js --name "glm-free-api" -- --port xxxx

@Vinlic Vinlic closed this as completed Apr 2, 2024
@zengyunda
Copy link
Author

好嘞,感谢大佬回复~

@Vinlic Vinlic pinned this issue Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants