[研究] Trac 0.12.5 專案管理、Bug 缺陷追蹤軟體安裝 (CentOS 6.5 x86_64)
2014-09-22
Trac is an enhanced wiki and issue tracking system for software development projects.
官方網站
http://trac.edgewall.org/
安裝參考
http://trac.edgewall.org/demo-1.0/wiki/TracInstall
安裝 (假設建立兩個 trac 項目)
yum -y install mysql mysql-server mysql-devel httpd mod_dav_svn mod_python MySQL-python python-devel subversion trac
# CentOS 7.0 的 yum 不提供 mod_python 和 trac , mysql-server 必須換成 mariadb-server
#先啟動 MySQL Daemon 才能trac 建立資料庫
/etc/init.d/mysqld start
#trac 只能使用utf-8字符集,否則報錯
mysql -e "CREATE DATABASE trac_test1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; "
mysql -e "GRANT ALL ON trac_test1.* TO tracuser@'127.0.0.1' IDENTIFIED BY 'password';"
mysql -e "CREATE DATABASE trac_test2 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; "
mysql -e "GRANT ALL ON trac_test2.* TO tracuser@'127.0.0.1' IDENTIFIED BY 'password';"
mysql -e "FLUSH PRIVILEGES;"
# 建立 test1 項目
mkdir /var/trac -p
chown apache.apache /var/trac -R
cd /var/trac
mkdir test1
chown apache.apache test1
trac-admin test1 initenv
# [My Project]> 請輸入 test1
# [sqlite:db/trac.db]> 請輸入 mysql://tracuser:password@127.0.0.1/trac_test1
# 設定
# /var/trac/test1/conf/trac.ini
# 啟動
tracd --port 8000 /var/trac/test1 &
#-----------------------------------
# 建立 test2 項目
mkdir /var/trac -p
chown apache.apache /var/trac -R
cd /var/trac
mkdir test2
chown apache.apache test2
trac-admin test1 initenv
# [My Project]> 請輸入 test2
# [sqlite:db/trac.db]> 請輸入 mysql://tracuser:password@127.0.0.1/trac_test2
# 設定
# /var/trac/test2/conf/trac.ini
# 啟動
tracd --port 8002 /var/trac/test2 &
(完)
相關
CentOS 6.5下部署trac服務器
http://bristol.blog.51cto.com/1004110/1439092
沒有留言:
張貼留言