a, LAMP install
1 yum install httpd mysql-server php php-mysql
2 service httpd start
3 locate iptables
4 yum install mlocate
5 locate iptables
6 updatedb
7 locate iptables
8 vim /etc/sysconfig/iptables
9 service httpd restart
10 service iptables restart
11 ifconfig
12 service mysqld start
13 /usr/bin/mysqladmin -u root password 'yourpw'
14 mysql -u root -p
15 mysql -u root -p
19 chkconfig httpd on
20 chkconfig mysqld on
21 cd /var/www/html/
b, Install development tools
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel
yum install expat-devel gdbm-devel readline-devel sqlite-devel
c, Install python
yum install python-setuptools
d, install Ruby and Ruby on Rails
Download Ruby:
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz
cd ../ruby-1.9.3-p327
sudo ./configure
sudo make
sudo make install
wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.24.tgz
tar zxvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
sudo /usr/local/bin/ruby setup.rb
gem -v
sudo /usr/local/bin/gem install rdoc
sudo /usr/local/bin/gem install rails
No comments:
Post a Comment