您的位置:首页 > 其它

MantisBt安装日志

2017-05-08 10:30 375 查看
MantisBt安装日志
MantisBt是BUG管理系统
mantis官网: https://www.mantisbt.org/
mantis下载地址:http://www.mantisbt.org/download.php

mantis文档:http://www.mantisbt.org/documentation.php
使用版本 2.4.0
gcc-c++ // 用于编译安装
curl 7 // 官网说用于跟twitter结合
下载curl 
tar -zvxf curl-7.54.0.tar.gz
cd curl-7.54.0
./configure
make
make install

安装zlib // 用于压缩和解压缩  ,安装libpng需要使用
下载地址:http://www.zlib.net/
tar -zvxf zlib-1.2.11.tar.gz

cd zlib-1.2.11
./configure
make
make install

安装 freetype
下载地址:http://download.savannah.gnu.org/releases/freetype/
tar -zvxf freetype-2.7.tar.gz
cd freetype-2.7
./configure --prefix='/opt/app/freetype2.7'
make
make install

安装 libpng
下载地址:http://libpng.sourceforge.net/
tar -zvxf  libpng-1.6.29.tar.gz
cd libpng-1.6.29
./configure --prefix='/opt/app/libpng1.6.29'

make
make install

安装jpeg
下载地址:http://www.ijg.org/
tar -zvxf jpegsrc.v9b.tar.gz

cd jpeg-9b/
./configure --prefix='/opt/app/jpeg9b'
make
make install

安装GD // 用于php图形使用
下载地址:http://libgd.github.io/

tar -zvxf libgd-2.2.4.tar.gz

cd libgd-2.2.4/
./configure --prefix='/opt/app/gd2.2.4' --with-zlib='/usr/local' --with-png='/opt/app/libpng1.6.29' --with-freetype='/opt/app/freetype2.7' --with-jpeg='/opt/app/jpeg9b'

make
make install

安装xpm
yum install libXpm
yum install libXpm-devel

安装libxml2
yum install libxml2
yum install libxml2-devel

安装mysql
yum install mysql mysql-devel
提示 complete! 则表示安装成功!
配置 mysql

mysqld_safe --user=mysql --skip-grant-tables --skip-networking & // 跳过权限

mysql -u root mysql //用root用户免密码登录(因为yum安装的mysql初始root密码为空)

mysql> UPDATE user SET authentication_string=PASSWORD('Root@123') where USER='root';//设置密码mysql> flush privileges; //刷新赋权
启动mysql
servic
4000
e mysqld start
初始化 MySQL 数据库:                                      [确定]
Installing validate password plugin:                       [确定]
正在启动 mysqld:                                          [确定]

表示启动成功

php
下载地址:http://www.php.net/downloads.php
tar -zvxf php-7.1.4.tar.gz
cd php-7.1.4
./configure --prefix=/opt/app/php7 --with-apxs2=/opt/app/apache/bin/apxs --with-gd=/opt/app/gd2.2.4 --with-jpeg-dir=/opt/app/jpeg9b --with-png-dir=/opt/app/libpng1.6.29 --with-zlib-dir=/usr/local --with-freetype-dir=/opt/app/freetype2.7 --with-curl=/opt/app/curl7 --with-xpm-dir=/usr/include/X11/xpm.h --with-libxml-dir=/usr/include/libxml2 --enable-mbstring --enable-soap --with-mysqli
// 如果按照./configure --help的建议--with-mysqli=/usr/local/mysql/mysql_config反而会报错,如果只是使用--with-mysqli,php会自动加载。
// 其实在php7中内嵌了GD插件,不需要再额外安装组件
//按照官网的说法 mbstring和mysql是必须启用的extension
//启用soap组件是为了eclipse中的插件使用
make
make install

// 配置php
cp php.ini-product /opt/app/php7/lib

// 配置apache
cd /opt/app/apache/conf
vi httpd.conf
找到
 AddType application/x-gzip .gz .tgz

在它下面添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
找到
DirectoryIndex index.html
修改为
DirectoryIndex index.html default.php index.php
保存退出

安装mantisbt
下载地址:http://www.mantisbt.org/download.php

配置mysql数据库
添加用户mantisbt //用于初始化安装
insert into mysql.user(Host, User, ssl_cipher, x509_issuer, x509_subject, authentication_string)values('localhost', 'mantisbt', '', '', '', password('Mantisbt@123'));
flush privileges;
创建database
create database bugtracker;
赋予mantisbt用户权限
grant all privileges on bugtracker.* to mantisbt@localhost identified by 'Mantisbt@123';
flush privileges;

将下载的mantisbt解压到apache的htdocs文件夹下
使用以下链接进行安装 http://xxx.xxx.xxx/mantisbt/admin/install.php
// 注意:连接mantisbt连接mysql时报错no such file or directer can find时 修改php.ini中的mysqli.default_socket的值mysql.sock的位置
mysqli.default_socket=/var/lib/mysql/mysql.sock
//注意:设置连接mysql时的host与mysql中用户的host保持一致,如果是localhost就都是localhost

使用eclipse插件连接mantisbt的地址为 http://xxx.xxx.xxx.xxx/mantisbt/api/soap/mantisconnect.php 使用版本:mylyn-mantis-3.11.0
                    mantisbt-1.3.10

// 注意 mylyn-mantis-3.11.0对mantisbt-2.0以上的版本支持不太友好,我遇到的问题是访问被拒绝。降了mantisbt版本以后就好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  MantisBt