mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
chore: docs
This commit is contained in:
40
docs/guide/install/source/index.md
Normal file
40
docs/guide/install/source/index.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# 源码部署
|
||||
|
||||
## 一、源码安装
|
||||
### 源码启动
|
||||
```shell
|
||||
# 克隆代码
|
||||
git clone https://github.com/certd/certd
|
||||
# git checkout v1.x.x # 1.x.x换成最新版本号,当v2主干分支代码无法正常启动时,可以尝试此命令
|
||||
cd certd
|
||||
# 启动服务
|
||||
./start.sh
|
||||
|
||||
```
|
||||
>如果是windows,请先安装`git for windows` ,然后右键,选择`open git bash here`打开终端,再执行`./start.sh`命令
|
||||
|
||||
> 数据默认保存在 `./packages/ui/certd-server/data` 目录下,注意数据备份
|
||||
|
||||
### 访问测试
|
||||
|
||||
http://your_server_ip:7001
|
||||
默认账号密码:admin/123456
|
||||
记得修改密码
|
||||
|
||||
|
||||
## 二、升级
|
||||
|
||||
```shell
|
||||
# 更新代码并启动
|
||||
cd certd
|
||||
git pull
|
||||
# 先停止旧的服务,7001是certd的默认端口
|
||||
kill -9 $(lsof -t -i:7001)
|
||||
# 重新编译启动
|
||||
./start.sh
|
||||
```
|
||||
> 数据默认保存在 `./packages/ui/certd-server/data` 目录下
|
||||
> 建议配置一条[数据库备份流水线](../use/backup/) 自动备份
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user