BugFree基于PHP和MySQL开发,是免费且开发源代码的缺陷管理系统。服务器端在Linux和Windows平台上都可以运行;客户端无需安装任何软件,通过IE,FireFox等浏览器就可以自由使用。
BugFree 2 在BugFree 1.1的基础上,集成了Test Case和Test Result的管理功能。具体使用流程是:首先创建Test Case(测试用例),运行Test Case产生Test Result(测试结果),运行结果为Failed的Case,可以直接创建Bug。Test Case标题、步骤和Test Result运行环境等信息直接复制到新建的Bug中。
安装步骤:
一、安装mysql
# yum install mysql mysql-server
二、安装并启动apache
# yum install httpd
# /etc/init.d/httpd start(stop,restart)
然后用ie打开http://服务器地址。应该能看到熟悉的apache羽毛标志。
apache默认为80端口,如果已经被占用,可以在主配置文件中修改监听端口
查看服务器在运行的程序及端口:
#netstat -tunlp
修改监听端口:
#vi /etc/httpd/conf/httpd.conf
将第136行Listen 80修改为想要的端口
添加防火墙规则
# vi /etc/sysconfig/iptables
-AINPUT -p tcp –dport 80 –j ACCEPT
yum形式安装的apache的发布目录默认为:/var/www/html
三、安装php及mysql支持
#yum list|grep php
#yum install php php-mysql
修改apache配置使其支持php
#vi /etc/httpd/conf/httpd.conf
搜索AddType,在后面添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps1、重启apache,/etc/init.d/httpd restart
2、编写一个测试页index.php,内容如下:
<?php
phpinfo();
?>
3、用ie看http://你的服务器地址/index.php。应该能看到熟悉的php说明页面了。
四、安装bugfree2
1、下载bugfree2
2、解压,并移动到apache发布目录下:
tar –zxvf bugfree2.tar.gz
mv bugfree /var/www/html
3、创建数据库:
mysql –u root
CREATE database bugfree;(注意大小写及后面的分号)
SHOW DATABASES;
4、访问http://服务器域名或ip/bugfree/install.php页面,生成configbug.inc.php,根据页面提示复制一份配置文件:
cd /var/www/html/bugfree/Include
cp Config.inc.Sample.php Config.inc.php
5、修改config.inc.php文件中的数据库配置:
找到/* 3. define the username and password of the bugfree database. */
$_cfg['db']['user']= '用户名';
$_cfg['db']['password'] = '密码';
$_cfg['db']['host']= '127.0.0.1';
$_cfg['db']['database']= 'bugfree';
$_cfg['db']['tableprefix']= 'bf_';
$_cfg['dbcharset']= 'UTF8';
6、
五、重启apache,访问http://服务器域名或ip/bugfree/install.php页面,根据提示进行安装即可