宇恒一号官网
This commit is contained in:
24
server/README.md
Normal file
24
server/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# 多站点管理后台 - API 服务
|
||||
|
||||
基于 Gin 的后端 API 服务。
|
||||
|
||||
## MongoDB 连接(SSH 穿透)
|
||||
|
||||
MongoDB 在远程服务器,需先建立 SSH 隧道:
|
||||
|
||||
```bash
|
||||
ssh -p 2223 -L 27017:localhost:27017 yxd@www.yuxindazhineng.com
|
||||
```
|
||||
|
||||
或双击运行 `scripts/start-ssh-tunnel.bat`
|
||||
|
||||
隧道建立后,`mongodb://localhost:27017` 会转发到远程 MongoDB。
|
||||
|
||||
## 运行
|
||||
|
||||
```bash
|
||||
go mod tidy
|
||||
go run main.go
|
||||
```
|
||||
|
||||
默认端口 8080
|
||||
Reference in New Issue
Block a user