【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
标签:readmine,18.04,sudo,bundle,redmine,dev,https,ubuntu,ruby 来源: https://www.cnblogs.com/fireblackman/p/15712646.html