Last active
March 11, 2018 03:28
-
-
Save Baozi2/4c7de68d038e4a7259a7f7381d35df70 to your computer and use it in GitHub Desktop.
在Ubuntu16.04配置rails环境/ Setup rails environment in Ubuntu16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install rvm /安装rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl -sSL https://get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
rvm install version | |
# install nginx/安装nginx 要安装最新的nginx版本参照官网 http://nginx.org/en/linux_packages.html#stable | |
sudo apt-get update | |
sudo apt-get install nginx | |
#show nginx version/显示nginx的版本 | |
nginx -v | |
#default config https://www.lowendtalk.com/discussion/5358/nginx-site-enabled-vs-conf-d-conf | |
#setup ssl / 配置ssl https://shimo.im/docs/dwWPiPV8n006yWbC/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment