linux系统中bugzilla nginx 安装配置 详解
2015-04-09 20:30
1036 查看
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;
解决方法如下:
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
在网上看了一下,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
相关文章推荐
- 阿里云Linux系统Nginx配置多个域名的方法详解
- linux笔记 第十五天 系统安装详解、DHCP、配置PXE服务器
- Linux中Nginx安装与配置详解及常见问题
- Linux中Nginx安装与配置详解
- nginx https配置详解,linxu环境nginx下http升级到https——linux安装web服务器17
- 详解Linux下安装配置Nginx
- Linux中Nginx安装与配置详解
- Linux中Nginx安装与配置详解
- Linux中Nginx安装与配置详解
- Linux下安装配置 subversion1.8+apache+nginx服务器详解
- Linux系统指定目录下安装配置Mysql 5.7.15步骤图文详解,只需5分钟搞定
- Linux系统Nginx安装配置
- NGINX之linux系统下载安装并配置nginx
- linux系统上nginx安装及简单的反向代理配置
- Linux下安装Lnmp环境之Nginx 配置文件详解
- 详解Linux下安装配置Nginx
- 详解Linux下安装配置Nginx
- Linux中Nginx安装与配置详解
- Linux中Nginx安装与配置详解
- Linux中Nginx安装与配置详解