zoukankan      html  css  js  c++  java
  • redmine 版本管理软件安装

    一、环境清单:

      1. Redmine 4.1.1

      2. ruby 2.4.2

      3. SQLite sqlite-autoconf-3340100

      4. Linux_7_x86_64 (centos or ubuntu)

    二、安装包

    yum install -y patch libyaml-devel glibc-headers autoconf gcc-c++ glibc-devel patch readline-devel zlib-devel libffi-devel openssl-devel bzip2 automake libtool bison sqlite-devel ImageMagick ImageMagick-devel

    三、安装SQLite数据库

    wget https://www.sqlite.org/2021/sqlite-autoconf-3340100.tar.gz
    tar xvzf sqlite-autoconf-3340100.tar.gz
    cd sqlite-autoconf-3340100
    ./configure --prefix=/usr/local
    make
    make install

    测试数据库

    四、安装 RVM

    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    curl -sSL https://get.rvm.io | bash -s stable

    安装完成后,会列出一些安装信息,其中有一行要注意:

    ...
    To start using RVM you need to run `source /etc/profile.d/rvm.sh`
    ....
    
    source /etc/profile.d/rvm.sh

    检查一下是否安装正确

     五、安装 Ruby

    列出已知的 ruby 版本

    rvm list known

    可以选择现有的 rvm 版本来进行安装(下面以 rvm 2.4.2 版本的安装为例)

    rvm install 2.4.2

    验证ruby

    六:安装redmine

    数据库创建

    RAILS_ENV=production bundle exec rake db:migrate

    Session存错创建

    bundle exec rake generate_secret_token

    默认数据创建

    RAILS_ENV=production bundle exec rake redmine:load_default_data

    文件授权

    mkdir -p tmp tmp/pdf public/plugin_assets
    sudo chown -R redmine:redmine files log tmp public/plugin_assets
    sudo chmod -R 755 files log tmp public/plugin_assets
    sudo find files log tmp public/plugin_assets -type f -exec chmod -x {} +

    启动、测试访问

    bundle exec rails server webrick -e production

     开启端口

    firewall-cmd --zone=public --add-port=3000/tcp --permanent
    

    重启防火墙

    firewall-cmd --reload

    访问http://ip:3000

    用户名/密码:admin/admin

     

    参考:

    https://www.redmine.org/projects/redmine/wiki/RedmineInstall#Step-6-Database-schema-objects-creation

    https://www.cnblogs.com/wzy5223/p/5335549.html

    https://yq.aliyun.com/articles/498548

    https://blog.csdn.net/jiushidt/article/details/82702868

    https://luoxin1992.github.io/2017/01/17/install-redmine-server/

  • 相关阅读:
    常见的HTTP状态码(HTTP Status Code)说明
    eclipse tomcat maven热部署
    log4j.properties 详解与配置步骤
    js玩命加载……
    git学习
    vim学习笔记
    Android中在不同activity中进行自定义广播的解析
    Android中本地广播的实现
    Android中自定义广播的实现
    Android中获得网络状况的实现
  • 原文地址:https://www.cnblogs.com/aongao/p/14331600.html
Copyright © 2011-2022 走看看