Files
shensheshou/端口登记.md

39 lines
965 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 神射手项目 - 端口登记
> 避免与其他项目端口冲突,开发/部署时请统一使用以下端口
> 卡若AI 本地端口总表:`卡若AI/00_本地端口登记.md`
## 专属端口
| 项目 | 端口 | 用途 |
|------|------|------|
| **神射手** | **3117** | Next.js 开发服务器 (pnpm dev) |
## 使用方式
```bash
# 方式1直接启动package.json 已配置 -p 3117
pnpm dev
# 方式2带端口冲突检查推荐
./scripts/start.sh # 冲突时提示
./scripts/start.sh --kill # 自动终止占用后启动
# 访问 http://localhost:3117
```
## 端口冲突处理
```bash
# 检查端口占用
lsof -i :3117
# 终止占用进程
lsof -ti :3117 | xargs kill -9
```
## 端口说明
- **3117**:神射手专属,请勿被其他项目占用
- 如需修改端口,请同步更新:`package.json``dev` 脚本、本文档、`开发文档/00_项目核心文档.md``卡若AI/00_本地端口登记.md`