欢迎来到天天文库
浏览记录
ID:34724164
大小:90.18 KB
页数:9页
时间:2019-03-10
《linux下安装mantis配置指南》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Linux下安装mantis配置指南(全) Linux下安装mantis配置指南1配置Linux下的Apache+Mysql+PHP作为缺陷管理工具,前段时间bugzilla比较流行,但bugzilla配置比较繁琐,使用起来也是相当的繁琐。而且非常占系统资源。使用perl编写的CGI程序,所以很明显的一个缺点就是:每建立一个连接就会开启一个服务器进程。所以最近企业使用mantis的是越来越多了。使用非常方便简洁而且可以定制工作流等优点。发现网上关于在Linux下配置mantis的资料非常之少。所以经过两天的研究:成功搭建Linux下manti
2、s,下面是简要的配置指南。不太清楚的地方,大家多多提出,我会进一步补充。一.安装配置Apache安装包的获取:http://www.apache.org1.1.安装Apache(tar包)tar–zxvfhttp-2.2.11.tar.gz./configure--prefix=/usr/local/apache--enable-modules=so--enable-rewritemake&&makeinstall1.2.配置Apachevi/usr/local/apache/conf/httpd.conf找到下面这行#ServerNamewww.exa
3、mple.com:80修改为:ServerNamewww.dong.com:80保存退出。1.3.拷贝文件cp–a/usr/local/apache/bin/apachectl/etc/rc.d/init.d/httpdcp–a/usr/local/apache/bin/apachectl/etc/httpd/conf/httpd将httpd加到系统服务中cp/usr/local/apache/bin/apachectl/etc/rc.d/init.d/httpdvihttpd//在/etc/rc.d/int.d/目录下编辑复制过去的httpd程序找到:
4、#!/bin/sh//一般在第一行另起一行,增加:#chkconfig:23457030#description:Apache然后注册服务:chkconfig--addhttpd启动:servicehttpdstart停止:servicehttpdstop重新启动:servicehttpdrestart重启apache1.4运行service命令Servicehttpdrestart1.5检验配置是否成功IE地址栏输入:http://www.dong.com看到It’sWork证明配置成功。或者使用ps–aux
5、grephttpd如果看到多行数据,也证明
6、配置成功二.安装Mysql(rpm包)安装包的获取:http://www.mysql.com2.1.检查是否安装mysql输入命令:rpm-qa
7、grep–imysql如果有提示,证明mysql已经安装,那么使用rpm–emysql卸载mysql包。2.3启动服务servicemysqldrestart创建数据库mysql;createdatabasebugtrackercharacterset=utf8;grantallon*.*to'mantis'@'%'identifiedby'mantis';grantallon*.*to'mantis'@'lo
8、calhost'identifiedby'mantis';grantgrantoptionon*.*to'mantis'@'%'identifiedby'mantis';设置mantis密码setpasswordformantis@localhost=old_password(‘mantis’);三.安装GD库(tar包让PHP支持GIF、PNG、JPEG)注意:不安装只会影响mantis的数据统计部分功能。安装包的获取: 3.1安装GD库3.1.1.安装jpeg6(jpegsrc.v6b.tar.gz)ftp://ftp.uu.net/graphics
9、/jpeg/ mkdir-p/usr/local/jpeg6mkdir-p/usr/local/jpeg6/binmkdir-p/usr/local/jpeg6/libmkdir-p/usr/local/jpeg6/includemkdir-p/usr/local/jpeg6/manmkdir-p/usr/local/jpeg6/man1mkdir-p/usr/local/jpeg6/man/man1tar–zxvf jpegsrc.v6b.tar.gz./configure--prefix=/usr/local/jpeg6/--enable-sh
10、ared--enable-staticMake&&makeinstall3.1.
此文档下载收益归作者所有