# 头程本地运行环境 运行目录为 `D:\baiyue-firstleg-runtime`。 | 组件 | 地址 | |---|---| | Redis | `127.0.0.1:6379` | | Nacos | `127.0.0.1:8848` | | Nacos 控制台 | `http://127.0.0.1:8848/nacos/` | 先启动基础设施: ```powershell powershell -ExecutionPolicy Bypass -File D:\baiyue-firstleg-runtime\start-infra.ps1 ``` 在项目 PowerShell 中加载本地变量: ```powershell cd D:\baiyue-firstleg . .\scripts\local-env.ps1 ``` 头程业务端口保持项目现有默认值,文件上传目录改为 `D:\baiyue-firstleg-runtime\uploads`。