Step 1 - Redmine application
# pkg install redmine
Step 2 - Create an empty database and accompanying user
【sudo MySQL】
# sysrc mysql_enable=yes
# service mysql-server start
# mysql_secure_installation
$ mysql -u root -p // qwertyui
mysql> CREATE DATABASE redmine CHARACTER SET utf8;
mysql> CREATE USER 'redmine'@'localhost' IDENTIFIED BY '12345678';
mysql> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
mysql> quit
Step 3 - Database connection configuration
Copy config/database.yml.example to config/database.yml & Edit it.
# cd /usr/local/www/redmine/
# cp config/database.yml.example config/database.yml
# ee config/database.yml
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: 12345678
encoding: utf8
Step 4 - Dependencies installation
# bundle install --without development test
Step 5 - Session store secret generation
# bundle exec rake generate_secret_token
Step 6 - Database schema objects creation
# bundle exec rake db:migrate RAILS_ENV="production"
Step 7 - Database default data set
# bundle exec rake redmine:load_default_data RAILS_ENV="production"
Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] zh-TW
====================================
Default configuration data loaded.
Step 8 - File system permissions
# mkdir -p tmp tmp/pdf public/plugin_assets
# chown -R redmine:redmine files log tmp public/plugin_assets
# chmod -R 755 files log tmp public/plugin_assets
Step 9 - Test the installation
# cd /usr/local/www/redmine/
# bundle exec ruby script/rails server webrick -e production
Step 10 - Logging into the application
http://host or IP:3000
login: admin
password: admin
沒有留言:
張貼留言