Angular:修改启动端口号

目标

修改预先设定的4200端口号,改为4100

解决方案

在启动命令中添加 --port 4100.参数 --open,会在启动时自动打开浏览器。

ng serve --open --port 4100

image
之后启动项目,大功告成。
image

posted @ 2023-07-22 09:54  胸怀丶若谷  阅读(70)  评论(0编辑  收藏  举报