redmine安装详解
1、Linux:centos6.4(32位)
2、Gcc的编译环境。使用make命令编辑。
yum install gcc-c++
3、PCRE
PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库。nginx的http模块使用pcre来解析正则表达式,所以需要在linux上安装pcre库。
yum install -y pcre pcre-devel
注:pcre-devel是使用pcre开发的一个二次开发库。nginx也需要此库。
4、zlib
zlib库提供了很多种压缩和解压缩的方式,nginx使用zlib对http包的内容进行gzip,所以需要在linux上安装zlib库。
yum install -y zlib zlib-devel
5、openssl
OpenSSL 是一个强大的安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用。
nginx不仅支持http协议,还支持https(即在ssl协议上传输http),所以需要在linux安装openssl库。
yum install -y openssl openssl-devel
-------------------------------------------------------------------------------------------------------------------------------------------
Linux下安装项目管理工具Redmine详解
Posted on 2016年5月30日 by admin
Linux下安装项目管理工具Redmine
1、Ruby安装
Ruby on Rails网站推荐使用1.8.7版。
点击(此处)折叠或打开
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
# tar zxvf ruby-1.8.7-p174.tar.gz
# cd ruby-1.8.7-p174
# ./configure –prefix=/usr/local/ruby
# make && make install
设置Ruby环境变量
点击(此处)折叠或打开
# cd ~
# vi .bash_profile
添加下面一行
点击(此处)折叠或打开
export PATH=$PATH:/usr/local/ruby/bin
保存退出:wq
点击(此处)折叠或打开
# . .bash_profile
2、RubyGems安装
点击(此处)折叠或打开
# wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
# tar zxvf rubygems-1.3.5.tgz
# cd rubygems-1.3.5
# ruby setup.rb
3、Rake安装
点击(此处)折叠或打开
# gem install rake //直接使用gem命令安装rake.
//也可以下载安装地址:http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
4、Ruby on Rails
点击(此处)折叠或打开
# gem install rails
安装成功提示:
Successfully installed activesupport-2.3.3
Successfully installed activerecord-2.3.3
Successfully installed rack-1.0.0
Successfully installed actionpack-2.3.3
Successfully installed actionmailer-2.3.3
Successfully installed activeresource-2.3.3
Successfully installed rails-2.3.3
7 gems installed
Installing ri documentation for activesupport-2.3.3…
Installing ri documentation for activerecord-2.3.3…
Installing ri documentation for rack-1.0.0…
Installing ri documentation for actionpack-2.3.3…
Installing ri documentation for actionmailer-2.3.3…
Installing ri documentation for activeresource-2.3.3…
Installing ri documentation for rails-2.3.3…
Installing RDoc documentation for activesupport-2.3.3…
Installing RDoc documentation for activerecord-2.3.3…
Installing RDoc documentation for rack-1.0.0…
Installing RDoc documentation for actionpack-2.3.3…
Installing RDoc documentation for actionmailer-2.3.3…
Installing RDoc documentation for activeresource-2.3.3…
Installing RDoc documentation for rails-2.3.3…
//也可以下载安装地址:http://rubyforge.org/frs/download.php/60599/rails-2.3.3.tgz
5、Redmine安装
点击(此处)折叠或打开
# wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
# tar zxvf redmine-0.8.4.tar.gz
# mv redmine-0.8.4 /usr/local/redmine
# cd /usr/local/redmine/config
设置数据库参数
# cp database.yml.example database.yml
# vi database.yml
production:
adapter: mysql
database:redmine
host: localhost
username: redmineuser
password: redminepw
encoding: utf8
保存退出:wq
创建mysql数据库
# /usr/local/mysql/bin/mysql -u root -p
Mysql> create database redmine default character set utf8;
grant all on redmine.* to root;
grant all on redmine.* to root@localhost;
grant all on redmine.* to redmineuser;
grant all on redmine.* to redmineuser @localhost;
set password for redmineuser@localhost=password(‘redminpw’);
Mysql>exit;
Remine设定
点击(此处)折叠或打开
(注意此时的目录一定要在redmine/config里,不然会出错,本文后面有错误信息。)
# rake db:migrate RAILS_ENV=”production” //创建表
# rake redmine:load_default_data RAILS_ENV=”production” //加载默认配置
这里会要求选择默认语言,我选的中文zh:
Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] zh
这个默认设置只是在未登录时的界面语言,当用户登录后,默认语言还是英语,在My account里可以修改成其它语言。
启动WEB服务
# ruby script/server webrick -e production
或# ruby /usr/local/redmine/script/server webrick -e production
停止web服务方法:在当前启动窗口按ctrl+C
访问http://ip:3000/
初始用户名/密码:admin/admin
这样启动后,启动窗口是不能关闭的,所以要使Redmine作为服务启动,需添加-d参数:
# ruby script/server webrick -e production -d
或# ruby /usr/local/redmine/script/server webrick -e production –d
停止服务方法:(ps命令查出此进程的pid号,再杀掉,目前好像只能这样,我看了–help里面,还没有停止的参数。)
# ps aux | grep ruby
# kill -9 [PID]
OK,安装完毕!可以进去玩了!哈哈!
贴个图,秀一下,嘿嘿~~~
启动redmine命令
bundle exec thin start -p 3000 -e production
- #yum install ImageMagick
- #yum install ImageMagick-devel
redmine安装详解的更多相关文章
- Linux ssh登录和软件安装详解
阿哲Style Linux第一天 ssh登录和软件安装详解 Linux学习第一天 操作环境: Ubuntu 16.04 Win10系统,使用putty_V0.63 本身学习Linux就是想在服务器 ...
- 【转】Linux下Android ADB驱动安装详解
原文网址:http://blog.csdn.net/zhenwenxian/article/details/5901350 Linux下Android ADB驱动安装详解 概述 最近由于内置的合作商比 ...
- scribefire 多博客管理利器 安装详解
scribefire 多博客管理利器 安装详解 一.ScribeFire介绍 ScribeFire 是 Firefox (火狐浏览器)上著名的博客写作工具,目前已跨平台支持多浏览器(Firefox,C ...
- CentOS 6.5的安装详解
CentOS 6.5的安装详解 主流: 目前的Linux操作系统主要应用于生产环境, 主流企业级Linux系统仍旧是RedHat或者CentOS 免费: RedHat 和CentOS差别不大,Cent ...
- Linux下tomcat的安装详解
Linux下tomcat的安装详解 来源: ChinaUnix博客 日期: 2007.01.21 22:59 (共有0条评论) 我要评论 一,安装前的准备:1,Linux版本:我的是企业版.(至于红帽 ...
- Phoenix和SQuirrel安装详解
Phoenix安装详解 描述 现有hbase的查询工具有很多如:Hive,Tez,Impala,Shark/Spark,Phoenix等.今天的主角是Phoenix. phoenix,中文译为“凤凰” ...
- zabbix agent安装详解
安装 Installing repository configuration package Zabbix 2.2 for RHEL5, Oracle Linux 5, CentOS 5: rpm - ...
- zabbix server安装详解
简介 zabbix(音同 zæbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以 ...
- Oracle Database 12c Release 2安装详解
第1章 Oracle Database 12c Release 2安装详解 1.1 下载方法 oracle官网https://www.oracle.com 1)打开官方网站,找到下载连接 2)选择更多 ...
随机推荐
- CF-828C
C. String Reconstruction time limit per test 2 seconds memory limit per test 256 megabytes input sta ...
- reservoir sampling / random shuffle
randomly choose a sample of k items from a list S containing n elements, the algorithm may be online ...
- select2,利用ajax高效查询大数据列表(可搜索、可分页)
二.导入css和js到网站上 1.使用CDN,节省自己网站的流量 ? 1 2 <link href="https://cdnjs.cloudflare.com/ajax/libs/se ...
- 3. docker容器内信息获取、命令的执行、容器的导入和导出
一.依附容器 依附操作attach通常用在由docker start或者docker restart启动的交互型容器中.由于docker start启动的交互型容器并没有具体终端可以依附,而容器本身是 ...
- 以交互方式将文本添加到图形中(matlab)
这篇博客记录一下怎么用matlab在图形中简单的添加一些文本,以直方图均衡化为例.先看几张图片吧,第一幅是较暗的花粉的电子显微图像和对应的直方图,第二幅是其直方图均衡化的图像和对应的直方图,第三幅是对 ...
- python translate maketrans 字符串替换
string1='abcd-1234' print(string1.translate(string1.maketrans('abc','ABC'))) a='aeiou' b=' string2=' ...
- UVaLive6435(dp)
要点 题意:两个数据传输数列,每个数列里有若干个数据包并给出发出时间\(t\),每个数据包到达的时间\(T\)是\(t <= T < t + D\),问有多少种到达序列. 将题目转化为第二 ...
- 1081 Rational Sum(20 分)
Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum. ...
- Ubuntu 16.04 LTS安装Docker
一.安装Docker的先决条件 1.运行64位CPU构架的计算机(目前只能是x86_64和amd64),请注意,Docker目前不支持32位CPU.2.运行Linux 3.8或更高版本内核.一些老版本 ...
- System.Span, System.Memory,还有System.IO.Pipelines
System.Span, System.Memory,还有System.IO.Pipelines 使用高性能Pipelines构建.NET通讯程序 .NET Standard支持一组新的API,Sys ...