linux系统中bugzilla nginx 安装配置 详解

Bugzilla是Mozilla公司提供的一款开源的免费Bug追踪系统,用来帮助你管理软件开发,建立完善的BUG跟踪体系。,下面我们一起来看看吧

在网上看了一下,bugzilla的安装,大部分的web环境是apache 。下面说一下我的安装过程。
一,安装epel源
请参考:centos 推荐使用epel源
二,安装mysql nginx bugzilla,以及相关工具
yum install mysql mysql-server bugzilla fcgi-devel fcgi nginx perl spawn-fcgi  
安装fcgiwrap,它是用来运行perl的cgi程序的
fcgiwrap下载地址: http://github.com/gnosek/fcgiwrap/tarball/master
[root@localhost download]# tar zxvf gnosek-fcgiwrap-1.1.0-5-g66e7b7d.tar.gz  
[root@localhost download]# cd gnosek-fcgiwrap-66e7b7d/  
[root@localhost gnosek-fcgiwrap-66e7b7d]# autoreconf -i  
[root@localhost gnosek-fcgiwrap-66e7b7d]# ./configure  
[root@localhost gnosek-fcgiwrap-66e7b7d]# make  
gcc -std=gnu99 -Wall -Wextra -Werror -pedantic -O2 -g3 fcgiwrap.c -o fcgiwrap -lfcgi  
[root@localhost gnosek-fcgiwrap-66e7b7d]# cp fcgiwrap /usr/local/bin/  
如果autoreconf -i时,autoreconf命令不存在,安装如下依赖包:
yum install patch gcc-c++ readline-devel zlib-devel libffi-devel openssl-devel make autoconf automake libtool bison libxml2-devel libxslt-devel libyaml-devel  
三,启动mysql,并创建bugzilla数据库
查看复制打印?
/etc/init.d/mysqld start   //启动服务端  
  
mysql> create database bugstest;    //创建空数据库  
mysql> grant all privileges on bugstest.* TO 'bugstest'@'localhost' IDENTIFIED BY 'bugstest';   //分配权限  
mysql> flush privileges;  


Can't locate ExtUtils/MakeMaker.pm in @INC

解决方法如下:

yum -y install perl-devel

yum -y install perl-CPAN



四,修改bugzilla的配置localconfig,并且安装bugzilla数据库
1,修改/etc/localconfig
查看复制打印?
$db_name = 'bugstest';      //数据库名  
$db_user = 'bugstest';      //连接用户名  
$db_pass = 'bugstest';        //连接密码  
就是上面,mysql里面添加的用户。
2,安装bugzilla数据库,执行checksetup.pl
cd /usr/share/bugzilla/  
./checksetup.pl  
在安装过程中会提示你输入administrtor的用户名和密码,注意:安装成功后,登录的用户名,是你的邮箱。
五,nginx配置
1,copy bugzilla到www目录下
查看复制打印?
cp -r /usr/share/bugzilla /var/www/html/  
chown nginx:nginx -R /var/www/html/bugzilla   //改成nginx的启动用户  
2,建一个nginx的vhost
查看复制打印?
[root@localhost conf.d]# cat bugzilla.conf  
server  
{  
    listen       80;  
    server_name  192.168.10.202;  
    index  index.cgi index.html;  
    root   /var/www/html/bugzilla;  
  
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$  
    {  
        expires     30d;  
    }  
  
    location ~ .*\.(js|css)?$  
    {  
        expires     1h;  
    }  
  
    location ~ .*\.cgi$ {  
             fastcgi_pass          127.0.0.1:9001;  
             fastcgi_index         index.cgi;  
             include            fastcgi.conf;  
    }  
}  
六,启动nginx和fcgiwrap
查看复制打印?
spawn-fcgi -f /usr/local/bin/fcgiwrap -a 127.0.0.1 -p 9001 -F 3 -P /var/run/fastcgi-c.pid  
  
/etc/init.d/nginx start  

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值