Apache2+Passenger在Ubuntu上部署

先 安裝RVM Ruby Rails

昭蘇網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),昭蘇網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為昭蘇1000+提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的昭蘇做網(wǎng)站的公司定做!

1. Install Apache2

sudo apt-get install apache2


2. Install Passenger 
gem install passenger


3. 將passenger集成進(jìn)Apache 
passenger-install-apache2-module

4. 將步驟3安裝成功后的提示信息加入Apach3 配置文件/etc/apache2/httpd.conf,如果沒有,創(chuàng)建一個 
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
<VirtualHost *:80>
ServerName localhost:80 # !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www/<appname>/public
<Directory /var/www/<appname>/public> # This relaxes Apache security settings.
AllowOverride all # MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>


6. 在apache2.conf 文件中,添加 # Include all the user configurations:
Include httpd.conf
重啟Apache 服務(wù)
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

網(wǎng)頁標(biāo)題:Apache2+Passenger在Ubuntu上部署
URL標(biāo)題:http://bm7419.com/article2/godhic.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、網(wǎng)站策劃電子商務(wù)、移動網(wǎng)站建設(shè)、手機(jī)網(wǎng)站建設(shè)虛擬主機(jī)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)