File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 2323
2424### 二、启动服务
2525
26- > 两种方式运行 1. 源码启动服务 2. Docker启动服务
26+ ** 1、二进制文件 **
2727
28- ** 一、源码运行服务 **
28+ 你可以直接从 [ Releases ] ( https://github.com/ch3nnn/webstack-go/releases ) 下载预先编译好的二进制文件,解压后执行:
2929
30+ ``` bash
31+ ./webstack-go -conf config/prod.yml
32+ ```
33+
34+ > [ !NOTE]
35+ > MacOS 在执行二进制文件时会提示:未打开“webstack-go”,因为 Apple 无法检查其是否包含恶意软件。
36+ >
37+ > 可在“系统设置 > 隐私与安全性 > 安全性”中点击“仍然允许”,然后再次尝试执行二进制文件。
38+
39+
40+ ** 2、源码运行服务 (需要 Golang 环境)**
30411 . 目录下执行 ` go mod tidy ` 拉取项目依赖库
31422 . 执行 ` go build -o ./bin/server ./cmd/server ` 编译项目,生成可执行文件 server
32433 . 编译完执行 ` ./bin/server -conf=config/prod.yml ` 首次启动程序之后,会生成 SQLite 数据库,并自动创建表结构
3344
3445
35- ** 二、Docker运行服务 **
46+ ** 3、Docker 运行服务 **
3647
3748
38491 . 目录下执行 ` make docker ` 等待启动
You can’t perform that action at this time.
0 commit comments