certd/docs/guide/install/source/index.md

41 lines
956 B
Markdown
Raw Normal View History

# 源码部署
## 一、源码安装
### 源码启动
```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` 目录下
2024-10-19 14:49:33 +00:00
> 建议配置一条[数据库备份流水线](../use/backup/) 自动备份