redmine4.2安装
时间: 2023-11-11 14:57:47 浏览: 162
安装Redmine4.2需要的步骤如下:
1. 安装依赖库:sudo apt-get install make gcc libssl-dev libreadline-dev zlib1g-dev libyaml-dev libsqlite3-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev
2. 下载Redmine:wget https://www.redmine.org/releases/redmine-4.2.0.tar.gz
3. 解压Redmine:tar xvf redmine-4.2.0.tar.gz
4. 移动Redmine文件夹:sudo mv redmine-4.2.0 /usr/local/redmine
5. 创建数据库:sudo mysql -u root -p
> CREATE DATABASE redmine CHARACTER SET utf8mb4;
> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'password';
> FLUSH PRIVILEGES;
> EXIT;
6. 安装bundler:sudo gem install bundler
7. 安装Redmine所需的gem包:sudo bundle install --without development test
8. 生成Secret key:sudo bundle exec rake generate_secret_token
9. 创建数据库表结构:sudo RAILS_ENV=production bundle exec rake db:migrate
10. 插入默认数据:sudo RAILS_ENV=production bundle exec rake redmine:load_default_data
11. 创建管理员用户:sudo RAILS_ENV=production bundle exec rake redmine:createsuperuser
12. 启动Redmine:sudo RAILS_ENV=production rails server -b 0.0.0.0 -d
阅读全文