您好,登錄后才能下訂單哦!
在工作中,選用了MantisBT作為公司的BTS工具。MantisBT的作為一款缺陷跟蹤管理系統(tǒng),有以下優(yōu)點:
開源、 免費;
可與開源的testlink集成,便于統(tǒng)計bug的用例發(fā)現(xiàn)率;
具有bug關(guān)聯(lián)功能;
權(quán)限設(shè)置靈活,不同角色有不同權(quán)限;
具有郵件通知功能,每個用戶可根據(jù)自身的工作特點只訂閱相關(guān)缺陷狀態(tài)郵件;
提供多維度,多種表現(xiàn)形式的統(tǒng)計數(shù)據(jù);
軟件環(huán)境:
CentOS 6.5 ;
MantisBT-1.2.18 ;
xampp-linux-x64-5.6.3 ;
注:xampp能快速搭建LAMP環(huán)境,提高部署效率。
[root@iserver1 tmp]#
執(zhí)行命令:
wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run |
執(zhí)行過程:
http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.3/xampp-linux-x64-5.6.3-0-installer.run Resolving sourceforge.net... 216.34.181.60 Connecting to sourceforge.net|216.34.181.60|:80... connected. 。。。。。。。 Connecting to jaist.dl.sourceforge.net|150.65.7.130|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 128831805 (123M) [application/x-makeself] Saving to: “xampp-linux-x64-5.6.3-0-installer.run” 100%[=============================================================================================================================>] 128,831,805 4.06M/s in 26s 2015-01-27 21:49:31 (4.71 MB/s) - “xampp-linux-x64-5.6.3-0-installer.run” saved [128831805/128831805] |
[root@iserver1 tmp]#
執(zhí)行命令:
chmod +x xampp-linux-x64-5.6.3-0-installer.run ./xampp-linux-x64-5.6.3-0-installer.run |
執(zhí)行過程,交互的過程如粗體部分。
---------------------------------------------------------------------------- Welcome to the XAMPP Setup Wizard. ---------------------------------------------------------------------------- Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited) XAMPP Developer Files [Y/n] :y Is the selection above correct? [Y/n]: y ---------------------------------------------------------------------------- Installation Directory XAMPP will be installed to /opt/lampp Press [Enter] to continue: ---------------------------------------------------------------------------- Setup is now ready to begin installing XAMPP on your computer. Do you want to continue? [Y/n]: y ---------------------------------------------------------------------------- Please wait while Setup installs XAMPP on your computer. Installing 0% ______________ 50% ______________ 100% ######################################### ---------------------------------------------------------------------------- Setup has finished installing XAMPP on your computer. |
[root@iserver1 htdocs]#
執(zhí)行命令:
/opt/lampp/xampp security |
執(zhí)行內(nèi)容, 交互的過程如粗體部分。
XAMPP: Quick security check... XAMPP: Your XAMPP pages are NOT secured by a password. XAMPP: Do you want to set a password? [yes] yes XAMPP: Password: XXXXX XAMPP: Password (again): XAMPP: Password protection active. Please use 'xampp' as user name! XAMPP: MySQL is accessable via network. XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] y XAMPP: Turned off. XAMPP: MySQL has to run before I can check the security. XAMPP: MySQL has to run before I can check the security. XAMPP: MySQL has a root passwort set. Fine! :) XAMPP: The FTP password for user 'daemon' is still set to 'xampp'. XAMPP: Do you want to change the password? [yes] yes XAMPP: Password: XXXXX XAMPP: Password (again): XAMPP: Reload ProFTPD...not running. XAMPP: Done. |
至此,LAMP環(huán)境搭建完成。
1. 設(shè)置xampp開機自啟,執(zhí)行以下命令:
ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp |
2. 查看xampp運行狀態(tài)
[root@localhost ~]# /opt/lampp/lampp start #啟動lampp [root@localhost ~]# /opt/lampp/lampp stop #停止lampp [root@localhost htdocs]# /opt/lampp/lampp restart #重啟lampp [root@localhost ~]# /opt/lampp/lampp status #查看狀態(tài) |
1. cd /tmp
2. 執(zhí)行命令,獲取mantisbt的安裝包:
wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.18/mantisbt-1.2.18.tar.gz |
3. 解壓mantisbt的壓縮包,執(zhí)行命令
tar –zxvf mantisbt-1.2.18.tar.gz |
1. 執(zhí)行命令
mv /tmp/mantisbt-1.2.18 /opt/lampp/htdocs/ |
1. 訪問http://serverIP/mantisbt/index.php,自動跳轉(zhuǎn)到http://serverIP/mantisbt/admin/install.php頁面,在該頁面建立mantisbt的數(shù)據(jù)庫;
2. 在以下頁面,root的密碼為“xx”,直接點擊“INSTALL/update database”即可。
3. 數(shù)據(jù)庫創(chuàng)建成功,通過http://serverIP/phpmyadmin/,可查看bugtracker數(shù)據(jù)庫的創(chuàng)建情況。
1. [root@localhost mantisbt]#
執(zhí)行以下命令:
vi config_inc.php 修改數(shù)據(jù)庫連接信息 <?php $g_hostname = 'localhost'; $g_db_type = 'mysql'; $g_database_name = 'xx'; #填寫設(shè)置的數(shù)據(jù)名稱,與2.1.3章節(jié)中填寫的Database Name一致 $g_db_username = 'xx'; #填寫數(shù)據(jù)庫用戶名 $g_db_password = 'xx'; #填寫數(shù)據(jù)庫密碼 ?> |
2. [root@localhost mantisbt]#
執(zhí)行以下命令:
cp config_inc.php.sample config_inc.php |
1. 執(zhí)行命令:
vi /opt/lampp/htdocs/mantisbt/config_defaults_inc.php 修改:$g_default_language, 將english 改為chinese_simplified |
2. 在個人資料內(nèi),點擊:更改個人設(shè)置,選擇界面語言:chinese_simplified
3. 界面更新為中文版
1. 執(zhí)行命令:
vi /opt/lampp/htdocs/mantisbt/config_defaults_inc.php 修改為 $g_default_timezone = 'Asia/Shanghai'; |
2. 在個人資料內(nèi),點擊:更改個人設(shè)置,選擇時區(qū):shanghai
1. 執(zhí)行命令
vi /opt/lampp/htdocs/mantisbt/ config_inc.ini 修改郵件配置信息 # --- Email Configuration --- $g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL $g_smtp_host = 'smtp.ym.163.com'; # used with PHPMAILER_METHOD_SMTP $g_smtp_username = 'mantisbt.admin@xxx.com'; # used with PHPMAILER_METHOD_SMTP $g_smtp_password = 'xxxx'; # used with PHPMAILER_METHOD_SMTP $g_administrator_email = 'mantisbt.admin@xxx.com'; $g_webmaster_email = 'mantisbt.admin@xxx.com'; $g_from_email = 'mantisbt.admin@xxx.com'; # the "From: " field in emails $g_return_path_email = 'mantisbt.admin@xxx.com'; # the return address for bounced mail # $g_from_name = 'Mantis Bug Tracker'; # $g_email_receive_own = OFF; # $g_email_send_using_cronjob = OFF; |
測試新用戶注冊,給管理員發(fā)送郵件成功。
至此,MantisBT的安裝部署已經(jīng)完成。
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。