diff --git a/README.md b/README.md index 7b51384..fdfa0ea 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,71 @@ -# Personal-Collections-Website +# 邓淳远、崔鹏宇、翁思扬组云计算期末项目 -邓淳远、崔鹏宇、翁思扬组云计算期末项目 +**云主机防火墙需要开放5000端口** + + + +## 使用镜像配置 + +``` +镜像id:uimage-xmqerqhh +用户名:10185101272@stu.ecnu.edu.cn +密码:wsy150943 +``` + +更新IP配置 + +``` +cd /root/Personal-Collections-Website/APP +export IP=当前云主机IP +bash ./get_ip.sh +``` + +使用docker compose进行配置,运行 + +``` +systemctl start docker +systemctl stop mysqld +docker-compose build +docker-compose up +``` + +## 使用docker配置 + +## 前期环境配置(以centos7为例) + +安装docker +``` +curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun +systemctl start docker +``` +安装docker compose +``` +sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +chmod +x /usr/local/bin/docker-compose +``` +安装git +``` +yum install git +``` +## 部署项目 +clone仓库 +``` +git clone https://github.com/LOGIC0805/Personal-Collections-Website.git +``` +更新IP配置 +``` +cd ./Personal-Collections-Website/APP +export IP=当前云主机IP +bash ./get_ip.sh +``` +使用docker compose进行配置 +``` +docker-compose build +``` + +# 运行项目 + +``` +docker-compose up +``` +访问端口5000