Over the past few days, I have been tossing over the linux ror production environment, and I have made some documents online, but they are not suitable for Ubuntu7.10server. There will always be some problems. As I was a linux rookie, I had to reinstall linux six or seven times when I had a problem. Today we finally succeeded. Now I plan to write it down to my friend who uses ubuntu7.10server .. First install a pure ubuntu7.10server. 1. Update your system: 1. Use apt
Over the past few days, I have been tossing over the linux ror production environment, and I have made some documents online, but they are not suitable for Ubuntu 7.10 server. There will always be some problems. As I was a linux rookie, I had to reinstall linux six or seven times when I had a problem. Today we finally succeeded. Now I plan to write it down to my friends who use ubuntu 7.10 server ..
First, install a pure ubuntu 7.10 server,
1. Update your system:
1. Use apt-get to update your system to the latest version:
Sudo apt-get update
Sudo apt-get dist-upgrade
In this case, a new kernel may be installed and you are required to restart the kernel.
Ii. install necessary software
1. install OpenSSH for remote management:
Sudo apt-get install openssh-client openssh-server
2. Install Screen to facilitate remote connection and run background programs (see linux tips: use screen to manage your remote sessions)
Sudo apt-get install screen
3. Install Mysql 5.0
Sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
4. install Apache
Sudo apt-get install apache2
5. Install the basic compilation environment, which will be used later when mongrel is installed.
Sudo apt-get install build-essential
6. Install Ruby
Sudo apt-get install ruby1.8 ruby1.8-dev ri1.8 rdoc1.8 irb1.8 libtermios-ruby1.8 libmysql-ruby1.8