操作系统
Linux ubuntu 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04 LTS
1. 修改DNS
sudo gedit /etc/resolv.conf
#设置DNS server(可以设置多个)
nameserver 8.8.8.8
#重新设置网络
sudo /etc/init.d/networking restart
2. 安装 REE
新建一个文件夹,然后 下载REE
wget http://rubyforge.org/frs/download.php/71098/ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb
安装REE
sudo dpkg -i ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb
sudo gem install rails
3.安装mysql
更新源 apt-get update
安装mysql
sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient15-dev
4.安装nginx
进入 /usr/local/bin
执行 sudo passenger-install-nginx-module
5.安装git
sudo apt-get install git-core
6.安装imageMagick
sudo apt-get install ImageMagick
7.创建 git代码库
cd /home/myname
mkdir git
GIT_DIR=tuan.git git init
cd tuan.git
git --bare update-server-info
从本地把项目PUSH上去
git push ssh://[email protected]:22/home/myname/git/tuan.git master
8. 安装自己要用的gem
nokogiri 依赖
apt-get install libxslt-dev libxml2-dev
sudo apt-get install libmysql-ruby libmysqlclient-dev