redmine 安装
程序员文章站
2024-02-28 19:29:22
...
redmine 安装
@(redmine)[redmine,安装]
下载 ruby
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.gz
tar xf ruby-2.4.2.tar.gz
cd ruby-2.4.2
./configure --prefix=/usr/local/ruby
make
make install
下载 rubygems
wget https://rubygems.org/rubygems/rubygems-2.6.14.tgz
ruby setup.rb
安装 redmine
wget http://www.redmine.org/releases/redmine-3.4.2.tar.gz
tar xf redmine-3.4.2.tar.gz
mv redmine-3.4.2 redmine
mv redmine /usr/local/
配置 redmine 数据库文件
# DB配置文件
cd /usr/local/redmine/config
cp database.yml.example database.yml
vim database.yml
production:
adapter: mysql2
database: redmine
host: localhost
username: root
password: "spark2016"
encoding: utf8
安装启动
gem install rails -v=4.2.8
gem install rake
yum install ImageMagick ImageMagick-devel -y
bundle install
//创建表
rake db:migrate RAILS_ENV="production"
//加载默认配置
rake redmine:load_default_data RAILS_ENV="production"
# 创建**
rake secret RAILS_ENV=production
3f19a879c2cf9a18c297298dcb1be489d26b99dd7a8b24ad0c169362bdbd98cca8b21b4644215eb957b6f71178f414b99ea250fcb5cdd6b4729a26x5b5e3a82ab
# 将**添加到配置文件中
vim /etc/profile
export SECRET_KEY_BASE='3f19a879c2cf9a18c297298dcb1be489d26b99dd7a8b24ad0c169362bdbd98cca8b21b4644215eb957b6f71178f414b99ea250fcb5cdd6b4729a26x5b5e3a82ab'
# 配置**文件
vim config/secrets.yml
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
# 启动
ruby /usr/local/redmine/bin/rails server webrick -e production –d
上一篇: Java swing实现酒店管理系统