【Redmine】Centos7 安装Redmine3.4.5 On Mariadb

总结最近安装Redmine3.4.5的操作步骤:
1、安装必要的系统软件包:httpd,Passenger等

yum install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel
yum install mariadb-devel
yum install httpd httpd-devel
yum install ImageMagick ImageMagick-devel

2、安装编译Ruby 2.5.1
    过程中无法执行gem sources --add https://ruby.taobao.org,解决方法:

yum install libssl-dev libssl rvm
cd /usr/local/ruby-2.5.1/ext/openssl
ruby extconf.rb --with-openssl-include=/usr/include/openssl --with-openssl-lib=/usr/lib64/openssl/
ln -s /usr/local/ruby-2.5.1/include /
cd /usr/local/ruby-2.5.1/ext/zlib
ruby ./extconf.rb
make
make install
gem sources --add https://gems.ruby-china.org/

3、安装bundle;设置MariaDB;
gem install bundler --no-rdoc --no-ri
vi /etc/my.cnf
   character-set-server=utf8

4、安装Redmine3.4.5
cd /var/lib/redmine/
vi config/database.yml

5、安装gem的依赖
bundle install --without development test --path vendor/bundle
6、Redmine管理平台初始设置
bundle exec rake generate_secret_token  
*****(由于执行bundle exec rake generate_secret_token会报错显示request_store等需要gem install,尝试执行了bundle install,报错rbpdf-1.19.3.gem已被破坏,我找到rbpdf-1.19.3.gem所在的目录/var/lib/redmine/vendor/bundle/ruby/2.5.0/,删除之,再做bundle install,OK了)*****
     再继续执行;    
RAILS_ENV=production bundle exec rake db:migrate

7、安装Passenger  (Centos默认已安装)
8、检查http设置,并重启httpd生效
service httpd configtest
service httpd restart
    登陆Redmine网页服务。
fj.pngCentos-7下安装Redmine-3.pdf

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20659905/viewspace-2154167/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20659905/viewspace-2154167/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值