Mantis安装配置及使用教程.docx

上传人:b****1 文档编号:15107786 上传时间:2023-06-30 格式:DOCX 页数:26 大小:24.10KB
下载 相关 举报
Mantis安装配置及使用教程.docx_第1页
第1页 / 共26页
Mantis安装配置及使用教程.docx_第2页
第2页 / 共26页
Mantis安装配置及使用教程.docx_第3页
第3页 / 共26页
Mantis安装配置及使用教程.docx_第4页
第4页 / 共26页
Mantis安装配置及使用教程.docx_第5页
第5页 / 共26页
Mantis安装配置及使用教程.docx_第6页
第6页 / 共26页
Mantis安装配置及使用教程.docx_第7页
第7页 / 共26页
Mantis安装配置及使用教程.docx_第8页
第8页 / 共26页
Mantis安装配置及使用教程.docx_第9页
第9页 / 共26页
Mantis安装配置及使用教程.docx_第10页
第10页 / 共26页
Mantis安装配置及使用教程.docx_第11页
第11页 / 共26页
Mantis安装配置及使用教程.docx_第12页
第12页 / 共26页
Mantis安装配置及使用教程.docx_第13页
第13页 / 共26页
Mantis安装配置及使用教程.docx_第14页
第14页 / 共26页
Mantis安装配置及使用教程.docx_第15页
第15页 / 共26页
Mantis安装配置及使用教程.docx_第16页
第16页 / 共26页
Mantis安装配置及使用教程.docx_第17页
第17页 / 共26页
Mantis安装配置及使用教程.docx_第18页
第18页 / 共26页
Mantis安装配置及使用教程.docx_第19页
第19页 / 共26页
Mantis安装配置及使用教程.docx_第20页
第20页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

Mantis安装配置及使用教程.docx

《Mantis安装配置及使用教程.docx》由会员分享,可在线阅读,更多相关《Mantis安装配置及使用教程.docx(26页珍藏版)》请在冰点文库上搜索。

Mantis安装配置及使用教程.docx

Mantis安装配置及使用教程

Mantis安装配置及使用教程

缺陷管理工具mantis搭建安装及使用手册

SPT

2010年7月7日

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

目录

一、软件准备.....................................................................................3

二、安装:

xampp..............................................................................3

三、安装:

MySQL..............................................................................4

四、安装:

mantis..............................................................................6

五、设置:

mantis为中文.................................................................7

六、Mantis中邮件配置:

.................................................................9

七、Mantis中上传附件设置...........................................................10

八、安装及配置JpGraph..............................................................12

九、Mantis时间设置.......................................................................13

十、Mantis使用手册.......................................................................14

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

一、软件准备

1、系统:

WindowsXPSP3;

2、软件:

xampp-win32-1.5.4a-installer

mysqlcc-0.9.3-win32;

mantis-1.0.7.tar;

jpgraph-2.0.tar;

二、安装:

xampp

1、下载完xampp后,进行安装,安装目录自定,如安装在C:

\mantis\;

2、安装一路next;

3、注意一点,默认apache端口为80,mysql为3306,如果端口被占用了,

需要设置端口,一般IIS会占用apache的80端口,最好把IIS服务停掉;

4、安装完成后,出现如下图:

apache和mysql启动就可以了;

5、点击上图Apache那行的Admin按钮,弹出一页面,选中中文;

6、点击左边“安全”。

出现下图页面;

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

7、点击图中http:

//localhost/security/xamppsecurity.php链接,设置mysql中

root的密码。

三、安装:

MySQL

1、一路next后,安装完成,在桌面打开,如下图;

2、在name中填root,在hostname中填localhost,在Password中输入刚刚

设置的root密码。

填完后,点ADD按钮;

3、在左边选中DATABASE点右键,选择新建数据库,新建一个mantis数据

库;

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

4、新建完mantis数据库后,在下面的UserAdminstration右键新增加一个

用户,用户名和密码最好都为mantis,”host”为”localhost”并且为该用户

指定数据库Mantis与权限AllPrivileges,点击Add,如下图;

GeneratedbyFoxitPDFCreator.FoxitSoftware

http:

//ww

Forevaluationonly.

四、安装:

