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