网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Apache2+Passenger在Ubuntu上部署

先 安装RVM Ruby Rails

昭苏网站建设公司创新互联,昭苏网站设计制作,有大型网站制作公司丰富经验。已为昭苏1000+提供企业网站建设服务。企业网站搭建\成都外贸网站建设要多少钱,请找那个售后服务好的昭苏做网站的公司定做!

1. Install Apache2

sudo apt-get install apache2


2. Install Passenger 
gem install passenger


3. 将passenger集成进Apache 
passenger-install-apache2-module

4. 将步骤3安装成功后的提示信息加入Apach3 配置文件/etc/apache2/httpd.conf,如果没有,创建一个 
LoadModule passenger_module /home/abbuggy/.rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.18/ext/apache2/mod_passenger.so PassengerRoot /home/abbuggy/.rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.18 PassengerRuby /home/abbuggy/.rvm/wrappers/ruby-1.9.2-p320/ruby

5. 配置根目录和端口号,/etc/appach3/httpd.conf 例如 
ServerName localhost

ServerName localhost:80 # !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www//public
/public> # This relaxes Apache security settings.
AllowOverride all # MultiViews must be turned off.
Options -MultiViews


6. 在apache2.conf 文件中,添加 # Include all the user configurations:
Include httpd.conf
重启Apache 服务
service apache2 restart


7. 查看日志 
tail -f /var/log/apache2/access.log
tail -f /var/log/apache2/error.log


8. 修改端口
/etc/apache2/httpd.conf
/etc/apache2/ports.conf


分享名称:Apache2+Passenger在Ubuntu上部署
文章URL:http://bjjierui.cn/article/godhic.html

其他资讯