From 610a2e11dbc36ac3b72f25cc6fa6eb3d62915195 Mon Sep 17 00:00:00 2001 From: Whale Date: Thu, 31 Jan 2019 23:12:03 +0800 Subject: [PATCH] Update README.md --- README.md | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index f7784ebf..a40df901 100755 --- a/README.md +++ b/README.md @@ -77,12 +77,9 @@ git clone https://github.com/crazywhalecc/CQBot-swoole.git ``` -### 使用Docker快速构建 +### 使用Docker快速构建并启动 ``` shell -docker pull 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 +sudo docker run -it --rm --net=host --name cqbot -v $(pwd)/cqbot/:/root/ jesse2061/cqbot-swoole ``` @@ -97,26 +94,18 @@ php start.php #### 在screen中运行框架 ```shell +screen -R cqbot 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 +# Ctrl A + D 将screen放到后台运行 ``` #### 使用Docker在screen中运行框架 ```shell -curl -O https://raw.githubusercontent.com/crazywhalecc/CQBot-swoole/master/start-docker-screen.sh -chmod +x start-docker-screen.sh -./start-docker-screen.sh +screen -R cqbot +sudo docker run -it --rm --net=host --name cqbot -v $(pwd)/cqbot/:/root/ jesse2061/cqbot-swoole +# Ctrl A + D 将screen放到后台运行 ``` ## 关于