mantis Linux安装教程,CentOS Linux安装mantis

Mantis是一个轻量级的缺陷管理平台(全称Mantis Bug Tracker),用来跟踪管理Bug,即bug管理系统。官网:http://www.mantisbt.org/

1、安装web server

Mantis是用PHP编写的,要安装一个PHP的web server。这里使用LAMP。

yum install httpd mysql mysql-devel mysql-server php php-mysql php-bcmath php-gd php-mbstring php-xml

配置LAMP过程略过。

PS:php.ini中要设置好date.timezone。

2、下载Mantis

目前最新稳定版为Mantis 1.2.11。

cd /tmp

wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.11/mantisbt-1.2.11.tar.gz/download

tar -zxvf mantisbt-1.2.11.tar.gz

mv mantisbt-1.2.11 /var/www/html/mantis

chown -R apache:apache /var/www/html/mantis

3、建立Mantis数据库

mysql -u root -p

mysql> create database mantis;

mysql> grant all privileges on mantis.* to 'mantisuser'@'localhost' identified by '123456';

创建了名为mantis的数据库,设置用户mantisuser,密码为123456,对mantis数据库赋予所有权限。

4、浏览器访问http://IP/mantis

输入相关信息,点击Install/Upgrade Database。

d8b36f8855a43bfcbbece3c5eb011f0f.png

访问http://IP/mantis/login_page.php

Mantis有一个默认的系统管理员帐号administrator,密码root。

会看到有两个警告:

1)Warning: You should disable the default ‘administrator’ account or change its password.

使用administrator登录,修改密码。

2)Warning: Admin directory should be removed.

将/var/www/html/mantis目录下的admin目录删除或改名。

5、设置Mantis支持中文

cd /var/www/html/mantis

vim config_inc.php

添加:

$g_default_language = 'chinese_simplified';

设置为中文后,使用方法自己研究一下,或者查看用户手册http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide.html,或者百度谷歌一下 mantis 教程。

一般流程为:管理员创建项目-报告员提交问题-分派给开发员修复问题-测试后修改问题状态-如还有问题重新打开该问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
请按照以下步骤在Ubuntu上安装Mantis: 1. 首先,确保你的系统已更新并安装了Apache和MySQL。 2. 使用以下命令安装PHP7.0及其相关组件:sudo apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-xmlrpc php7.0-json php7.0-gd php7.0-mbstring php7.0-common php7.0-cli 3. 安装Mantis所需的附加软件包:sudo apt-get install git 4. 克隆Mantis的代码库到你的本地系统:git clone https://github.com/mantisbt/mantisbt.git 5. 进入Mantis的代码目录:cd mantisbt 6. 为Mantis创建一个数据库:mysql -u root -p -e "CREATE DATABASE mantis;" 7. 导入Mantis的数据库架构:mysql -u root -p mantis < sql/mysql/mantis_create_tables.sql 8. 为Mantis创建一个MySQL用户:mysql -u root -p -e "GRANT ALL PRIVILEGES ON mantis.* TO 'mantis'@'localhost' IDENTIFIED BY 'password';" 9. 复制并重命名`config_inc.php.sample`文件:cp config/config_inc.php.sample config/config_inc.php 10. 使用文本编辑器打开`config/config_inc.php`文件,并修改以下配置项: - `$g_hostname`:将其设置为`localhost` - `$g_db_name`:将其设置为`mantis` - `$g_db_username`:将其设置为`mantis` - `$g_db_password`:将其设置为之前为MySQL用户设置的密码 - `$g_crypto_master_salt`:将其设置为一个随机的字符串 11. 配置Apache,将Mantis的根目录指向`/path/to/mantisbt`。 12. 重启Apache服务器:sudo service apache2 restart 13. 现在,你可以通过浏览器访问`http://localhost/mantisbt`来安装和配置Mantis

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值