Fedora 9 下使用apache+mongrel+rails轻松架设ROR应用
来源:互联网 发布:网易云课堂软件 编辑:程序博客网 时间:2024/05/01 12:14
1. 安装 ruby
- [root@www ~]# yum install ruby* -y
2. 更新ruby
- [root@www ~]# gem update --system
- [root@www ~]# gem update
- [root@www~]gem install rails –include-dependencies
- [root@www ~]# gem install ruby-debug ruby-debug-base sqlite3-ruby
- Successfully installed ruby-debug-0.10.2
- Building native extensions. This could take a while...
- Successfully installed ruby-debug-base-0.10.2
- Building native extensions. This could take a while...
- Successfully installed sqlite3-ruby-1.2.4
- 3 gems installed
- Installing ri documentation for ruby-debug-0.10.2...
- Installing ri documentation for ruby-debug-base-0.10.2...
- Installing ri documentation for sqlite3-ruby-1.2.4...
- Installing RDoc documentation for ruby-debug-0.10.2...
- Installing RDoc documentation for ruby-debug-base-0.10.2...
- Installing RDoc documentation for sqlite3-ruby-1.2.4...
- [root@www ~]#
方法同4
- [root@www ~]# gem install mongrel
- [root@www ~]# yum install mysql*
- [root@www ~]# gem install mysql
7. 安装 & 配置Apache
- [root@www~]yum install httpd
- Listen 8080
- ProxyRequests Off
- <Proxy balancer://myCluster>
- BalancerMember http://127.0.0.1:3001
- BalancerMember http://127.0.0.1:3002
- #BalancerMember http://127.0.0.1:3003
- #BalancerMember http://127.0.0.1:3004
- #BalancerMember http://127.0.0.1:3005
- </Proxy>
- <VirtualHost *:8080>
- ServerName www.laiyunqing.com:8080
- DocumentRoot /var/www/beeblio/public
- ProxyPass /image !
- ProxyPass /stylesheets !
- ProxyPass /javascripts !
- ProxyPass / balancer://myCluster/
- ProxyPassReverse / balancer://myCluster/
- ProxyPreserveHost on
- </VirtualHost>
mongrel_rails start -e production -p 3001 -d -c /var/www/beeblio/ -P /var/www/beeblio/log/mongrel-3001.pid
mongrel_rails start -e production -p 3001 -d -c /var/www/beeblio/ -P /var/www/beeblio/log/mongrel-3002.pid
...
8. 重启apache,试试地址栏中输入http://localhost:8080,该工作了吧?
- [root@www~]service httpd restart
- Fedora 9 下使用apache+mongrel+rails轻松架设ROR应用
- apache+mongrel+rails+linux轻松架设服务器
- 用mongrel + apache启动rails应用
- Apache+Mongrel上host多个rails应用
- 搭建Apache + Mongrel 最佳RoR Web服务器平台
- 搭建Apache + Mongrel 最佳RoR Web服务器平台
- Nginx+mongrel+rails+ubuntu部署应用
- Rails Fedora Apache Deployment
- install mongrel for rails and apache http for load balance
- 使用Capistrano部署apache+mongrel cluster
- [0001] CentOS7下部署nginx+mongrel+rails环境
- Rails+Lighttpd+Mongrel
- Ubuntu下Apache服务器安装以及使用Passenger插件部署Rails应用
- 使用Apache架设代理服务器
- 使用Apache架设代理服务器
- window + ruby + rails + netbeans + mongrel
- rails 下使用 Capistrano 来发布应用
- 服务器应用:Fedora 8下Apache配置与管理
- 将24位BMP真彩图转换成BMP灰度图
- 浏览器还有这功能,强!!
- 字符编码问题
- CodeIgniter的几个问题
- 从装饰模式到aop
- Fedora 9 下使用apache+mongrel+rails轻松架设ROR应用
- firefox 网页部分图片无法显示
- FTP命令详解
- wince5.0 在xp64下安装
- 一小时asp入门
- 数据库设计第一范式
- 『转]用于刷新网页的javascript函数
- javascript定时器
- 是不我也应该写点自己的想法