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

wordpress迁移网站惠州seo优化

wordpress迁移网站,惠州seo优化,dw做网站乱码,页面设计步骤docker安装nginx部署前端项目 拉取镜像 docker pull nginx:1.24.0运行容器 docker run --name nginx -p 80:80 -d nginx:1.24.0创建本地挂载的目录 mkdir -p /docker/nginx/conf mkdir -p /docker/nginx/log mkdir -p /docker/nginx/html复制运行的nginx配置到宿主机上 将…

docker安装nginx部署前端项目

拉取镜像

docker pull nginx:1.24.0

运行容器

docker run --name nginx -p 80:80 -d nginx:1.24.0

创建本地挂载的目录

mkdir -p /docker/nginx/conf
mkdir -p /docker/nginx/log
mkdir -p /docker/nginx/html

复制运行的nginx配置到宿主机上

将容器nginx.conf文件复制到宿主机
docker cp nginx:/etc/nginx/nginx.conf /docker/nginx/conf/nginx.conf
将容器conf.d文件夹下内容复制到宿主机
docker cp nginx:/etc/nginx/conf.d /docker/nginx/conf/conf.d
将容器中的html文件夹复制到宿主机
docker cp nginx:/usr/share/nginx/html /docker/nginx/
将容器中的日志log文件夹复制到宿主机
docker cp nginx:/var/log/nginx/ /docker/nginx/log

上述命令执行完毕删除运行的容器

docker stop 容器id
docker rm 容器id

正式运行

docker run  -p 80:80 -p 5010:5010   --restart=always --name nginxWeb -v /docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /docker/nginx/conf/conf.d:/etc/nginx/conf.d -v /docker/nginx/log:/var/log/nginx -v /docker/nginx/html:/usr/share/nginx/html -d nginx:1.24.0;

修改配置文件

server {listen       80;listen  [::]:80;server_name  localhost;#access_log  /var/log/nginx/host.access.log  main;location / {root   /usr/share/nginx/html/build;index  index.html index.htm;try_files   $uri   $uri/  /index.html;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   /usr/share/nginx/html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}
}server {listen       5010;listen  [::]:5010;server_name  localhost;#access_log  /var/log/nginx/host.access.log  main;location / {root   /usr/share/nginx/html/dist;index  index.html index.htm;try_files   $uri   $uri/  /index.html;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.html#error_page   500 502 503 504  /50x.html;location = /50x.html {root   /usr/share/nginx/html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}
}

修改完成重启容器

docker restart id
http://www.wangmingla.cn/news/55344.html

相关文章:

  • 重庆专业网站搭建公司品牌推广策略分析
  • 阿里妈妈网站建设不完整国外推广网站
  • 做公司网站用什么系统珠海优化seo
  • 做网站都需要什么工具北京做网站的公司排行
  • 五 网站开发总体进度安排如何成为app推广代理
  • 网站建设中页面设计微帮推广平台怎么加入
  • 手机网站免费制作如何制作一个宣传网页
  • 做传销网站违法吗万网官网域名查询
  • 网站开发 访问速度慢专业竞价托管
  • 上海网站设计软件怎么让百度收录网站
  • 如何增加网站外链品牌seo是什么
  • python做网站原理怎样推广自己的app
  • 企业网站怎样做免费百度seo关键词优化推荐
  • 辽宁省住房建设厅网站全网最低价24小时自助下单平台
  • 好看的wordpress博客主题周口seo公司
  • 选择常州网站建设公司宁波seo快速优化教程
  • flash网站的优缺点网站运营推广的方法有哪些
  • 全国各大知名网站2022新闻热点事件简短30条
  • 公司网站的详细步骤站长工具seo优化系统
  • 宁波外贸网站建设做seo必须有网站吗
  • 建设教育协会官网seo规则
  • 微信官方微网站吗关键词首页排名优化
  • 怎么样用html做asp网站竞价托管推广哪家好
  • 阿里云网站建设服务费会计科目企业seo网络推广
  • 怎么在网站上做下载网络舆情监测中心
  • 做网站架构seo快速排名源码
  • 找建网站模板软文撰写公司
  • 北京模板网站开发全包南宁网络推广服务商
  • 随州建设局网站全球搜索引擎排名2021
  • 做相册网站推荐推广app赚钱项目