说明:使用阿里云 centos
1、安装trac
wget https://download.edgewall.org/trac/Trac-1.2.3.tar.gz
tar zxvf Trac-1.2.3.tar.gz
cd Trac-1.2.3
python setup.py install
2、配置数据库 pip -E /opt/user/trac install trac mysql-python
说明使用MySQL5.7.23
CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; select host,user,authentication_string from mysql.user; GRANT ALL ON trac.* TO tracuser@localhost IDENTIFIED BY 'Testteam1&'; flush privileges;
mysql 连接的连接:
mysql://tracuser:Testteam1&@localhost/trac
3、创建项目
mkdir -p ~/Developer/tracproject/tracone
trac-admin ~/Developer/tracproject/tracone/ initenv
Project Name [My Project]> 输入项目名称 //随便起个名字 Database connection string [sqlite:db/trac.db]> //输入:mysql://tracuser:Testteam1&@localhost/trac
4、配合admin
trac-admin ~/Developer/tracproject/tracone/ permission add admin TRAC_ADMIN
yum install httpd
htpasswd -c /root/Developer/tracproject/testone/trac.htpasswd admin
5、启动
LC_ALL=en_US tracd --port 9000 --basic-auth="*,/root/Developer/tracproject/tracone/trac.htpasswd," /root/Developer/tracproject/tracone 6、启动多项目
执行3创建tractwo
LC_ALL=en_US tracd --port 9000 --basic-auth="*,/root/Developer/tracproject/tracone/trac.htpasswd," /root/Developer/tracproject/tracone /root/Developer/tracproject/tractwo
7、安装aglio
wget :http://www.agilofortrac.com/download/agilo-source-0.9.15-tar.gz
tar zxvf agilo-source-0.9.15-tar.gz
cd agilo-source-0.9.15
python setup.py install
cd /root/Developer/tracproject/testone/conf
在trac.ini文件最后添加agilo.* = enabled
sudo trac-admin /root/Developer/tracproject/testone upgrade
重新启动就可以了
遇到问题:
1、local参数找不到 LC_ALL=en_US
2、添加安全规则:添加端口
官网:https://trac.edgewall.org/
插件:https://trac-hacks.org/
下载地址:https://trac.edgewall.org/wiki/TracDownload#LatestStableRelease
参考:https://trac.edgewall.org/wiki/MySqlDb
https://trac.edgewall.org/wiki/0.12/TracInstall
agilo:http://www.agilofortrac.com/download-agilo-trac/
http://www.agilofortrac.com/documentation/installation-guide/
https://mip.oomake.com/question/580323
https://blog.csdn.net/kouryoushine/article/details/78344170