~~IS~~ ==== 前言 ==== MantisBT是基于PHP研发的开源缺陷跟踪系统,其主要优点是:免费开源、安装方便快捷。以Web操作的形式提供项目管理及缺陷跟踪服务,在功能上、实用性上可以满足一些中小型项目的缺陷管理。 ==== 搭建过程 ==== === 下载MantisBT安装包 === ==== 以Centos系统下安装MantisBT ==== 在官网下载MantisBT相应的包:[[https://www.mantisbt.org|MantisBT官网]] 执行如下命令,解压到当前文件夹下: cd /home/disk tar -zxvf mantisbt-2.26.0.tar.gz === 下载XAMPP安装包 === 在XAMPP网站中下载安装包:[[https://www.apachefriends.org/index.html|XAMPP官网]] 执行如下命令: chmod 775 xampp-linux-x64-8.2.4-0-installer.run ./xampp-linux-x64-8.2.4-0-installer.run 查看服务是否启动: /opt/lampp/lampp status === 配置XAMPP === 修改默认端口为其他端口(避免端口冲突): vi /opt/lampp/etc/httpd.conf vi /opt/lampp/etc/extra/httpd-ssl.conf vi /opt/lampp/lampp vi /opt/lampp/etc/extra/httpd-xampp.conf 重启xampp,执行: /opt/lampp/lampp restart 查看端口服务是否起来。 === 配置MantisBT === 使用 [[http://ip地址:端口/mantisbt]] 访问网址,点击 **Install/Upgrade Database** 此时会有提示信息 为了解决这个问题,执行如下操作: cd /opt/lampp/htdocs/mantisbt/config ls cp config_inc.php.sample config_inc.php 修改 **config_inc.php** 配置文件 修改如下两个内容: $g_db_username = 'root'; $g_crypto_master_salt ='W7zWYUaUpo2GSBbPK4yV+Uukz6uF6ff/ekiA0tWonrw='; === 访问MantisBT网址 === 使用 [[http://IP:端口/mantisbt]] 访问网址,就可以到登录页面 输入默认的账户名:**administrator**,密码 **root**,即可进入主界面 ==== 到这里MantisBT就已经安装完成了 ====