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. Bookmark

    http://stackoverflow.com/https://www.baidu.com/?tn=06074089_27_pghttp://apistore.baidu.com/http://to ...

  2. Petit FatFs

    FatFs is a generic FAT/exFAT file system module for small embedded systems. The FatFs module is writ ...

  3. web项目docker化的两种方法

    标题所讲的两种方法其实就是创建docker镜像的两种方法 第一种:启动镜像后进入容器中操作,将需要的软件或者项目移动到容器中,安装或者部署,然后退出即可 第二种:编写dockerfile,将需要的镜像 ...

  4. codeforces 689B Mike and Shortcuts 最短路

    题目大意:给出n个点,两点间的常规路为双向路,路长为两点之间的差的绝对值,第二行为捷径,捷径为单向路(第i个点到ai点),距离为1.问1到各个点之间的最短距离. 题目思路:SPFA求最短路 #incl ...

  5. jsp环境搭建(Windows)

    1.软件准备 JDK 最新版jdk-8u45-windows-x64.exe tomcat 最新版32-bit/64-bit Windows Service Installer Eclipse IDE ...

  6. scull_p_read()函数分析

    /* * Data management: read and write */ static ssize_t scull_p_read (struct file *filp, char __user ...

  7. Callable、Future和FutureTask区别

    在前面的文章中我们讲述了创建线程的2种方式,一种是直接继承Thread,另外一种就是实现Runnable接口. 这2种方式都有一个缺陷就是:在执行完任务之后无法获取执行结果. 如果需要获取执行结果,就 ...

  8. [原创] web_custom_request 与 Viewstate

    在用loadrunner对.net编写的website进行性能测试时,经常会遇上一些hidden fields,例如,CSRFTOKEN.VIEWSTATE.EVENTVALIDATION等,而对于这 ...

  9. Ubuntu Linux系统下apt-get命令详解

    整理了Ubuntu Linux操作系统下apt-get命令的详细说明,分享给大家.常用的APT命令参数: apt-cache search package 搜索包 apt-cache show pac ...

  10. ext3文件系统目录限制问题

    昨晚排查了在KVM的build系统中的一个问题,跟踪到后面发现在一个目录下mkdir创建目录失败.我手动试了一下,提示如下:cannot create directory `/home/master/ ...