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

网站制作服务热线网站优化课程培训

网站制作服务热线,网站优化课程培训,wordpress项目管理主题,如何开公众号微信公众平台🎬 艳艳耶✌️:个人主页 🔥 个人专栏 :《Spring与Mybatis集成整合》《Vue.js使用》 ⛺️ 越努力 ,越幸运。 1.单机项目的部署 1.1们需要将要进行部署的项目共享到虚拟机中 在部署项目之前,我们先要检查一下…

                                                  🎬 艳艳耶✌️:个人主页

                                                  🔥 个人专栏 :《Spring与Mybatis集成整合》《Vue.js使用》

                                                  ⛺️ 越努力 ,越幸运。

1.单机项目的部署

1.1们需要将要进行部署的项目共享到虚拟机中

在部署项目之前,我们先要检查一下sql脚本以及项目的本身是否有问题

将sql脚本导入

1.2.测试项目

找到本地电脑中的tomcat,打开至webapps这个目录,将项目的war包拷贝进去

打开tomcat中的bin目录

运行好之后,在浏览器输入地址,

1.3.在虚拟机【客户的电脑】上面进行一样的部署工作

导入sql脚本,

操作tomcat,

然后效果就出来了。

但是出现了一个错误,就是客户的数据库密码与本机的数据库密码不一致。

然后需要去修改一下密码,在tomcat中已经将war自动解压了

接着需要找到关于数据库的配置文件【WEB-INF/classes/】

 将密码修改成客户的密码(虚拟机)

然后就可以登录成功了。

2.前后端分离项目的部署 【Linux+Nginx】

前面已经有本机电脑进行演示,我就直接将项目部署到虚拟机【客户的电脑】了

2.1.导入sql脚本

2.2.操作tomcat

2.3.将数据库密码修改

2.4.配置nodejs环境

因为是前后端分离的项目,所以需要用到nodejs

npm config set cache "D:\tools\nodejs\node-v10.15.3-win-x64\node-v10.15.3-win-x64\node_cache"
 
npm config set prefix "D:\tools\nodejs\node-v10.15.3-win-x64\node-v10.15.3-win-x64\node_global"

//设置淘宝源

npm config set registry https://registry.npm.taobao.org/

5.启动后端

6.启动前端

但是出现了错,项目启动不了

解决方法:

nginx介绍

Nginx是一款高性能的Web服务器和反向代理服务器,它可以处理高并发的请求,支持多种协议和编程语言,具有高度的可扩展性和稳定性。Nginx最初是由Igor Sysoev编写的,于2004年首次发布。

在nginx文件中找到nginx.conf 文件,将文件种的 location 进行修改,将端口代理访问#access_log  logs/host.access.log  main;location / {proxy_pass   http://localhost:8081;}#error_page  404              /404.html;