mantis

1、解压Mantis-1.0.7.tar.gz到某盘根目录下,如C:

\mantis\mantis-1.0.7;

2、设置mantis目录权限,打开C:

\mantis\xampp\apache\conf\httpd.conf文

件,在文件最后添加如下内容:

Alias/mantis"c:

/mantis/"

<Directory"c:

/mantis/">

OptionsIndexes

AllowOverrideNone

Orderallow,deny

Allowfromall

</Directory>

注意:

"c:

/mantis/"目录中的/是反斜杠。

3、打开IE输入http:

//localhost/mantis,会自动跳到mantis安装页面;

4、Database输入为Mantis,注意:

installingDatabase没有插入成功。

把SQL

拷贝出来。

此步骤出现相关bugtracker的错误,原因为没有bugstracker文件夹,在

xampp\mysql\data\下加入之前项目的bugtracker文件夹就可以了;

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

5、打开http:

//localhost/xampp/页面,点击工具下的phpMyAdmin,进

入页面输入mysql的用户名和密码;

6、选中mantis数据库,然后点击右边的SQL,出现下面页面;

7、把刚刚拷贝的SQL复制上去,注意去掉第一行;

8、执行成功后打开http:

//localhost/mantis,就进入到登陆页面了。

默认用

户名为administrator,密码为root。

五、设置:

mantis为中文

修改Mantis中的默认配置文件config_defaults_inc.php,找到如下内容,对照修

改.

如果把以下内容拷到config_inc.php中也可以.

配置文件加载顺序:

先加载config_defaults_inc.php,后加载config_inc.php。

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

config_inc.php中的值会覆盖config_defaults_inc.php.

################################

#MantisLanguageSettings

################################

#---languagesettings-----------

#Ifthelanguageissetto'auto',theactual

#languageisdeterminedbytheuseragent(webbrowser)

#languagepreference.

$g_default_language='chinese_simplified_gb2312';

#listthechoicesthattheusersareallowedtochoose

$g_language_choices_arr=array(

'auto',

'bulgarian',

'catalan',

'chinese_simplified_gb2312',

'chinese_traditional',

'croatian',

'czech',

'danish',

'dutch',

'english',

'estonian',

'finnish',

'french',

'german',

'hebrew',

'hungarian',

'icelandic',

'italian',

'japanese',

'korean',

'latvian',

'lithuanian',

'norwegian',

'polish',

'portuguese_brazil',

'portuguese_standard',

'romanian',

'russian',

'serbian',

'slovak',

'slovene',

'spanish',

'swedish',

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

'turkish',

'ukrainian'

);

#Browserlanguagemappingfor'auto'languageselection

$g_language_auto_map=array(

'bg'=>'bulgarian',

'ca'=>'catalan',

'zh-cn,zh-sg,zh'=>'chinese_simplified_g

b2312',

'zh-hk,zh-tw'=>'chinese_traditional',

'cs'=>'czech',

'da'=>'danish',

'nl-be,nl'=>'dutch',

'en-us,en-gb,en-au,en'=>'english',

'et'=>'estonian',

'fi'=>'finnish',

'fr-ca,fr-be,fr-ch,fr'=>'french',

'de-de,de-at,de-ch,de'=>'german',

'he'=>'hebrew',

'hu'=>'hungarian',

'hr'=>'croatian',

'is'=>'icelandic',

'it-ch,it'=>'italian',

'ja'=>'japanese',

'ko'=>'korean',

'lt'=>'lithuanian',

'lv'=>'latvian',

'no'=>'norwegian',

'pl'=>'polish',

'pt-br'=>'portugese_brazil',

'pt'=>'portugese_standard',

'ro-mo,ro'=>'romanian',

'ru-mo,ru-ru,ru-ua,ru'=>'russian',

'sr'=>'serbian',

'sk'=>'slovak',

'sl'=>'slovene',

'es-mx,es-co,es-ar,es-cl,es-pr,es'=>'spanish',

'sv-fi,sv'=>'swedish',

'tr'=>'turkish',

'uk'=>'ukrainian'

);

#Fallbackforautomaticlanguageselection

$g_fallback_language='english';

六、Mantis中邮件配置:

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

