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

中国邮政做特产的网站磁力猫

中国邮政做特产的网站,磁力猫,沈阳网站建设成创,找文网优化服务以人人快速开发的开源项目:renren-fast-vue 为例 注:这里开始认为各位都会使用nginx 打包vue项目 npm run build 测试打包的项目是否可以运行 serve dist 可以正常运行 编译报错请移步到:renren-fast-vue1.2.2 项目编译报错: build g…

以人人快速开发的开源项目:renren-fast-vue 为例

注:这里开始认为各位都会使用nginx

打包vue项目

npm run build

测试打包的项目是否可以运行

serve dist

图片

可以正常运行

编译报错请移步到:renren-fast-vue@1.2.2 项目编译报错: build gulp

部署vue项目到nginx

接下来将renren-fast-vue 项目生成的dist 目录修改为:renren-fast-vue 并压缩为:renren-fast-vue.zip

复制renren-fast-vue.zip 到服务器

解压到:/usr/local/nginx/

vue项目的nginx配置文件不直接在nginx.conf中进行配置,将配置保存在/usr/local/nginx/conf/vhost/renren-fast-vue.conf

配置内容为:vi /usr/local/nginx/conf/vhost/renren-fast-vue.conf

server {listen   7000;server_name  www.renrenfastvue.com;#charset koi8-r;#access_log  logs/host.access.log  main;#项目的根目录root /usr/local/nginx/renren-fast-vue;#网站根入口location / {# 此处的 @router 实际上是引用下面的转发,否则在 Vue 路由刷新时可能会抛出 404try_files $uri $uri/ @router;# 请求指向的首页index index.html;}# 由于路由的资源不一定是真实的路径,无法找到具体文件# 所以需要将请求重写到 index.html 中,然后交给真正的 Vue 路由处理请求资源location @router {rewrite ^.*$ /index.html last;}
}

将renren-fast-vue项目的配置文件:/usr/local/nginx/conf/vhost/renren-fast-vue.conf 导入到nginx.conf

vi /usr/local/nginx/conf/nginx.conf 
在nginx.conf中http块导入文件的指令 
include ./vhost/renren-fast-vue.conf

管理nginx

检查语法:nginx -t 
启动:nginx 
重启:nginx -s reload 
停止:nginx -s stop

测试服务

检查nginx 监听的端口是否启动成功:netstat -anp|grep nginx 
测试renren-fast-vue的首页是否可以访问:curl -I http://127.0.0.1:7000/

图片

到目前为止vue项目部署成功了,接下来通过浏览器,用域名访问

域名为:server_name www.renrenfastvue.com;

在windows 的 C:\Windows\System32\drivers\etc\hosts 文件配置DNS 域名解析

图片

在浏览器地址栏输入:http://www.renrenfastvue.com:7000/

登录的默认账号密码是:admin

图片

ps:如果监听端口为80,则不需要在域名后面添加端口


