部署一台新的Rails虚拟机服务器

1. 下载远程控制 Team Viewer
2. 安装 vmware
3. 安装系统 ubuntu-10.04.1-server-i386
4. 备份虚拟机
5. putty 登陆虚拟机
6. 修改root agideo 密码
  sudo passwd *
  root: ****
  agideo: ****

7. 固定IP
  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

8. 修改源
  http://mirrors.163.com
  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get dist-upgrade

9. rvm + ree
  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

10. 安装mysql
  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_%'"

11. 安装rails
   gem install rails -v=2.3.8

你可能感兴趣的:(java,虚拟机,mysql,ubuntu,Rails)