meteor安装太慢问题

今天想在centos下安装meteor,但是

curl install.meteor.com | sh

这个命令太不给力了,下载非常之慢,实在不能忍就去https://install.meteor.com/看了看,一眼就能明白是个shell脚本,发现是这个地址下载慢一起的

 

https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/1.2.1/meteor-bootstrap-os.linux.x86_64.tar.gz

用迅雷下载下来 上传到centos服务器,然后开启nginx文件下载功能本地提供该文件下载

 https://install.meteor.com/中的shell下载到本地后命名为install.sh 并修改TARBALL_URL=http://localhost:8090/meteor-bootstrap-os.linux.x86_64.tar.gz

保存后退出

安装前需要创建~/.meteor目录 

执行 sh install.sh

Removing your existing Meteor installation.
Downloading Meteor distribution
######################################################################## 100.0%
Meteor 1.3.4.1 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
To get started fast:
  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor
Or see the docs at:
  docs.meteor.com

当然少不了 nginx的一些配置

 

 location / {

 

                root /usr/work/fuxing;
                autoindex on;
                autoindex_exact_size on;
                autoindex_localtime on;
                index index.html index.htm;

 cd /usr/local/nginx/sbin

./nginx -c nginx/nginx.conf -s reload

ok 




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值