当前位置: 首页 > news >正文

做标书分享网站wordpress 开启缓存

做标书分享网站,wordpress 开启缓存,客户关系管理系统,网站制作步骤流程图一、nginx默认路径 1.1、默认配置文件路径#xff1a;/etc/nginx/nginx.conf 1.2、默认资源路径#xff1a;/usr/share/nginx/html/index.html 二、修改nginx.conf配置 #xff08;注意配置中的#xff1a;include /etc/nginx/conf.d/*.conf; 里面包了一个server配置文件…一、nginx默认路径 1.1、默认配置文件路径/etc/nginx/nginx.conf 1.2、默认资源路径/usr/share/nginx/html/index.html 二、修改nginx.conf配置 注意配置中的include /etc/nginx/conf.d/*.conf;  里面包了一个server配置文件  user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; events {worker_connections 1024; }http {include /etc/nginx/mime.types;default_type application/octet-stream;log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;access_log /var/log/nginx/access.log main;sendfile on;#tcp_nopush on;keepalive_timeout 65;#gzip on;#include /etc/nginx/conf.d/*.conf;server {listen 80;listen [::]:80;server_name localhost;#access_log /var/log/nginx/host.access.log main;location / {root /usr/share/nginx/html; # vue目录地址distindex index.html index.htm;try_files $uri $uri/ /index.html; # 解决刷新页面变成404问题的代码}#error_page 404 /404.html;error_page 500 502 503 504 /50x.html;location /50x.html {root /usr/share/nginx/html;}} }三、dockerfile COPY ./nginx.conf /etc/nginx/nginx.conf COPY --fromnodeBuild /y-qd/dist /usr/share/nginx/html # 二开推荐阅读[如何提高项目构建效率](https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/scene/build/speed.html) # 选择构建用基础镜像。如需更换请到[dockerhub官方仓库](https://hub.docker.com/_/java?tabtags)自行选择后替换。# 引入Node.js FROM node:12.22.12 AS nodeBuild# npm镜像解决报错而引入 RUN npm config set registry https://registry.npm.taobao.org# install simple http server for serving static content # 全局http-server用于本地运行 #RUN npm install -g http-server# make the app folder the current working directory # 指定构建过程中的工作目录 WORKDIR /y-qd# copy both package.json and package-lock.json (if available) # 将src目录下所有文件拷贝到工作目录中src目录下.gitignore/.dockerignore中文件除外 COPY package*.json ./# install project dependencies RUN npm install# copy project files and folders to the current working directory (i.e. app folder) COPY . .# build app for production with minification # 生产打包对应脚本build: node build/build.js RUN npm run build #本地对应脚本dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js #RUN npm run dev# production stage #代理nginxnginx直接访问 FROM nginx:stable-alpine AS nginxBuild COPY ./nginx.conf /etc/nginx/nginx.conf COPY --fromnodeBuild /y-qd/dist /usr/share/nginx/html EXPOSE 80 CMD [nginx, -g, daemon off;]#本地对应端口 #EXPOSE 8088 #CMD [ http-server, dist ] 四、注意 4.1、 完~
http://www.dnsts.com.cn/news/187162.html

相关文章:

  • 可以刮刮卡的网站全国企业信息系统网官网
  • 大学生课程设计网站手机p图软件
  • 中英文自助网站建设京津冀协同发展规划纲要
  • 企业网站 个人备案沈阳做网站优化的公司哪家好
  • 网站建设 app我做淘宝网站卖东西怎么激活
  • 常州城投建设招标网站展厅设计装饰公司
  • 网站推广计划书范文西安做网站哪家最便宜
  • 手机网站优化排名怎么做登陆网站显示域名解析错误怎么办
  • tag做的最好的网站网页设计难学吗
  • 无锡装饰网站建设wordpress 课程激活
  • 肥城网站制作企业信息查询系统官网上海
  • 网站设计经典案例建设工程机械鉴定中心官网
  • 太原零元网站建设wordpress投票
  • 连云港网站建设2345推广联盟
  • 网站建设公司代理idc科技公司网站模板
  • 国外网站页面做多大博客导航wordpress
  • 具体阐述对网站如何加强建设全网营销课程
  • 多用户网站管理系统廊坊seo关键词排名
  • 免费建立自己的网站代码游乐场网站开发
  • 自学制作网站难不难雄安做网站优化的公司
  • 房地产广告设计网站做app网站公司
  • 做网站维护的是什么公司opencart网站
  • 广州天河建网站wordpress 登录空白页
  • 怎么建网站青州问枫家在深圳网页版
  • 如何做旅游网站的旅行家织梦猫html5高端网络服务机构网站模板
  • 公章在线制作网站做不了威海哪里可以建设企业网站
  • 装修10万元利润是多少网站seo方案案例
  • 破解wordpress网站密码wordpress 批量缩略图
  • 网站建设文化策划陕西网络公司网站建设
  • 深圳网站设计九曲网站建设科技创新小发明