mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 09:05:34 +08:00
Update README.md
This commit is contained in:
25
README.md
25
README.md
@@ -77,12 +77,9 @@ git clone https://github.com/crazywhalecc/CQBot-swoole.git
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### 使用Docker快速构建
|
### 使用Docker快速构建并启动
|
||||||
``` shell
|
``` shell
|
||||||
docker pull jesse2061/cqbot-swoole
|
sudo docker run -it --rm --net=host --name cqbot -v $(pwd)/cqbot/:/root/ jesse2061/cqbot-swoole
|
||||||
mkdir cqbot && cd cqbot
|
|
||||||
curl -O https://raw.githubusercontent.com/crazywhalecc/CQBot-swoole/master/start-docker.sh
|
|
||||||
chmod +x start-docker.sh
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -97,26 +94,18 @@ php start.php
|
|||||||
#### 在screen中运行框架
|
#### 在screen中运行框架
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
screen -R cqbot
|
||||||
cd CQBot-swoole/
|
cd CQBot-swoole/
|
||||||
chmod +x start-screen.sh
|
|
||||||
./start-screen.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 使用Docker构建下启动框架
|
|
||||||
|
|
||||||
```shell
|
|
||||||
sudo docker run -it --rm --net=host --name cqbot -v $(pwd)/cqbot/:/root/ jesse2061/cqbot-swoole
|
|
||||||
|
|
||||||
# 进入docker后输入
|
|
||||||
php start.php
|
php start.php
|
||||||
|
# Ctrl A + D 将screen放到后台运行
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 使用Docker在screen中运行框架
|
#### 使用Docker在screen中运行框架
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -O https://raw.githubusercontent.com/crazywhalecc/CQBot-swoole/master/start-docker-screen.sh
|
screen -R cqbot
|
||||||
chmod +x start-docker-screen.sh
|
sudo docker run -it --rm --net=host --name cqbot -v $(pwd)/cqbot/:/root/ jesse2061/cqbot-swoole
|
||||||
./start-docker-screen.sh
|
# Ctrl A + D 将screen放到后台运行
|
||||||
```
|
```
|
||||||
|
|
||||||
## 关于
|
## 关于
|
||||||
|
|||||||
Reference in New Issue
Block a user