logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

docker部署nginx服务器,并允许vue项目(使用dockerFile构建)

1.编写dockerFile,并命名为nginxFROM nginxMAINTAINER ljyCOPY nginx.conf /etc/nginx/nginx.confCOPY dist /usr/share/nginx/distEXPOSE 8000一行一行解释一下①直接领取nginx镜像②作者名③把写好的nginx.conf 复制替换掉镜像中的nginx.conf其中需要改的在红色框内,首先

#docker#linux#nginx +1
前后端分离spring boot+vue跨域问题

当出现跨域问题时在spring boot项目中创建一个类如下package com.demo2.demo.config;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;imp...

#spring boot
docker镜像的导出和导入以及导入后运行

当在虚拟机上docker镜像能够成功运行起来后,接下来需要把虚拟机上的镜像从虚拟机上导出然后导入到服务器上并运行构建镜像,使用docker-compose --compatibility build 命令构建镜像,这时docker-compose.yml文件是用来构建镜像的,所以里面要写的是构建镜像的语句(可以参考前几篇docker文章),构建前把之前的镜像删除掉,批量删除某前缀的镜像命令如下,把

#docker#linux#centos +1
到底了