Files
rlz/前端服务启动说明.md
2026-01-26 15:02:59 +08:00

71 lines
1.3 KiB
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.
# 前端服务启动说明
## 服务状态
前端服务已在后台启动。
## 访问地址
### 本地访问
- **前端地址**: `http://localhost:8050`
- **后端API**: `http://localhost:8039` (自动代理)
### 公网访问(如需)
- **前端地址**: `http://101.43.95.130:8050`
- **前提**: 需要开放防火墙8050端口
## 启动命令
```bash
cd /home/renjianbo/saars/rlz/rlz-ui
npm run dev
```
## 停止服务
如果需要停止前端服务:
```bash
# 查找进程
ps aux | grep "vue-cli-service\|npm.*dev"
# 停止服务替换PID为实际进程ID
kill <PID>
# 或强制停止
pkill -f "vue-cli-service"
```
## 查看日志
前端服务日志会输出到终端。如果需要查看日志,可以:
1. 查看进程输出
2. 或重新在前台启动查看日志:
```bash
cd /home/renjianbo/saars/rlz/rlz-ui
npm run dev
```
## 配置信息
- **端口**: 8050
- **后端代理**: 自动代理到 `http://127.0.0.1:8039`
- **配置文件**: `rlz-ui/vue.config.js`
## 登录信息
- **用户名**: `admin`
- **密码**: `admin123`
## 注意事项
1. 前端服务需要后端服务端口8039同时运行
2. 如果修改了代码,前端会自动热重载
3. 生产环境需要构建后部署:`npm run build:prod`
---
**启动时间**: 2026-01-26
**服务端口**: 8050