1 前言
上次自己手动搭建 AoiAWD,踩了很多坑。于是将自己踩的坑用脚本(Docker)的方式记录下来,为后人铺路吧。
2 食用
Note:guardian.phar、tapeworm.phar、roundworm等文件将会在部署时保存到当前目录下的 tmp 文件夹中。
- 下载源码
git clone https://github.com/slug01sh/AoiAWD # 这个项目地址不是官方的项目地址
- 构建镜像
docker-compose build
- 部署镜像(不建议直接使用 -d,需要查看网站密钥和运行情况)
docker-compose up
- 关闭并清理
docker-compose down
演示视频(OSX 11):
开源项目-Docker实现AoiAWD一键部署-slug01sh
- 常用命令
chmod +x guardian.phar
chmod +x tapeworm.phar
chmod +x roundworm
# 参数含义请查看:https://github.com/slug01sh/AoiAWD#guardian
./guardian.phar -i /var/www/html -s 10.211.55.3:8023
./tapeworm.phar -d /var/www/html -s 10.211.55.3:8023
./roundworm -w /var/www/html -s 10.211.55.3 -p 8023 -d