You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
庞瑞洋 c4d2988f26 final 4 years ago
Public final project 删除 4 years ago
Sqlite final project 删除 4 years ago
documentation final project 删除 4 years ago
install final project 删除 4 years ago
mock final project 删除 4 years ago
server final project 删除 4 years ago
web final project 删除 4 years ago
web_src final project 删除 4 years ago
.dockerignore final project 4 years ago
.gitignore final project 4 years ago
.htaccess final project 4 years ago
Dockerfile final project 4 years ago
LICENSE.txt final project 4 years ago
README.md final 4 years ago
composer.json final project 4 years ago
favicon.ico final project 4 years ago
index.php final project 4 years ago
listen.png 上传文件至 '' 4 years ago
result.png final 4 years ago
robots.txt final project 4 years ago

README.md

cloud-computing-course-final

本项目的源代码的源地址:showdoc

部署方式:

  • 1.新建一台云主机

  • 2.安装docker并启动docker

  • 3.下载docker镜像并重命名

      docker pull registry.cn-shenzhen.aliyuncs.com/star7th/showdoc
      docker tag registry.cn-shenzhen.aliyuncs.com/star7th/showdoc:latest star7th/showdoc:latest 
    
  • 4.新建存放showdoc数据的目录并给予其权限

      mkdir -p /showdoc_data/html
      chmod  -R 777 /showdoc_data
    
  • 5.云主机新建会话并使其监听4999端口

    Image text
  • 6.运行容器

     docker run -d --name showdoc -p 4999:80 -v /showdoc_data/html:/var/www/html/ star7th/showdoc
    
  • 7.登陆网站

    本机登录网址http://localhost:4999,即可登录showdoc,初始账号是showdoc,密码是123456; 但仅限本机登录。
  • 8.非本机访问——负载均衡

    先创建一个负载均衡
  • 9.非本机访问

    将云主机连到负载均衡器。回到前面添加服务节点的界面,输入端口4999,将云主机对应的内网ip,转移到待添加节点,点击确定。 随后在任意设备上输入网址http://负载均衡ip即可登录showdoc。