Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e9aeb881
authored
Nov 23, 2024
by
CalciumIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
99bf9c55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
README.md
+7
-5
No files found.
README.md
View file @
e9aeb881
...
...
@@ -80,6 +80,13 @@
### 部署要求
-
本地数据库(默认):SQLite(Docker 部署默认使用 SQLite,必须挂载
`/data`
目录到宿主机)
-
远程数据库:MySQL 版本 >= 5.7.8,PgSQL 版本 >= 9.6
### 使用宝塔面板Docker功能部署
安装宝塔面板 (
**9.2.0版本**
及以上),前往
[
宝塔面板
](
https://www.bt.cn/new/download.html
)
官网,选择正式版的脚本下载安装
安装后登录宝塔面板,在菜单栏中点击 Docker ,首次进入会提示安装 Docker 服务,点击立即安装,按提示完成安装
安装完成后在应用商店中找到
**New-API**
,点击安装,配置基本选项 即可完成安装
[
图文教程
](
BT.md
)
### 基于 Docker 进行部署
```
shell
# 使用 SQLite 的部署命令:
...
...
@@ -88,11 +95,6 @@ docker run --name new-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -
# 例如:
docker run
--name
new-api
-d
--restart
always
-p
3000:3000
-e
SQL_DSN
=
"root:123456@tcp(localhost:3306)/oneapi"
-e
TZ
=
Asia/Shanghai
-v
/home/ubuntu/data/new-api:/data calciumion/new-api:latest
```
### 使用宝塔面板Docker功能部署
安装宝塔面板 (
**9.2.0版本**
及以上),前往
[
宝塔面板
](
https://www.bt.cn/new/download.html
)
官网,选择正式版的脚本下载安装
安装后登录宝塔面板,在菜单栏中点击 Docker ,首次进入会提示安装 Docker 服务,点击立即安装,按提示完成安装
安装完成后在应用商店中找到
**New-API**
,点击安装,配置基本选项 即可完成安装
[
图文教程
](
BT.md
)
## 渠道重试
渠道重试功能已经实现,可以在
`设置->运营设置->通用设置`
设置重试次数,
**建议开启缓存**
功能。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment