1. 下载bugzilla

下载地址:https://ftp.mozilla.org/pub/webtools/

因为我在github上搜了一下“bugzilla cn”提示有中文语言包就下了5.0.2版本。

另一个带中文语言包的地址:https://github.com/hxping7/bugzilla5.0.2_zh-CN

2. 安装MysqL

1. 查询当前版本

rpm –qa | grep MysqL

[root@hadoop-1 ~]# rpm -qa | grep MysqL

MysqL-5.1.73-3.el6_5.x86_64

MysqL-libs-5.1.73-3.el6_5.x86_64

MysqL-server-5.1.73-3.el6_5.x86_64

mysql-connector-odbc-5.1.5r1144-7.el6.x86_64

2. 卸载当前版本

rpm –e 或者 rpm –e --nodeps

3. 查看可安装版本列表

yum list | grep MysqL

4. 安装版本

yum install -y MysqL-server MysqL MysqL-devel

通过“rpm –qi mysql-server”查看是否安装成功

5. 启动mysql

service mysqld start

service mysqld restart

6. 设置开机启动

查询开机启动状态:chkconfig --list | grep mysqld

设置开机启动:chkconfig mysqld on

7. 配置mysql

启动mysql服务后,需要设置root密码和增加其他用户(关于如何设置root密码,在服务第一次启动时有提示)

/usr/bin/mysqladmin -u root password 'new-password' // 为root账号设置密码

登录测试

mysql –u root –p

3. 安装httpd服务

详见http://wenhai.iteye.com/blog/2280133第2点“安装httpd服务”。

4. 安装bugzilla

1. root用户登录MysqL

2. 创建bugs数据库,并授予root用户权限

create database bugs;

授权:

grant all on bugs.* to root@localhost identified by "root"; #授权

flush privileges; # 刷新

3. 解压bugzilla

tar xf bugzilla-5.0.2_cn.tar.gz -C /var/www/html/

4. 安装perl环境

进入bugzilla目录,执行“perl checksetup.pl”

根据提示安装必须的插件即可。

或者执行“/usr/bin/perl install-module.pl –all”,直接安装所有的必须和可选模块,省去一个一个执行的麻烦(但耗时较长)。

所有插件安装完成之后,在执行“perl checksetup.pl”命令,提示“checksetup.pl complete.”则可进行下一步。

执行报错:

提示’’@’localhost‘对bugs数据库没有权限

进入mysql,执行”grant all on bugs.* ‘’@’localhost’ identity by ‘’;”

5. 设置bugzilla

所有模块安装完成之后,会在bugzilla根目录下生成一个”localconfig”文件,修改其中的数据库相关参数后,再次执行checksetup.pl,输入用户名、邮箱等信息。

6. 的

5. 配置httpd,添加cgi库支持

vi /etc/httpd/conf/httpd.conf

在文件最后,追加以下内容:

<VirtualHost *:80>
 DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
 
 
<Directory /var/www/html/bugzilla>
 AddHandler cgi-script .cgi
 Options +Indexes +ExecCGI
 DirectoryIndex index.cgi
 AllowOverride Limit FileInfo Indexes
</Directory>

执行”vi .htaccess”修改bugzilla目录下的文件,注视掉“Options –Indexes”这一行。

执行”service httpd restart”重启httpd服务。

6. 访问bugzilla

http://10.242.130.56:81/bugzilla/

其他:

注:本篇文章是建立在别人的配置文档的基础上进一步优化而来,感谢之前的那位作者的付出。

1、安装所需要的组件

[root@bogon ~]#yum -y install httpd mod_ssl mysql-server mysql php-mysql gcc perl* mod_perl-devel


2、配置httpd.conf,增加蓝色一行,随后启动httpd,设置为开机启动

vi /etc/httpd/conf/httpd.conf

# ServerName gives the name and port that the server uses to identify itself.

# This can often be determined automatically,but we recommend you specify

