【ubuntu 18.04】安装readmine

2021/12/21 7:23:41

本文主要是介绍【ubuntu 18.04】安装readmine,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1. 官网

https://www.redmine.org/projects/redmine/wiki/Guide

2. 插件

https://www.redmine.org/projects/redmine/wiki/Plugin_List

3. 安装

# 解压缩
tar -zxvf redmine-4.2.3.tar.gz
cd redmine-4.2.3/
cp config/database.yml.example config/database.yml

gem -v
ruby -v

# 配置国内源sudo gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
vim ~/.gemrc
sudo apt install ruby-bundler
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l
ping gems.ruby-china.com

# 安装依赖
sudo gem update --system
sudo apt-get install libxml2-dev libxslt-dev ruby-dev
sudo gem install racc -v '1.6.0'
# sudo apt-get install libmariadb-dev libmysqlclient-dev mysql-devel
sudo apt-get install libmariadb-dev libmysqlclient-dev
bundle install --without development test
# 初始化配置
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:load_default_data
mkdir -p tmp tmp/pdf public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
sudo chown -R master:master files log tmp public/plugin_assets
# 测试运行(由于端口占用,需要换个端口运行)
bundle exec rails server webrick -e production
netstat -an | grep 3000
# 运行服务
bundle exec rails server webrick -e production -p 3001 -b 0.0.0.0 -d

# 插件安装
mv redmine_code_review ./plugins/
ls ./plugins/
rake redmine:plugins:migrate RAILS_ENV=production
ps -ef | grep readmine
ps -ef | grep 3001
kill 70295
ps -ef | grep 3001
bundle exec rails server webrick -e production -p 3001 -b 0.0.0.0 -d

 



这篇关于【ubuntu 18.04】安装readmine的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程