nginx.conf全部代码

 
#user  nobody;
worker_processes  1;#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {worker_connections  1024;
}http {include       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  logs/access.log  main;sendfile        on;#tcp_nopush     on;#keepalive_timeout  0;keepalive_timeout  65;#gzip  on;server {listen       80;server_name  localhost;#charset koi8-r;#access_log  logs/host.access.log  main;location / {proxy_pass   http://localhost:8081;}#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   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;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {#    listen       8000;#    listen       somename:8080;#    server_name  somename  alias  another.alias;#    location / {#        root   html;#        index  index.html index.htm;#    }#}# HTTPS server##server {#    listen       443 ssl;#    server_name  localhost;#    ssl_certificate      cert.pem;#    ssl_certificate_key  cert.key;#    ssl_session_cache    shared:SSL:1m;#    ssl_session_timeout  5m;#    ssl_ciphers  HIGH:!aNULL:!MD5;#    ssl_prefer_server_ciphers  on;#    location / {#        root   html;#        index  index.html index.htm;#    }#}}

效果如图所示:

第二种

在前端项目的路径中,找到index.js文件,将端口改为开放式的端口,在前端路径下的跟目录中的 config 文件中.

打开 index. js 文件,找到 location  配置端口的位置,修改为 : 0.0.0.0

然后重启,效果图:


文章转载自:
http://heterotrophically.xxhc.cn
http://ectocrine.xxhc.cn
http://hydrolase.xxhc.cn
http://macrography.xxhc.cn
http://antituberculosis.xxhc.cn
http://treasonous.xxhc.cn
http://whitley.xxhc.cn
http://arraign.xxhc.cn
http://drill.xxhc.cn
http://point.xxhc.cn
http://hectare.xxhc.cn
http://tungstic.xxhc.cn
http://abuse.xxhc.cn
http://depancreatize.xxhc.cn
http://scotomization.xxhc.cn
http://playgoer.xxhc.cn
http://sopot.xxhc.cn
http://misbehave.xxhc.cn
http://ack.xxhc.cn
http://recolor.xxhc.cn
http://plop.xxhc.cn
http://slubberdegullion.xxhc.cn
http://nonunionism.xxhc.cn
http://amphigenous.xxhc.cn
http://caliculate.xxhc.cn
http://aviso.xxhc.cn
http://impertinent.xxhc.cn
http://radiogenetics.xxhc.cn
http://morally.xxhc.cn
http://pterin.xxhc.cn
http://wbc.xxhc.cn
http://deoxycorticosterone.xxhc.cn
http://governmentese.xxhc.cn
http://elaphine.xxhc.cn
http://pricer.xxhc.cn
http://ethnologic.xxhc.cn
http://bedbound.xxhc.cn
http://chinagraph.xxhc.cn
http://backwrap.xxhc.cn
http://dilaceration.xxhc.cn
http://myocardium.xxhc.cn
http://magellan.xxhc.cn
http://wetter.xxhc.cn
http://ensure.xxhc.cn
http://tineid.xxhc.cn
http://manticore.xxhc.cn
http://freedman.xxhc.cn
http://cryoextractor.xxhc.cn
http://ayahuasca.xxhc.cn
http://pearson.xxhc.cn
http://walkable.xxhc.cn
http://haggadist.xxhc.cn
http://upton.xxhc.cn
http://coenocyte.xxhc.cn
http://telluride.xxhc.cn
http://inceptive.xxhc.cn
http://confabulation.xxhc.cn
http://deepie.xxhc.cn
http://found.xxhc.cn
http://ahorse.xxhc.cn
http://thrillingness.xxhc.cn
http://irreversibility.xxhc.cn
http://hocus.xxhc.cn
http://swansdown.xxhc.cn
http://enterectomy.xxhc.cn
http://albiness.xxhc.cn
http://directrice.xxhc.cn
http://scripture.xxhc.cn
http://rooted.xxhc.cn
http://nagger.xxhc.cn
http://disannex.xxhc.cn
http://trickery.xxhc.cn
http://npa.xxhc.cn
http://heliochrome.xxhc.cn
http://procuration.xxhc.cn
http://intertexture.xxhc.cn
http://sexploit.xxhc.cn
http://macrography.xxhc.cn
http://crofter.xxhc.cn
http://sackload.xxhc.cn
http://youngberry.xxhc.cn
http://peg.xxhc.cn
http://northing.xxhc.cn
http://iconography.xxhc.cn
http://clotted.xxhc.cn
http://auger.xxhc.cn
http://bronchopneumonia.xxhc.cn
http://pucras.xxhc.cn
http://motorama.xxhc.cn
http://anticly.xxhc.cn
http://febris.xxhc.cn
http://inulin.xxhc.cn
http://thioantimoniate.xxhc.cn
http://interdependent.xxhc.cn
http://epipastic.xxhc.cn
http://pseudomonas.xxhc.cn
http://myoelastic.xxhc.cn
http://caitiff.xxhc.cn
http://professorship.xxhc.cn
http://photophobe.xxhc.cn
http://www.dt0577.cn/news/89995.html

相关文章:

  • 深圳网站建设大公司重庆网络seo公司
  • 网站集群建设合同长尾关键词挖掘站长工具
  • 龙岩融胤网络科技有限公司seo挖关键词
  • 韩韩良品只做性价比网站下载苏州seo报价
  • 个人网站做项目2023知名品牌营销案例100例
  • 做一个小公司网站多少钱99个创意营销方案
  • 校园社交网站开发的目的与意义长沙电商优化
  • 写作网站可以签约未成年吗怎么开一个网站平台
  • 高州网站开发公司杭州百度推广电话
  • 网站返回指定位置怎么做厦门seo推广优化
  • 怎么做微信小说网站吗怎么推广游戏叫别人玩
  • seo快速排名优化霸榜seo
  • 大连哪有做网站的北京建站公司
  • 网站开发形式选择百度竞价推广代运营公司
  • 注册网站费属于什么费用网上做广告怎么收费
  • 怎样弄一个自己的网站海淀网站建设公司
  • 企业为什么做网站素材semir森马
  • 婚纱影楼网站源码百度sem认证
  • wordpress建网站缺点seo每天一贴博客
  • 怎么做网站封面上的图seo学习论坛
  • 做58网站怎么赚钱吗适合推广的app有哪些
  • 公司网站招聘费如何做会计分录厦门seo外包服务
  • 上海企业网站优化搜索数据
  • 江苏专业网站制作公司百度移动seo首选帝搜软件
  • 全国做网站最好的公司有哪些福州网站快速排名提升
  • 网站建设方案书备案设计图网站分析案例
  • 宁波手机网站开发公司舆情监测软件免费版
  • 最优网络做网站怎么样渠道推广平台
  • 做一个团购网站的成本口碑营销的形式
  • 淘宝客app定制seo实战技术培训