CentOS6.5中安装Redmine

本文详细介绍了在CentOS6.5上安装Redmine的步骤,包括安装系统包和软件,配置MySQL,安装rvm、ruby、rails,下载并配置Redmine,以及最后启动Redmine服务。
摘要由CSDN通过智能技术生成

1:安装系统包和部分软件包

# yum -y install patch make gcc gcc-c++ gcc-g77 flex* bison file libtool libtool-libs libtool-ltdl-devel* autoconf kernel-devel automake libmcrypt* libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel vim-minimal nano sendmail fonts-chinese gettext gettext-devel gmp-devel pspell-devel readline* libxslt* pcre* net-snmp* gmp* libtidy* ImageMagick* subversion*

# yum update nss

2:安装MySQL,参考我的文章:

https://blog.csdn.net/feng820724/article/details/77446526

3:设置mysql的账号和密码,并创建redmine数据库

# mysql -uroot -p

mysql > create database redmine character set utf8;

mysql > create user 'redmine'@'localhost' IDENTIFIED BY 'redmine';

mysql > grant all privileges on redmine.* to 'redmine'@'localhost';

mysql > flush privileges;

4:安装rvm

# curl -L get.rvm.io | bash -s stable

如果遇到以下报错,则执行报错中的gpg2 --recv-keys的命令。

# gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

# curl -L get.rvm.io | bash -s stable

# source /usr/local/rvm/scripts/rvm

# rvm -v

如果未显示rvm版本,重新安装一次

5:安装ruby

# rvm list known

# rvm install ruby-2.6.0-preview2

# gem -v

如果未显示版本,重新安装ruby

# gem source -l

# gem source --remove https://rubygems.org/

# gem source -a https://gems.ruby-china.com/

6:安装rails

# gem install rails

# gem install rake

# yum install mysql-devel

# gem install mysql2

7:下载redmine,配置redmine初始化并安装

# useradd -s /sbin/nologin redmine

# cd /usr/local/

# wget http://www.redmine.org/releases/redmine-3.4.4.tar.gz

# tar -zxvf redmine-3.4.4.tar.gz

# mv redmine-3.4.4 redmine && cd redmine

# chown -R root:root /usr/local/redmine

# cp config/database.yml.example config/database.yml

# cp config/configuration.yml.example config/configuration.yml

# vim config/database.yml

选择product部分修改数据库密码

# bundle install

# rake generate_secret_token

# RAILS_ENV=production bundle exec rake db:migrate

# RAILS_ENV=production bundle exec rake redmine:load_default_data

# mkdir -pv  tmp tmp/pdf public/plugin_assets

# chown -R redmine:redmine files log tmp public/plugin_assets

# chmod -R 755 files log tmp public/plugin_assets

8:启动redmine

# bundle exec rails server webrick -e production -b 192.168.18.25

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值