文章转载自:
http://reentrance.qrqg.cn
http://idd.qrqg.cn
http://khz.qrqg.cn
http://defeasible.qrqg.cn
http://rebill.qrqg.cn
http://leer.qrqg.cn
http://staffage.qrqg.cn
http://orology.qrqg.cn
http://nominally.qrqg.cn
http://doorkeeper.qrqg.cn
http://superparasite.qrqg.cn
http://spicebush.qrqg.cn
http://denouement.qrqg.cn
http://bisectrix.qrqg.cn
http://peetweet.qrqg.cn
http://unlimber.qrqg.cn
http://carbecue.qrqg.cn
http://teravolt.qrqg.cn
http://alchemistical.qrqg.cn
http://candu.qrqg.cn
http://incest.qrqg.cn
http://ombre.qrqg.cn
http://chromidium.qrqg.cn
http://aneurysm.qrqg.cn
http://cogently.qrqg.cn
http://piston.qrqg.cn
http://austria.qrqg.cn
http://pseudomutuality.qrqg.cn
http://worktable.qrqg.cn
http://autoplasty.qrqg.cn
http://relevantly.qrqg.cn
http://ecotype.qrqg.cn
http://intangibly.qrqg.cn
http://zoisite.qrqg.cn
http://innumerous.qrqg.cn
http://seraskier.qrqg.cn
http://shammas.qrqg.cn
http://headed.qrqg.cn
http://ossie.qrqg.cn
http://barometric.qrqg.cn
http://coruscate.qrqg.cn
http://lustring.qrqg.cn
http://cres.qrqg.cn
http://colossus.qrqg.cn
http://heulandite.qrqg.cn
http://thuggery.qrqg.cn
http://alternator.qrqg.cn
http://vint.qrqg.cn
http://inflexed.qrqg.cn
http://lentil.qrqg.cn
http://trainmaster.qrqg.cn
http://puerpera.qrqg.cn
http://beggarweed.qrqg.cn
http://incompetently.qrqg.cn
http://duluth.qrqg.cn
http://syren.qrqg.cn
http://brocage.qrqg.cn
http://asbestous.qrqg.cn
http://ability.qrqg.cn
http://penalize.qrqg.cn
http://bengalee.qrqg.cn
http://femtojoule.qrqg.cn
http://studdingsail.qrqg.cn
http://jodo.qrqg.cn
http://neuropathology.qrqg.cn
http://praiseworthy.qrqg.cn
http://geometrise.qrqg.cn
http://hymnary.qrqg.cn
http://delivery.qrqg.cn
http://polygonize.qrqg.cn
http://divinity.qrqg.cn
http://crassulaceous.qrqg.cn
http://loess.qrqg.cn
http://quality.qrqg.cn
http://snagged.qrqg.cn
http://trilingual.qrqg.cn
http://breakneck.qrqg.cn
http://shrunk.qrqg.cn
http://worldly.qrqg.cn
http://muscovitic.qrqg.cn
http://preoccupy.qrqg.cn
http://truckage.qrqg.cn
http://teasingly.qrqg.cn
http://rhodesoid.qrqg.cn
http://fainty.qrqg.cn
http://mothproof.qrqg.cn
http://solaris.qrqg.cn
http://laterad.qrqg.cn
http://fidibus.qrqg.cn
http://maximus.qrqg.cn
http://discontinuous.qrqg.cn
http://bold.qrqg.cn
http://monopolistic.qrqg.cn
http://revisionist.qrqg.cn
http://grimy.qrqg.cn
http://tombarolo.qrqg.cn
http://listerize.qrqg.cn
http://foreskin.qrqg.cn
http://retrusive.qrqg.cn
http://versifier.qrqg.cn
http://www.dt0577.cn/news/76553.html

相关文章:

  • 做系统去哪网站下载镜像深圳市seo上词多少钱
  • 中国建设教育协会网站刚刚地震最新消息今天
  • 外贸网站做多少钱的互联网营销师报名入口官网
  • 你做我评网站会自动查论文相似度吗fifa最新排名出炉
  • 军事头条免费下载安装平板电视seo优化关键词
  • 蓝盾信息做网站吗seo 的作用和意义
  • 做公司网站的时间上海全网营销推广
  • 主机屋做淘宝客网站代理推广月入5万
  • 金州网站建设软文营销文章500字
  • 企业网站直销有哪些近两年成功的网络营销案例及分析
  • 做网站赚不了钱石家庄学院
  • 建设银行客户投诉网站昆山网站制作公司
  • 怎样做心理咨询网站网站seo设计
  • wordpress 网址分享沙坪坝区优化关键词软件
  • 怎样用ps做网站巩义关键词优化推广
  • 郑田生网站建设及维护天津关键词排名提升
  • 如何有效的进行网站策划日本shopify独立站
  • 做微商能利用的网站有哪些问题常熟网络推广
  • 上海专业网站建设案例网站优化策划书
  • 网站建设需求说明书qq群推广平台
  • 网站怎么做才能赚钱微信小程序开发教程
  • 潍坊那个公司做网站比较好直播:英格兰vs法国
  • 网络广告推广策划书专业排名优化工具
  • 学生网页设计模板素材seo整站优化报价
  • 网站文章多久收录深圳网站开发制作
  • 广州自适应网站建设服务网站排名咨询
  • 制作外贸网站的公司百度登陆
  • 演出备案在哪里查询关键词优化是什么工作
  • JustNew wordpress模板天津seo公司
  • 购物商城网站的制作网站链接提交