- 浏览: 2550816 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
ubuntu9.04下部署mongrel
完全参考以前记录的8.04的文档来安装的,但是执行中遇到些问题,一一记录下来备查。
1.升级系统
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo dpkg --configure -a
2.安装ruby on rails
apt-get install ruby
apt-get install rubygems
gem update --system (先更新gem再装rails否则出错)
报错如下:
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
Unfortunately the apt-get update does not help at all.
解决方法:
gem install rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems
安装继续
升级后命令变成了gem1.8了,使用起来不习惯,所以加个软链接
ln -s /usr/bin/gem1.8 /usr/bin/gem
注意,这次/usr/bin下面已经有个文件夹叫gem了,不晓得是什么版本,先rm /usr/bin/gem了,然后再加软链接
安装rails
gem install rails --include-dependencies
apt-get install imagemagick
apt-get install libmagick9-dev ruby1.8-dev
gem install rmagick
报错:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2/ext/RMagick/gem_make.out
解决办法:
先安装
sudo apt-get install ruby1.8-dev ‘
再次报错:
Can't install RMagick 2.9.2. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2/ext/RMagick/gem_make.out
解决办法,看来是少了某选项。找找加上:
命令:apt-get install libmagick9-dev
继续安装
gem install mongrel
gem install mongrel_cluster
mv redmine-0.7.3 redmine
把名字改掉后再运行
mongrel_rails cluster::configure -e production -p 8000 -a 0.0.0.0 -N 2 -c /usr/local/redmine/
报错:
root@jarod-ubuntu9:/usr/local# mongrel_rails cluster::configure -e production -p 8000 -a 0.0.0.0 -N 2 -c /usr/local/redmine/
!!! Path to config file not valid: config/mongrel_cluster.yml
cluster::configure reported an error. Use mongrel_rails cluster::configure -h to get help.
解决办法:
chmod a+x mongrel_cluster.yml
在终端下输入以下命令启动Mongrel:
代码:
/usr/local/redmine/mongrel_rails cluster::start
要停止则输入:
代码:
/usr/local/redmine/mongrel_rails cluster::stop
2、配置apache转发
启动mod_proxy模块.
cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/proxy_balancer.load proxy_balancer.load
sudo ln -s ../mods-available/proxy_http.load proxy_http.load (配置转发JBOSS已加)
sudo ln -s ../mods-available/proxy.load proxy.load (配置转发JBOSS已加)
sudo ln -s ../mods-available/proxy.conf proxy.conf (配置转发JBOSS已加)
修改proxy.conf文件
vi /etc/apache2/mods-available/proxy.conf
#Allow from .example.com
改为
Allow from all
修改 /etc/apache2/apache2.conf 文件(默认是在最后一行):
Include /etc/apache2/sites-enabled/
改为:
#Include /etc/apache2/sites-enabled/
然后在/etc/apache2/httpd.conf里添加以下部分:
代码:
<Proxy balancer://mongrel>
BalancerMember http://192.168.50.90:8000
BalancerMember http://192.168.50.90:8001
</Proxy>
<VirtualHost *:80>
ProxyPass / balancer://mongrel/
ProxyPassReverse / balancer://mongrel/
</VirtualHost>
重启apache2让设置生效
/etc/init.d/apache2 restart
完全参考以前记录的8.04的文档来安装的,但是执行中遇到些问题,一一记录下来备查。
1.升级系统
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install
sudo dpkg --configure -a
2.安装ruby on rails
apt-get install ruby
apt-get install rubygems
gem update --system (先更新gem再装rails否则出错)
报错如下:
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.
Unfortunately the apt-get update does not help at all.
解决方法:
gem install rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems
安装继续
升级后命令变成了gem1.8了,使用起来不习惯,所以加个软链接
ln -s /usr/bin/gem1.8 /usr/bin/gem
注意,这次/usr/bin下面已经有个文件夹叫gem了,不晓得是什么版本,先rm /usr/bin/gem了,然后再加软链接
安装rails
gem install rails --include-dependencies
apt-get install imagemagick
apt-get install libmagick9-dev ruby1.8-dev
gem install rmagick
报错:
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2/ext/RMagick/gem_make.out
解决办法:
先安装
sudo apt-get install ruby1.8-dev ‘
再次报错:
Can't install RMagick 2.9.2. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.9.2/ext/RMagick/gem_make.out
解决办法,看来是少了某选项。找找加上:
命令:apt-get install libmagick9-dev
继续安装
gem install mongrel
gem install mongrel_cluster
mv redmine-0.7.3 redmine
把名字改掉后再运行
mongrel_rails cluster::configure -e production -p 8000 -a 0.0.0.0 -N 2 -c /usr/local/redmine/
报错:
root@jarod-ubuntu9:/usr/local# mongrel_rails cluster::configure -e production -p 8000 -a 0.0.0.0 -N 2 -c /usr/local/redmine/
!!! Path to config file not valid: config/mongrel_cluster.yml
cluster::configure reported an error. Use mongrel_rails cluster::configure -h to get help.
解决办法:
chmod a+x mongrel_cluster.yml
在终端下输入以下命令启动Mongrel:
代码:
/usr/local/redmine/mongrel_rails cluster::start
要停止则输入:
代码:
/usr/local/redmine/mongrel_rails cluster::stop
2、配置apache转发
启动mod_proxy模块.
cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/proxy_balancer.load proxy_balancer.load
sudo ln -s ../mods-available/proxy_http.load proxy_http.load (配置转发JBOSS已加)
sudo ln -s ../mods-available/proxy.load proxy.load (配置转发JBOSS已加)
sudo ln -s ../mods-available/proxy.conf proxy.conf (配置转发JBOSS已加)
修改proxy.conf文件
vi /etc/apache2/mods-available/proxy.conf
#Allow from .example.com
改为
Allow from all
修改 /etc/apache2/apache2.conf 文件(默认是在最后一行):
Include /etc/apache2/sites-enabled/
改为:
#Include /etc/apache2/sites-enabled/
然后在/etc/apache2/httpd.conf里添加以下部分:
代码:
<Proxy balancer://mongrel>
BalancerMember http://192.168.50.90:8000
BalancerMember http://192.168.50.90:8001
</Proxy>
<VirtualHost *:80>
ProxyPass / balancer://mongrel/
ProxyPassReverse / balancer://mongrel/
</VirtualHost>
重启apache2让设置生效
/etc/init.d/apache2 restart
发表评论
-
Diskspace Check and Fix
2020-04-01 00:28 416Diskspace Check and Fix First ... -
Play Raspberry Pi(6)Upgrade and Docker
2016-06-17 00:27 483Play Raspberry Pi(6)Upgrade and ... -
VirtualBox Network
2015-06-10 11:48 781VirtualBox Network Last one ye ... -
Debian System(2)Debian Desktop
2015-04-02 03:51 732Debian System(2)Debian Desktop ... -
Debian System(1)Java and NodeJS Env
2015-03-29 06:27 1032Debian System(1)Java and NodeJS ... -
Play Raspberry Pi(3)Disable the logging on squid
2015-01-07 00:13 1137Play Raspberry Pi(3)Disable th ... -
Ubuntu Rebuild Environment(1)
2014-07-09 22:25 1319Ubuntu Rebuild Environment(1)Re ... -
Forget MySQL Root Password
2011-09-15 14:29 1555Forget MySQL Root Password 1. ... -
Rails3 and Ruby1.9.2 on Ubuntu11.04
2011-08-20 10:18 3379Rails3 and Ruby1.9.2 on Ubuntu1 ... -
Rails Deployment(1)modrails
2011-08-17 13:44 1234Rails Deployment(1)modrails 1. ... -
Install Ubuntu on Win7 64 bit System
2011-07-19 23:56 1960Install Ubuntu on Win7 64 bit S ... -
Review Board on Ubuntu System(II)Script and Server configuration
2011-07-06 13:52 2546Review Board on Ubuntu System(I ... -
Review Board on Ubuntu System(I)Installing and create sites
2011-07-05 15:07 1695Review Board on Ubuntu System(I ... -
Problem in Wireshark on Ubuntu
2011-06-01 20:04 1718Problem in Wireshark on Ubuntu ... -
Install Anti-Virus Software on Ubuntu
2011-05-11 12:46 1649Install Anti-Virus Software on ... -
Update Ubuntu to 11.04
2011-05-05 13:11 1221Update Ubuntu to 11.04 After I ... -
Using Apache ProxyPass on Ubuntu
2011-04-22 14:31 1860Using Apache ProxyPass on Ubunt ... -
Udpate my ip on ubuntu system
2011-04-17 12:39 1325Udpate my ip on ubuntu system ... -
Ubuntu useful softwares
2011-04-12 22:57 1529Ubuntu useful softwares BT too ... -
Start the applications on Ubuntu
2011-04-12 14:11 1257Start the applications on Ubunt ...
相关推荐
- 完成这一步后,Ubuntu将会自动挂载VMware提供的光盘映像至`/mnt/cdrom/`目录下。 3. **切换到root用户并准备安装文件**: - 使用命令行切换到root用户:`sudo su -` - 创建一个新的目录用于存放安装文件:`...
通过这种方式,你可以在不使用物理媒介的情况下,直接从硬盘安装Ubuntu 9.04。虽然现代的Ubuntu版本推荐使用更简便的USB启动盘安装,但在没有USB设备或网络环境的条件下,硬盘安装依然是一种实用的方法。
在本篇文章中,我们将深入探讨如何安装Ubuntu 9.04操作系统,这是一款基于Debian的Linux发行版,因其稳定性、易用性和强大的开源社区支持而受到广大用户的喜爱。Ubuntu 9.04,代号Jaunty Jackalope,发布于2009年,...
【标题】:“Ubuntu 9.04安装全体验” 这篇博客详细记录了Ubuntu 9.04(代号Jaunty Jackalope)的操作系统安装过程,为用户提供了一个全面的指南。Ubuntu 9.04是Ubuntu Linux发行版的一个重要版本,发布于2009年,...
对于学习ubuntu 9.04的童鞋很有用滴
Ubuntu 9.04 ISPconfig设置
### Ubuntu 9.04 更新源配置详解 #### 背景介绍 Ubuntu 9.04(代号Jaunty Jackalope)是2009年4月发布的Ubuntu版本之一,它提供了许多功能改进和性能提升。随着时间的推移,用户可能会遇到软件包过时或下载速度慢的...
Ubuntu-9.04-1gb.7z,是colinux下的Ubuntu 9.04的镜像文件~
### 新手在Windows环境下通过硬盘安装Ubuntu 9.04 的详细步骤 #### 知识点一:理解Ubuntu 9.04与Windows双系统安装背景 - **Ubuntu 9.04** 是一款基于Debian的开源操作系统,提供了一个用户友好的图形界面以及丰富...
OpenERP Installing Ubuntu9.04
标题中的“ubuntu9.04翻译软件stardict词典”指的是在Ubuntu 9.04操作系统上使用的Stardict翻译软件。Stardict是一款开源的、强大的词典和翻译工具,它支持多种语言和词典格式,允许用户在Linux环境下进行高效的词汇...
ubuntu 9.04 安装配置优化全记录
在Ubuntu 9.04操作系统中,中文输入法的安装对于使用中文的用户来说是必不可少的。这个压缩包提供了一套完整的解决方案,包含了多种输入法引擎和必要的支持库,以确保用户能够在系统中流畅地输入中文。以下是关于这...
在Ubuntu 9.04操作系统下搭建Qt 4.5开发环境是一项重要的任务,特别是对于进行软件开发的人员而言。Qt是一个跨平台的应用程序开发框架,广泛用于创建图形用户界面和其他软件。这篇文档将指导您逐步完成在Ubuntu 9.04...
教程名称:Ubuntu 9.04 Linux视频教程23讲课程目录:【】01_简介【】02_安装篇_CD【】03_安装篇_Live.USB【】04_安装篇_LiveUSB安装【】05_安装篇_wubi安装【】06_基本命令篇_目录结构【】07_基本命令篇_ls【】08_...
在Ubuntu 9.04操作系统环境下,搭建Qt 4.5开发环境主要涉及以下几个关键步骤和相关知识点: 1. **安装基础开发工具**:首先,你需要确保系统具有基本的开发环境,这通常包括编译器和其他必要的库。通过运行`sudo ...