Redmine 安装配置

1. 安装Redmine 所需的依赖

首先安装 yaml

wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz

tar zxvf yaml-0.1.4.tar.gz

cd yaml-0.1.4

./configure

make && make install

2. 安装RVM

curl -L https://get.rvm.io | bash -s stable

---------------------------------------------------------------------

报错   gpg: 无法检查签名:没有公钥

执行:

curl -sSL https://rvm.io/mpapis.asc | gpg --import

执行完毕,再执行一次上面的

---------------------------------------------------------------------

载入RVM环境并获取需要的支持安装包

source /etc/profile.d/rvm.sh

rvm requirements

3. 利用rvm安装 Ruby 1.9.3 并设为默认

rvm install 1.9.3

rvm use 1.9.3 --default

4. 安装Redmine  下载最新版本的 redmine

wget http://www.redmine.org/releases/redmine-2.4.1.tar.gz

tar zxvf redmine-2.4.1.tar.gz

mkdir /opt/htdocs

mv redmine-2.4.1 /opt/htdocs/redmine

5. 安装 Bundler   可利用ruby 的 gem 来安装

gem install bundler

6. 安装gem 依赖包

cd /opt/htdocs/redmine

bundle install --without development test rmagick

---------------------------------------------------------------------------

出现如下错误:

An error occurred while installing json (1.8.2), and Bundler cannot continue.

Make sure that `gem install json -v '1.8.2'` succeeds before bundling.

执行:

gem install json -v '1.8.2'

出现如下错误

Building native extensions.  This could take a while...

ERROR:  Error installing json:

ERROR: Failed to build gem native extension.

安装: yum -y install ruby-devel

---------------------------------------------------------------------------

7. 安装mysql2 的依赖包

gem install mysql2 -v '0.3.11' -- --with-mysql-config=/opt/local/mysql/bin/mysql_config

8. 创建redmine 所需的数据库

create database redmine character set utf8;

grant all privileges on redmine.* to 'redmine'@'localhost' identified by '123456';

9. 配置Redmine 数据库连接

cd /opt/htdocs/redmine/config

cp database.yml.example database.yml

vi database.yml

========================================================================

production:

adapter: mysql2

database: redmine

host: localhost

username: redmine

password: "123456"

encoding: utf8

development:

adapter: mysql2

database: redmine_development

host: localhost

username: redmine

password: "123456"

encoding: utf8

# Warning: The database defined as "test" will be erased and

# re-generated from your development database when you run "rake".

# Do not set this db to the same as development or production.

test:

adapter: mysql2

database: redmine_test

host: localhost

username: redmine

password: "123456"

encoding: utf8

==========================================================================

10. 创建sessin存储脚本

rake generate_secret_token

------------------------------------------------------------------------------------------

出现报错

Could not find gem 'rails (= 3.2.15) ruby' in the gems available on this machine.

Run `bundle install` to install missing gems.

------------------------------------------------------------------------------------------

首先执行 bundle update

-------------------------------------------------------------------------------------------------------------------------------------------

