wengsy 118df4e02b | 3 years ago | ||
---|---|---|---|
.idea | 删除 | 4 years ago | |
APP | 删除 | 4 years ago | |
mysql | 删除 | 4 years ago | |
10185101155-云计算演示.pdf | 3 years ago | ||
README.md | 4 years ago | ||
docker-compose.yml | 4 years ago | ||
requirements.txt | 4 years ago |
云主机防火墙需要开放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
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