今天想在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