部署一台新的Rails虚拟机服务器
1. 下载远程控制 Team Viewer
2. 安装 vmware
3. 安装系统 ubuntu-10.04.1-server-i386
4. 备份虚拟机
5. putty 登陆虚拟机
6. 修改root agideo 密码
sudo passwd * root: **** agideo: ****
sudo vi /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.* netmask 255.255.255.0 gateway 192.168.0.1
http://mirrors.163.com sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
sudo apt-get install curl sudo apt-get install git-core bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) rvm update && rvm reload vi ~/.bashrc && source "$HOME/.rvm/scripts/rvm" sudo apt-get install build-essential bison libreadline5 libreadline-dev zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev autoconf rvm install ree
sudo apt-get install mysql-server mysql-client libmysql-ruby libmysqlclient-dev gem install mysql
sudo vi /etc/mysql/my.cnf [mysqld] default-character-set=utf8 mysql -uroot -p -e "SHOW VARIABLES LIKE 'character_set_%'"
gem install rails -v=2.3.8