# it explicitly to prevent problems during startup.

#

# If this is not set to valid DNS name for your host,server-generated

# redirections will not work.See also the UseCanonicalName directive.

# If your host doesn't have a registered DNS name,enter its IP address here.

# You will have to access it by its address anyway,and this will make

# redirections work in a sensible way.

#ServerName www.example.com:80

ServerName localhost:80

service httpd start

正在启动httpd[确定]

chkconfig httpd on

[root@bogon ~]#


3、编辑hosts文件,为主机名配置一个本地IP地址,随后启动mysqld服务

[root@bogon~]#vi /etc/hosts

127.0.0.1localhost localhost.localdomain localhost4 localhost4.localdomain4

::1localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1bogon

service mysqld start

初始化MySQL数据库:Installing MySQL system tables...

OK

Filling help tables...

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so,start the server,then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'

/usr/bin/mysqladmin -u root -h bogon password 'new-password'

Alternatively you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default.This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

[确定]

正在启动mysqld[确定]

chkconfig mysqld on

4、配置mysql

mysqladmin -u root -p password "password"

Enter password:这里要求输入之前的密码,由于默认密码为空,直接回车即可

[root@bogon ~]#mysql -uroot -ppassword

Welcome to the MySQL monitor.Commands end with ; or \g.

Your MySQL connection id is 9

Server version: 5.1.73 Source distribution

Copyright (c) 2000,2013,Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>create database bugs;

Query OK,1 row affected (0.00 sec)

grant all on bugs.* to root@localhost identified by "password";

flush privileges;

quit

Bye

5、下载并解压Bugzilla

tar xf bugzilla-4.4.tar.gz -C /var/www/html/

cd /var/www/html/

[root@bogon html]#mv bugzilla-4.4/ bugzilla

[root@bogon html]#

5、检测Bugzilla缺少的组件

cd bugzilla/

[root@bogon bugzilla]#./checksetup.pl --check-modules

随后会打印一些信息,会看到一些标为not found的缺失组件

6、在线安装Bugzilla缺少的组件(安装时间较长)

perl install-module.pl --all

Checking forCPAN (v1.81)ok: found v1.9402

Checking forYAML (any)ok: found v0.70

Checking forExtUtils-MakeMaker (v6.31)ok: found v6.55_02

Fetching with LWP:

http://www.cpan.org/authors/01mailrc.txt.gz

......

Installing /var/www/html/bugzilla/lib/man/man3/DBD::SQLite::Cookbook.3pm

Installing /var/www/html/bugzilla/lib/man/man3/DBD::SQLite::Fulltext_search.3pm

Installing /var/www/html/bugzilla/lib/man/man3/DBD::SQLite::VirtualTable.3pm

Appending installation info to /var/www/html/bugzilla/lib/x86_64-linux-thread-multi/perllocal.pod

ISHIGAKI/DBD-SQLite-1.48.tar.gz

/usr/bin/make install-- OK

[root@bogon bugzilla]#

7、执行checksetup.pl后,目录下会生成一个localconfig文件

./checksetup.pl

* This is Bugzilla 4.5.2 on perl 5.10.1

* Running on Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013

Checking perl modules...

Checking forCGI.pm (v3.51)ok: found v3.64

Please edit the file ./localconfig and then re-run checksetup.pl

to complete your installation.

8、编辑localconfig文件,将如下参数设置正确

vi localconfig

# The DNS name or IP address of the host that the database server runs on.

$db_host = 'localhost';

# The name of the database. For Oracle,this is the database's SID. For

# SQLite,this is a name (or path) for the DB file.

$db_name = 'bugs';

# Who we connect to the database as.

$db_user = 'root';

# Enter your database password here. It's normally advisable to specify

# a password for your bugzilla database user.

# If you use apostrophe (') or a backslash (\) in your password,you'll

# need to escape it by preceding it with a '\' character. (\') or (\)

