ruby安装
#安装ruby组件
yum install ruby ruby-irb ruby-devel rubygems rpm-build -y
#安装Apache服务器
yum install httpd -y
chkconfig httpd on
service httpd start
#安装MySQL数据库
yum install -y mysql-server mysql mysql-devel
chkconfig mysqld on
service mysqld start
mysqladmin -u root password '123456'
#查看组件版本号
httpd -v && ruby -v && echo "gem" `gem -v` && mysql --version
FYI