2014-09-26
Redmine 是一個網頁界面的專案管理與缺陷追蹤管理系統 (Bug tracking system),它是的自由及開放原始碼 (Free Open Source Software, OSS) 工具。
官方網站
http://www.redmine.org/下載
http://www.redmine.org/projects/redmine/wiki/Download
http://www.redmine.org/releases/redmine-2.5.2.tar.gz
安裝參考
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
安裝
#Configuring the Firewall #/etc/sysconfig/iptables #/etc/sysconfig/ip6tables iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT iptables-save service iptables save ip6tables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT ip6tables -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT ip6tables-save service ip6tables save /etc/init.d/iptables restart /etc/init.d/ip6tables restart chkconfig iptables on chkconfig ip6tables on
---------------
#Turn off SELinux
# disable SELinux now /usr/sbin/setenforce 0 # disable SELinux always sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@" /etc/selinux/config sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@" /etc/selinux/config sed -i -e "/SELINUX=/aSELINUX=disabled" /etc/selinux/config yum -y install @development mysql-server mysql-devel ruby ruby-devel ImageMagick ImageMagick-devel rubygem-rake rubygem-bundler #No package rubygem-bundler available.
rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install rubygem-bundler
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:csbuild:centosextra/CentOS_CentOS-6/home:csbuild:centosextra.repo
yum -y install rubygem-bundler
chkconfig mysqld on service httpd start service mysqld start #Set the password for MySQL #/usr/bin/mysql_secure_installation service mysqld restart /usr/bin/mysqladmin -u root password '654321' /usr/bin/mysqladmin -u root -h localhost.localdomain password '654321' -p654321 # 建立資料庫 "redmine" # 建立資料庫使用者 redmine # 建立資料庫使用者 redmine 密碼 my_password # 使用者名稱和密碼可以換掉,但是 config/database.yml 設定時候要更著換 mysql -e "CREATE DATABASE redmine CHARACTER SET utf8;"; mysql -e "CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';"; mysql -e "GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';"; adduser redmine cd /usr/local/src curl -O http://www.redmine.org/releases/redmine-2.5.2.tar.gz tar xvf redmine-2.5.2.tar.gz mv redmine-2.5.2/ /home/redmine/ mv /home/redmine/redmine-2.5.2 /home/redmine/redmine chown -R redmine:redmine /home/redmine/redmine #su redmine #cd ~/redmine cd /home/redmine/redmine cp config/database.yml.example config/database.yml # 設定 使用者名稱、密碼 vi config/database.yml bundle install --without development test rake generate_secret_token RAILS_ENV=production rake db:migrate # 載入預設資料 (optional) # 可選 en 或 zh-TW RAILS_ENV=production rake redmine:load_default_data 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 # 啟動 ruby script/rails server webrick -e production # 帳號 admin, 密碼 admin firefor http://localhost:3000/ & |
編輯 config/database.yml 設定使用者名稱、密碼
其中
production:
adapter: mysql2
database: redmine
host: localhost
username: root
password: ""
encoding: utf8
改為
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "my_password"
encoding: utf8
(完)
相關
Redmine - 維基百科,自由的百科全書
http://zh.wikipedia.org/wiki/Redmine
[研究] Redmine 2.5.2 快速安裝程式 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/09/redmine-252-centos-70-x8664.html
[研究] Redmine 2.5.2 快速安裝程式 (CentOS 7.0 x86_64)
http://shaurong.blogspot.com/2014/09/redmine-252-centos-70-x8664.html
沒有留言:
張貼留言