1.安装meteor
curl https://install.meteor.com | sh
但是因为meteor被墙,所以使用上面的命令下载非常的慢。需要先下载安装包
https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/1.2.1/meteor-bootstrap-os.linux.x86_64.tar.gz
1.2.1是版本可根据需要的版本自行修改
把https://install.meteor.com/中的shell下载到本地后命名为install.sh 并修改TARBALL_URL的安装包地址。保存后退出
然后执行
./install.sh
运行查看版本号
meteor --version
安装完成!!!
2.下载Meteor包
由于执行meteor时他会自动更新包,但更新包的地址由于被墙下载非常慢还会失败。
所以修改更改hosts
1).编辑hosts
vi /etc/hosts
在hosts中添加地址54.192.225.217 warehouse.meteor.com,保存退出
2).使其立即生效
souce /etc/hosts
然后下载包速度就会很快了!!!