ubuntu Server download address
Ubuntu Server 9.0 latest download: http://ubuntu.srt.cn/ubuntu-releases/karmic/ubuntu-9.10-server-i386.iso
1. Install ubuntu
The installation process is relatively simple. For some novices, I will have a diagram explaining the entire installation process of Ubuntu Server later. Please wait for updates.
2. Configure the network
You can configure the network during installation. During the installation process, you can also configure the network by modifying the configuration file. There is a dedicated article to explain how to configure the network.
3. Update system
sudo apt-get update
4. Install the remote connection service ssh and secureCRT to operate. The default connection port number is: 22.
sudo apt-get install openssh-server openssh-clientsudo /etc/init.d/ssh restart
Stop ssh: /etc/init.d/ssh stop
Start ssh: /etc/init.d/ssh start
Restart ssh: /etc/init.d/ssh restart
5. Install some common commands necessary, emacs, etc.
sudo apt-get install emacssudo apt-get install gccsudo apt-get install htopsudo apt-get install screen #Control background program
If you want to interrupt apt-get
sudo killall apt-get
If not found:
sudo apt-cache search
6. Install svn
sudo apt-get install subversion
svn co svn://.... #svn address
7. Install ruby
sudo apt-get install ruby-fullsudo apt-get install ruby1.8-dev#Check: ruby -v
8. Install rubygems
sudo apt-get install rubygems #Check: gem -v
9. Install rails
sudo gem install -v=2.3.4 rails #Specify the required rails version
10. Install mysql
sudo apt-get install libmysqlclient15-devsudo apt-get install libmysql-rubysudo gem install mysql
11. Install lighttpd
sudo apt-get install lighttpd
12. Install plug-ins
Install all plug-ins that need to be installed here.
Install rmagick
sudo apt-get install librmagick-ruby
Install paginate: gem install will_paginate
... ...
The ROR operating environment has been configured.
next work
1. Copy a copy of the project to the server through svn co svn://...
2. Modify the configuration file
3. Data migration
4. Test and run