CentOS 7安装Redmine,centosredmine
连接服务器
启动MariaDB
安装Ruby
安装Redmine
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
安装bundle
cd /var/redmine
gem install bundler
配置bundler源
bundle config mirror.https://rubygems.org https://gems.ruby-china.org
安装redmine依赖
bundle install --without development test rmagick
初始化数据库
# 生成秘钥
bundle exec rake generate_secret_token
# 初始化数据库
RAILS_ENV=production bundle exec rake db:migrate
用以下命令配置为中文,输入zh
RAILS_ENV=production bundle exec rake redmine:load_default_data
设置权限
# 创建目录
mkdir -p tmp tmp/pdf public/plugin_assets
# 设置权限
sudo chmod -R 755 files log tmp public/plugin_assets
测试运行redmine
bundle exec rails server webrick -e production
# e.g,我的主机是192.168.31.133,用以下命令绑定80端口
bundle exec rails server webrick -e production -p 80 -b 192.168.31.133
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。