# (It is far simpler to just not use those characters.)

$db_pass = 'password';

# Sometimes the database server is running on a non-standard port. If that's

# the case for your database server,set this to the port number that your

# database server is running on. Setting this to 0 means "use the default

# port for my database server."

$db_port = 3306;

9、设置管理员信息和密码。下面的管理员邮箱和密码必须正确,否则会发不出邮件。

Enter the e-mail address of the administrator:administrator@163.com # bugzilla管理员账号

Enter the real name of the administrator:administrator

Enter a password for the administrator account:123456

Please retype the password to verify:bugzilla@jnsec.net is now set up as an administrator.

Creating initial dummy product 'TestProduct'...

Now that you have installed Bugzilla,you should visit the 'Parameters'

page (linked in the footer of the Administrator account) to ensure it

is set up as you wish - this includes setting the 'urlbase' option to

the correct URL.

checksetup.pl complete.

10、配置httpd参数,进入编辑器后按Shift + g键将光标移动到最下行,增加蓝色部分的配置

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for requests without a known

# server name.

#ServerAdmin webmaster@dummy-host.example.com

#DocumentRoot /www/docs/dummy-host.example.com

#ServerName dummy-host.example.com

#ErrorLog logs/dummy-host.example.com-error_log

#CustomLog logs/dummy-host.example.com-access_log common

DocumentRoot /var/www/html/bugzilla/

AddHandler cgi-script .cgi

Options +Indexes +ExecCGI

DirectoryIndex index.cgi

AllowOverride Limit FileInfo Indexes

11、编辑.htaccess文件,用井号注释Options -Indexes一行

vi .htaccess

# Options -Indexes

12、配置邮箱

vi /var/www/html/bugzilla/data/params

...

'mail_delivery_method' => 'SMTP',

'mailfrom' => 'administrator@163.com ',192);">'maintainer' => 'administrator@163.com ',192);">'smtp_password' => '输入邮箱的登录密码',

'smtp_ssl' => 0,192);">'smtp_username' => 'administrator@163.com ',192);">'smtpserver' => 'smtp.163.com',192);">'urlbase' => 'http://192.168.10.129',#输入bugzilla服务器的地址,如果有域名就填写域名

'use_mailer_queue' => 1,0);">/var/www/html/bugzilla/jobqueue.pl start

Starting jobqueue.pl server

[root@bogon ~]#/var/www/html/bugzilla/jobqueue.pl install

bugzilla-queue installed. To start the daemon,do "/etc/init.d/bugzilla-queue start" as root.

13、汉化

将中文汉化包解压到/var/www/html/bugzilla/template/目录下,此时该目录下会生成zh-CN文件夹。重新访问bugzilla,此时已经被汉化。

cd /var/www/html/bugzilla/template/

将汉化包拷贝到/var/www/html/bugzilla/template/目录下

[root@bogon template]#tar xzvfm bugzilla.zh-CN.4.4rc2.20130528.tar.gz

rm bugzilla.zh-CN.4.4rc2.20130528.tar.gz

14、重启httpd服务

service httpd restart

停止httpd[确定]

15、发送邮件进行邮箱的配置验证




16bugzilla数据库备份

MysqLdump -uroot -p123456 bugs > bugs.sql

17bugzilla灾难性恢复

MysqL -uroot -p123456 bugs < bugs.sql

或者

MysqL -uroot -p123456

Your MysqL connection id is 14

MysqL>use bugs

source /opt/bugs.sql

quit

18、重新启动MysqL服务

service MysqLd restart

停止MysqLd[确定]

[root@bogon bugzilla]#

