环境:CentOS release 6.3 (Final) 64位操作系统
1,先安装软件源
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
安装最新的ruby源
wget -q -O - http://www.atomicorp.com/installers/atomic |sh
2.yum安装软件
yum install ruby ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc rubygems
yum install git -y ###为了直接拉下来webistrano的文件
yum install mysql.x86_64 mysql-devel.x86_64 mysql-server.x86_64 -y ##安装mysql
【启动mysql service mysqld restart
/usr/bin/mysqladmin -u root password '123'
mysql -uroot -p123 -e "create database webis;" 创建用于webistrano的数据库】
3.gem安装软件
gem install capistrano
(装一个就同时安装上7个软件 highline-1.6.15。jruby-pageant-1.1.1。net-ssh-2.6.0。net-sftp-2.0.5。net-scp-1.0.4。net-ssh-gateway-1.1.0。capistrano-2.13.4)
gem install rails
(同时安装31个软件i18n-0.6.1 multi_json-1.3.6 activesupport-3.2.8 builder-3.0.3 activemodel-3.2.8 rack-1.4.1 rack-cache-1.2 rack-test-0.6.2 journey-1.0.4 hike-1.2.1 tilt-1.3.3 sprockets-2.1.3 erubis-2.7.0 actionpack-3.2.8 arel-3.0.2 tzinfo-0.3.33 activerecord-3.2.8 activeresource-3.2.8 mime-types-1.19 polyglot-0.3.3 treetop-1.4.11 mail-2.4.4 actionmailer-3.2.8 rake-0.9.2.2 rack-ssl-1.3.2 thor-0.16.0 json-1.7.5 rdoc-3.12 railties-3.2.8 bundler-1.2.1 rails-3.2.8)
gem install bundler -v 1.0.22
gem install open4 exception_notification
4.获得webistrano
git clone https://github.com/peritor/webistrano.git
5.bundler install 查看返回正常信息,就可以通过阅读webistrano的README进行安装webistrano啦!!
转载于:https://blog.51cto.com/ygongzi/1027041