• 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

    1. #yum install ImageMagick  
    2. #yum install ImageMagick-devel  
  • 相关阅读:
    图像处理之基础---图像缩放中的一些 灰度插值算法
    多媒体开发之---h264 取流解码分析
    校验算法之二进制反码求和
    c++学习笔记之基础---类内声明函数后在类外定义的一种方法
    图像增强---中值滤波
    阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第4节 多态_19_使用多态的好处
    阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第4节 多态_18_多态中成员方法的使用特点
    阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第4节 多态_17_多态中成员变量的使用特点
    阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第4节 多态_16_多态的格式与使用
    阶段1 语言基础+高级_1-3-Java语言高级_02-继承与多态_第4节 多态_15_多态的概述
  • 原文地址:https://www.cnblogs.com/java0619/p/5841680.html
Copyright © 2020-2023  润新知