Centos 6.5安装bugzilla 5.0.2的更多相关文章

  1. html5简介_动力节点Java学院整理

    这篇文章主要介绍了html5简介,用于指定构建网页的元素,这些元素中的大多数都用于描述网页内容,有兴趣的可以了解一下

  2. 从iOS应用程序发送帖子到PHP脚本不工作…简单的解决方案就像

    我之前已经做了好几次了但是由于某些原因我无法通过这个帖子…我尝试了设置为_POST且没有的变量的PHP脚本……当它们未设置为发布时它工作精细.这是我的iOS代码:这里是PHP的一大块,POST变量不在正确的位置?我想这对于更有经验的开发人员来说是一个相当简单的答案,感谢您的帮助!解决方法$_POST是一个数组,而不是一个函数.您需要使用方括号来访问数组索引:

  3. openstack学习笔记七 swift安装

    指定映射位置创建ring文件启动服务代维服务proxyserver

  4. openstack安装liberty--安装对象存储服务swift

    通常使用CACHE技術提高性能Accountservers賬戶服務,管理對象存儲中的賬戶定義。Containerservers容器服務,在對象存儲中管理容器或文件夾映……Objectservers對象服務,在存儲節點管理實際的對象,比如文件。Wsgimiddleware處理認證,通常使用OPENSTACKIdentityswiftclient為用戶提供命令行接口使用RESTAPIswift-init初始化和構建RING文件腳本swift-recon一個命令行工具,用於檢索群集的各種度量和測試信息。

  5. Swift Web 开发之 Vapor - 模版 Leaf三

    Leaf作为Vapor官方提供的组件之一原生集成在Vapor中,Leaf模版文件以.leaf结尾,模版语法夹杂在HTML之间,我们可以直接使用而不需要引入其他外部依赖。#import()用来声明一个插入点在当前模版。这是[SwiftWeb开发之Vapor]系列的第三篇,说了说Vapor中自带的Leaf模版引擎,按照笔者目前的使用情况来看其实Leaf还不太成熟,虽然还有太多需要优化改进的地方,不过我相信之后一定会越来越好的。所以不要害怕,赶紧来写SwiftServerSide吧!

  6. 将我的Android应用程序签名为系统应用程序

    将我的Android应用程序签名为系统应用程序在我的公司,我们希望在现场完全控制电池消耗,仅使用2g和gps可以快速耗尽电池.我们的决定是我们需要拥有移动电话的root权限,这样当手机闲置时,我们就会关掉那些不必要的电池消耗.而且我们也不允许用户将其卸载并清除数据.我的问题是:>我从哪里获得这些签名密钥?>它是否会像root访问权限一样如果我成功地成功了签字?

  7. Android – 将SQLite与MySQL同步的最佳方式

    参见英文答案>Synchronizingclient-serverdatabases5个我正在开发一个包含网络应用和移动应用程序的项目,该应用程序记录每日用户的数据.用户可以删除,更新他们的数据,他们可以使用许多设备插入数据.我打算这样开发:用户输入他们的数据然后插入sqlite.服务将定期启动(每5小时或每小时)以使用时间戳与MysqL同步.我确实在互联网上使用服务和时间戳搜索了一个样本,但我一

  8. 获得Android App的“root”权限

    我想知道如何从Android应用程序获得root权限?我尝试了下面的代码行来列出文件但没有发生任何事情我试图在我的清单文件中给予TEST_FACTORY权限,但是我收到错误“允许系统应用”如何制作我的应用系统应用?

  9. android – 如何将唯一的GCM注册标识存储到MySQL中

    我正在设置GoogleCloudMessaging机制的服务器端,使用MySQL存储移动应用提供的注册ID.Google可以发出最多4k个注册码,我被迫将其存储在TEXT字段中.所有的好,到目前为止,问题是我必须处理这样的情况:>用户登录到应用程序>该应用从google请求注册ID>应用程序将新的注册ID发送到应用服务器>服务器存储该注册ID并将其链接到当前登录的用户>该用户注销并且新用户登录>应

  10. CentOS 8.2服务器上安装最新版Node.js的方法

    这篇文章主要介绍了CentOS 8.2服务器上安装最新版Node.js的方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部