以下内容可以在config_defaults_inc.php中找到。

建议把该内容拷到config_inc.php中.

#############################

#MantisEmailSettings

#############################

#---emailvariables-------------

$g_administrator_email='xxxx@';

$g_webmaster_email='xxxx@';

#the'From:

'fieldinemails

$g_from_email='xxxx@';

#thereturnaddressforbouncedmail

$g_return_path_email='xxxx@';

#allowemailnotification

#notethatifthisisdisabled,sign-upandpasswordresetmessageswill

#notbesent.

$g_enable_email_notification=ON;

#selectthemethodtomailby:

#0-mail()

#1-sendmail

#2-SMTP

$g_phpMailer_method=2;#以smtp发送邮件

#ThisoptionallowsyoutousearemoteSMTPhost.MustusethephpMailer

scrīpt

#Nameofsmtphost,neededforphpMailer,takenfromphp.ini

$g_smtp_host=':

25';#加上端口号25

#TheseoptionsallowyoutouseSMTPAuthenticationwhenyouusearemote

#SMTPhostwithphpMailer.Ifsmtp_usernameisnot''thentheusername

#andpasswordwillbeusedwhenloggingintotheSMTPserver.

$g_smtp_username='xxxxx';

$g_smtp_password='xxxxx';

邮件系统的配置建议用smtp方式。

一般公司都有自己的邮件服务器,让管

理员给你开一个mantis的专用信箱。

注意:

还需要配置一个地方,在C:

\xampp\apache\conf目录下在找到

httpd.conf,打开后搜索到listen,把Listen80修改为listenIP:

80,IP就是你

服务器的地址。

还有修改php.ini,把SMTP=localhost修改为SMTP=IP,IP

为你服务器IP

这样修改的好处是邮件发送的时候是直接以IP地址发送链接的,而不是以

localhost发送的。

七、Mantis中上传附件设置

1、在mantis目录下新建一个upload文件夹

2、在mantis页面新建项目时,

配置好附件上传的路径。

如下图:

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

3、打开config_inc.php文件,搜索到MantisFileUploadSettings。

设置如下:

$g_allow_file_upload=ON;

$g_file_upload_method=DISK;#设置为上传到硬盘上。

$g_max_file_size=5000000;#5MB,设置附件的大小限制

$g_allowed_files='txt,jpg,jepg,gif,bmp,doc';#设置允许上传的附件类型

$g_disallowed_files='';#设置不允许上传的附件类型

$g_absolute_path_default_upload_folder='c:

\mantis\upload';#设置默认的

上传路径

$g_preview_attachments_inline_max_size=99999;#99999数值是与字节计

算的,如果上传的任何小于这个字节大小的bmp,png,gif,jpg格式的图片

文件直接显示。

DATABASE

上传文件存放路

config_defaults_inc保存

位置

备份

D:

\Program

Files\xampp\mysql\data\bugtracker\upload

1

D:

\ProgramFiles\xampp\mysql\data\upload

无备份bugtracker可备

份上传的文件

D:

\Program

Files\xampp\mysql\data\bugtracker\upload

2

无备份bugtracker可备

份上传的文件

空3

D:

\ProgramFiles\xampp\mysql\data\upload

无备份bugtracker可备

份上传的文件

空4

无备份bugtracker可备

份上传的文件

GeneratedbyFoxitPDFCreator.FoxitSoftware

Forevaluationonly.

DISK

上传文件存

放路径

config_defaults_inc保存位置备份

D:

\Program

Files\xampp\mysql\data\bugtracker\upload

Ok1

D:

\Program

Files\xampp\mysql\data\upload

备份

bugtracker

并修改该

项目的“上

传文件路

径”,备份

upload没

成功

D:

\Program

Files\xampp\mysql\data\bugtracker\upload

Ok2

估计不行,

没试

空3

D:

\Program

Files\xampp\mysql\data\upload

D:

\Program

Files\xampp\mysql\data

下。

我很费解

估计不行,

没试

空4

无效的上传路径;目录不

存在或Web服务器不

能写入该目录

这肯定不

行,虽然没

八、安装及配置JpGraph

下载JpGraph后,解压到c:

\mantis\core\目录下,

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2