MantisBt安装日志

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/

20180914 补注:https://sourceforge.net/projects/libpng/files/ 下载列表中包含所有版本的libpng,包括zlib

tar -zvxf  libpng-1.6.29.tar.gz

cd libpng-1.6.29

./configure --prefix='/opt/app/libpng1.6.29'

make

make install

20180914 补注:使用的centos6中自带有zlib1.2.3-27,当安装libpng-1.6.29的时候会报错。

根据libpng文档说明,将版本降低为libpng-1.2.35,安装时没有报错。

但是在之前的安装中,同样的系统安装libpng-1.6.29也不会报错,这次安装即使指定连接安装zlib-1.2.11也会报错。

安装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 & // 跳过权限

20180917补注:mysql5.7版本中可使用方法:

                                   修改/etc/my.cnf 追加skip-grant-tables=1,跳过权限。

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

mysql> UPDATE user SET authentication_string=PASSWORD('Root@123') where USER='root';//设置密码

20180914补注:自动安装mysql5.1.x版本时user表中的密码使用的是password字段。

20180917补注:mysql5.7版本的user表中密码使用的是以上代码中使用字段。

mysql> flush privileges; //刷新赋权


启动mysql

service 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

20180914补注:php7中命名为php.ini-production


// 配置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版本以后就好了。

20180917补注:mantisbt-2.17版本对应mysql必须是5.5.35版本以上

20180920补注:mantisbt-2.17版本对应mylyn-mantis-3.12.0可用,但mylyn-mantis-3.12.0只能在eclipse(oxygen)下可用。

具体原因是因为,mylyn-mantis-3.12.0需要高版本的mylyn支持,eclipse(mar)因为不支持,所以不能使用mylyn-mantis-3.12.0。

当使用低版本的mylyn时,mylyn-mantis-3.12.0无法获取到插件中输入的用户名和密码,所以导致Access denied的问题。

猜你喜欢

转载自blog.csdn.net/muziwenrong/article/details/71403794
今日推荐