个人比较建议下载源码编译安装
1 wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
2 tar zxf ruby-2.3.1.tar.gz
3 cd ruby-2.3.1
4 ./configure
5 make
6 sudo make install
7 make clean
2 tar zxf ruby-2.3.1.tar.gz
3 cd ruby-2.3.1
4 ./configure
5 make
6 sudo make install
7 make clean
由于ruby的gem被屏蔽,需要跟换为淘宝搭建的源,
1 gem sources --remove https://rubygems.org/
2 gem sources -a https://ruby.taobao.org/
3 gem sources -l
2 gem sources -a https://ruby.taobao.org/
3 gem sources -l
人的一生只有两万来天,效率至上