再次报错

Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Connection timed out - connect(2) (https://rubygems.org/gems/tilt-1.4.1.gem)

An error occurred while installing tilt (1.4.1), and Bundler cannot continue.

Make sure that `gem install tilt -v '1.4.1'` succeeds before bundling.

-------------------------------------------------------------------------------------------------------------------------------------------

单独执行 gem install tilt -v '1.4.1'

再次执行 bundle update  直到完成

Your bundle is updated!

11. 创建数据库结构:

RAILS_ENV=production rake db:migrate

12. 插入默认的配置数据:

RAILS_ENV=production rake redmine:load_default_data

13. 启动Redmine

ruby /opt/htdocs/redmine/script/rails server webrick -e production >/dev/null 2>> redmine.log &

CentOS 6.4 x64 安装 配置 Redmine 2.4.1的更多相关文章

  1. CentOS 6.5 x64 安装Tomcat8 并配置两个Tomcat8

    1.首先,安装tomcat的前提是已经配置好jdk环境变量,若没配好可以参考我的上一篇博文:CentOS 6.5 x64安装jdk8,当然也可以通过网络搜索安装步骤~~ 2.下载: 可以通过官网下载: ...

  2. CentOS 6.5 x64 安装jdk8

    1.去官网下载Linux版本的jdk8,我下载的是下面这个 2.下载xftp和xshell来操纵服务器,可以搜索一下下载安装即可,安装完成后,打开xshell,新建链接为你的云服务器的IP地址和密码, ...

  3. Centos 7环境下安装配置Hadoop 3.0 Beta1简记

    前言 由于以前已经写过一篇Centos 7环境下安装配置2.8的随笔,因此这篇写得精简些,只挑选一些重要环节记录一下. 安装环境为:两台主机均为Centos 7.*操作系统,两台机器配置分别为: 主机 ...

  4. 阿里云服务器 ECS 部署lamp:centos+apache+mysql+php安装配置方法 (centos7)

    阿里云服务器 ECS 部署lamp:centos+apache+mysql+php安装配置方法 (centos7) 1.效果图 1 2. 部署步骤 1 1. mysql安装附加(centos7) 7 ...

  5. CentOS 6.6 x64安装TensorFlow

    CentOS 6.6 x64安装TensorFlow升级Python到2.7(系统自带Python版本为2.6) // 安装编译工具 $ yum -y install gcc automake aut ...

  6. Windows和Centos下Docker的安装配置

    Windows和Centos下Docker的安装配置 windows环境下的安装(win10) 在Windows系统上需要利用toolbox来安装Docker,现在 Docker 有专门的 Win10 ...

  7. CentOS下使用yum安装配置和使用svn

    安装说明 系统环境:CentOS-6.3安装方式:yum install (源码安装容易产生版本兼容的问题)安装软件:系统自动下载SVN软件 检查已安装版本 ? 1 2 3 4 5 6 7 8 9 1 ...

  8. CentOS 7 Xinetd服务安装配置

    CentOS 7 Xinetd服务安装配置 目录 CentOS 7 Xinetd服务安装配置 一.Linux守护进程与初始化进程 1. 什么是守护进程 2. 什么是初始化 二.Linux独立启动进程和 ...

  9. CentOS 6.5 yum安装配置lnmp服务器(Nginx+PHP+MySQL)

    以下全部转载于  http://blog.csdn.net/lane_l/article/details/20235909 本人于今晚按照该文章使用centos 6.7 64bit安装成功,做个备份, ...

随机推荐

  1. hibernate ——联合主键

    接上一篇博客:http://www.cnblogs.com/tengpan-cn/p/5551323.html 主键类不需要写任何注解,表对象类使用@IdClass注解 在表对象类前面加@IdClas ...

  2. undefined与null

    undefined 声明的变量尚未初始化 null 对象尚未存在 eg: var a; console.log(typeof a); 输出undefined var b= document.getEl ...

  3. 【搜索 回溯】 zoj 1002

    题意:一些机枪彼此不能在同一行和同一列,但是由于有墙的阻隔,能保证子弹无法穿透,即可以同行同列,现问如果说给了一个n*n(n<=4)的矩阵,并给出了墙的分布情况,能否求出最大能繁殖的机枪数. 思 ...

  4. log4j2.xml配置及例子

    1.使用log4j2需要下载包,如下: 2.配置文件可以有三种格式(文件名必须规范,否则系统无法找到配置文件): classpath下名为 log4j-test.json 或者log4j-test.j ...

  5. mapreduce 依赖组合

    mport java.io.IOException;import java.util.StringTokenizer; import org.apache.hadoop.conf.Configurat ...

  6. Lucene.NET中Field.Index 和 Field.Store的几种属性的用法

    转载自 http://blog.csdn.net/yja886/article/details/6612069 lucene在doc.add(new Field("content" ...

  7. STL笔记之【map之总概】

    1.map和multimap内部数据结构: 红黑树(平衡二叉树的一种)2.在往map和multimap中插入元素时,会自动进行排序3.map和multimap的所有元素的key都被视为常数,其元素的实 ...

  8. h5移动端设计页面

    @京东设计中心 :去年JDC出了不少优秀的武媚娘…不,H5呢,大家都很拼,同时当然也积累了一些经验和教训,今天结合咱们的实战案例,从字体,排版,动效,音效,适配性,想法这几个方面好好聊一聊关于H5的设 ...

  9. linux下CPU信息查询

    1.查看逻辑CPU个数: #cat /proc/cpuinfo |grep "processor"|sort -u|wc -l24 2.由于有超线程技术有必要查看一下物理CPU个数 ...

  10. 剑指offer 整数中1 出现的次数

    给定一个十进制正整数N,写下从1开始,到N的所有整数,然后数一下其中出现的所有"1"的个数. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 ...