CentOS 6.4 x64 安装 配置 Redmine 2.4.1
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的更多相关文章
- CentOS 6.5 x64 安装Tomcat8 并配置两个Tomcat8
1.首先,安装tomcat的前提是已经配置好jdk环境变量,若没配好可以参考我的上一篇博文:CentOS 6.5 x64安装jdk8,当然也可以通过网络搜索安装步骤~~ 2.下载: 可以通过官网下载: ...
- CentOS 6.5 x64 安装jdk8
1.去官网下载Linux版本的jdk8,我下载的是下面这个 2.下载xftp和xshell来操纵服务器,可以搜索一下下载安装即可,安装完成后,打开xshell,新建链接为你的云服务器的IP地址和密码, ...
- Centos 7环境下安装配置Hadoop 3.0 Beta1简记
前言 由于以前已经写过一篇Centos 7环境下安装配置2.8的随笔,因此这篇写得精简些,只挑选一些重要环节记录一下. 安装环境为:两台主机均为Centos 7.*操作系统,两台机器配置分别为: 主机 ...
- 阿里云服务器 ECS 部署lamp:centos+apache+mysql+php安装配置方法 (centos7)
阿里云服务器 ECS 部署lamp:centos+apache+mysql+php安装配置方法 (centos7) 1.效果图 1 2. 部署步骤 1 1. mysql安装附加(centos7) 7 ...
- CentOS 6.6 x64安装TensorFlow
CentOS 6.6 x64安装TensorFlow升级Python到2.7(系统自带Python版本为2.6) // 安装编译工具 $ yum -y install gcc automake aut ...
- Windows和Centos下Docker的安装配置
Windows和Centos下Docker的安装配置 windows环境下的安装(win10) 在Windows系统上需要利用toolbox来安装Docker,现在 Docker 有专门的 Win10 ...
- CentOS下使用yum安装配置和使用svn
安装说明 系统环境:CentOS-6.3安装方式:yum install (源码安装容易产生版本兼容的问题)安装软件:系统自动下载SVN软件 检查已安装版本 ? 1 2 3 4 5 6 7 8 9 1 ...
- CentOS 7 Xinetd服务安装配置
CentOS 7 Xinetd服务安装配置 目录 CentOS 7 Xinetd服务安装配置 一.Linux守护进程与初始化进程 1. 什么是守护进程 2. 什么是初始化 二.Linux独立启动进程和 ...
- CentOS 6.5 yum安装配置lnmp服务器(Nginx+PHP+MySQL)
以下全部转载于 http://blog.csdn.net/lane_l/article/details/20235909 本人于今晚按照该文章使用centos 6.7 64bit安装成功,做个备份, ...
随机推荐
- 关于C++ const
1.Const用途 No. 用途 使用范围 参考代码 1 类型检查 参数传递 void func(const int i){ ... } 2 节省空间,避免不必要的内存分配 代替#define #de ...
- C++中的基本数据类型
C++中定义了一组表示整数.浮点数.单个字符和布尔值的算术类型(arithmetic type). 另外还定义了一种叫做void的特殊类型.void类型没有对应的值,仅用在有限的一些情况下,通常用作无 ...
- Hibernate 系列教程10-组成关系
组成关系 在一个员工模型里面需要存入 员工公司所在地址的城市,街道 员工籍贯所在的城市,街道, 此时可以抽取城市,街道变成一个模型即是组成关系 Employee public class Employ ...
- CGRect相关工具函数
NSStringFromCGRect(aCGRect): CGRectFromString(aString):如果把视图的框架以字符串的形式放在NSUserDefaults里面,那么该方法可以将其转回 ...
- 2014 Shanghai Invitation Contest
题目链接 http://acm.hdu.edu.cn/search.php?field=problem&key=2014%C9%CF%BA%A3%C8%AB%B9%FA%D1%FB%C7%EB ...
- 2016.10.08--Intel Code Challenge Final Round--D. Dense Subsequence
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...
- java 线程的同步
Example12_7.java public class Example12_7 { public static void main(String args[]) { Bank bank = new ...
- 使用NGUI进行类似Button的操作
下面例子以Label和Sprite为例,进行说明如何在NGUI中对控件添加单击响应的事件方法. 首先在UIRoot下添加Label控件,然后Scene场景中右键Label-->Attach--& ...
- 利用eclipse新建一个maven项目步骤:
1.打开eclipse,左键点击左上角File,选中New,左键点击选中Maven Project,出现下面界面: 2.把打钩的去掉,选择自己项目所在的工作空间,如下图,我建在我的工作空间worksp ...
- List<Map>去重排序
数据格式 [ { "id":"d3e8a9d6-e4c6-4dd8-a94f-07733d3c1b59", "parentId":" ...