玲玲 的个人资料玲玲的共享空间照片日志留言簿更多 工具 帮助

日志


6月26日

bugzilla安装过程出现数据库错误

在安装Bugzilla的过程中,安装好了必须的perl module后 用checksetup.pl检查了一直pending在connect mysql的连接中。Google Serach后发现这个的错误发生情况还不少,但是没有一个适合我用的解决方案。所以经过摸索,写下帮助,或许能减少后来人,走一些弯路:

环境:

OS: CentOS 5.1

Bugzilla: 3.1.3

MySQL: 5.0.22

Perl: 5.8.8

 

前面的安装步骤如下:

Step 1: Mysql#groupadd mysql
#useradd mysql
# yum install mysql
# yum install mysql-devel
# yum install mysql-server
#mysql_install_db
#chown -R root:mysql /usr/local/mysql
#chown -R mysql:mysql /usr/local/mysql/var
#chgrp -R mysql /usr/local/mysql
#cp support-files/my-medium.cnf /etc/my.cnf
启动服务方法
#mysqld_safe --user=mysql &
停止服务
#mysqladmin shutdown

为mysql添加用户bugs

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'bugs_password';

mysql> FLUSH PRIVILEGES;

mysql> create database bugs DEFAULT CHARACTER SET utf8;

 

Step 2: Apache

# yum install httpd

修改apache配置/etc/httpd/conf/httpd.conf添加如下内容:

Alias /bugzilla/ "/var/www/bugzilla/"

<Directory "/var/www/bugzilla">
      AddHandler cgi-script .cgi
      Options +Indexes +ExecCGI
      DirectoryIndex index.cgi
      AllowOverride Limit
      Order allow,deny
      Allow from all
</Directory>

 

Step 3:bugzilla

解压bugzilla的tar包到/var/www/buzilla下

利用bugzilla的脚本#/usr/bin/perl install-module.pl --all 可以自动下载所需的perl module。

修改localconfig
server's host: "localhost"
database name: "bugs"
MySQL username: "bugs"
Password for the "bugs" MySQL account above

[root@localhost bugzilla-3.1.3]# ./checksetup.pl
* This is Bugzilla 3.1.3 on perl 5.8.8
* Running on Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007

Checking perl modules...
Checking for                 CGI (v2.93)   ok: found v3.15
Checking for            TimeDate (v2.21)   ok: found v2.22
Checking for           PathTools (v0.84)   ok: found v3.12
Checking for                 DBI (v1.41)   ok: found v1.604
Checking for    Template-Toolkit (v2.15)   ok: found v2.19
Checking for          Email-Send (v2.00)   ok: found v2.192
Checking for Email-MIME-Modifier (any)     ok: found v1.442

Checking available perl DBD modules...
Checking for              DBD-Pg (v1.45)    not found
Checking for           DBD-mysql (v4.00)   ok: found v4.006
Checking for          DBD-Oracle (v1.19)    not found

The following Perl modules are optional:
Checking for                  GD (v1.20)    not found
Checking for               Chart (v1.0)     not found
Checking for         Template-GD (any)      not found
Checking for          GDTextUtil (any)      not found
Checking for             GDGraph (any)      not found
Checking for            XML-Twig (any)      not found
Checking for          MIME-tools (v5.406)  ok: found v5.426
Checking for         libwww-perl (any)     ok: found v2.033
Checking for         PatchReader (v0.9.4)  ok: found v0.9.5
Checking for          PerlMagick (any)      not found
Checking for           perl-ldap (any)     ok: found v0.34
Checking for          RadiusPerl (any)     ok: found v0.13
Checking for           SOAP-Lite (any)     ok: found v0.71
Checking for         HTML-Parser (v3.40)   ok: found v3.55
Checking for       HTML-Scrubber (any)     ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.314
Checking for         Email-Reply (any)     ok: found v1.202
Checking for            mod_perl (v1.999022)  not found
Checking for                 CGI (v3.11)   ok: found v3.15

* NOTE: You must run any commands listed below as root.

**********************************************************************
* OPTIONAL MODULES                                                   *
**********************************************************************
* Certain Perl modules are not required by Bugzilla, but by          *
* installing the latest version you gain access to additional        *
* features.                                                          *
*                                                                    *
* The optional modules you do not have installed are listed below,   *
* with the name of the feature they enable. If you want to install   *
* one of these modules, just run the appropriate command in the      *
* "COMMANDS TO INSTALL" section.                                     *
**********************************************************************

***********************************************************************
* MODULE NAME * ENABLES FEATURE(S)                                    *
***********************************************************************
*          GD * Graphical Reports, New Charts, Old Charts             *
*       Chart * New Charts, Old Charts                                *
* Template-GD * Graphical Reports                                     *
*  GDTextUtil * Graphical Reports                                     *
*     GDGraph * Graphical Reports                                     *
*    XML-Twig * Move Bugs Between Installations                       *
*  PerlMagick * Optionally Convert BMP Attachments to PNGs            *
*    mod_perl * mod_perl                                              *
***********************************************************************
COMMANDS TO INSTALL:

             GD: /usr/bin/perl install-module.pl GD
          Chart: /usr/bin/perl install-module.pl Chart::Base
    Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image
     GDTextUtil: /usr/bin/perl install-module.pl GD::Text
        GDGraph: /usr/bin/perl install-module.pl GD::Graph
       XML-Twig: /usr/bin/perl install-module.pl XML::Twig
     PerlMagick: /usr/bin/perl install-module.pl Image::Magick
       mod_perl: /usr/bin/perl install-module.pl mod_perl2

To attempt an automatic install of every required and optional module
with one command, do:

  /usr/bin/perl install-module.pl --all

Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

    http://cyberelk.net/tim/patchutils/

Checking for           DBD-mysql (v4.00)   ok: found v4.006
Had to create DBD::mysql::dr::imp_data_size unexpectedly at lib/i386-linux-thread-multi/DBI.pm line 1211, <DATA> line 228.
Use of uninitialized value in subroutine entry at lib/i386-linux-thread-multi/DBI.pm line 1211, <DATA> line 228.
Had to create DBD::mysql::db::imp_data_size unexpectedly at lib/i386-linux-thread-multi/DBI.pm line 1241, <DATA> line 228.
Use of uninitialized value in subroutine entry at lib/i386-linux-thread-multi/DBI.pm line 1241, <DATA> line 228.
There was an error connecting to MySQL:

    Undefined subroutine &DBD::mysql::db::_login called at lib/i386-linux-thread-multi/DBD/mysql.pm line 142, <DATA> line 228.

This might have several reasons:

* MySQL is not running.
* MySQL is running, but there is a problem either in the
  server configuration or the database access rights. Read the Bugzilla
  Guide in the doc directory. The section about database configuration
  should help.
* Your password for the 'bugs' user, specified in $db_pass, is
  incorrect, in './localconfig'.
* There is a subtle problem with Perl, DBI, or MySQL. Make
  sure all settings in './localconfig' are correct. If all else fails, set
  '$db_check' to 0.

这个错误是由于DBD::mysql在编译过程中出错导致的,需要重新编译DBD::mysql,另外需要用最新编译生成的mysql.so替换bugzilla目录下的同名文件,再次运行./checksetup.pl就可以看到让你配置管理员账号的部分了。

 

#cp /DBD-mysql-4.006/blib/arch/auto/DBD/mysql/mysql.so /bugzilla-3.1.3/lib/i386-linux-thread-multi/auto/DBD/mysql/mysql.so

6月12日

英语

月球探测器发射 Lunar orbiter set to blast off

探月计划 the moon exploration project

探月计划三阶段

绕月Circling the moon

登月Landing on the moon

返回地球 Return to Earth

“不安全食品召回制度”相应的英文表达为“recall system for unsafe products”,或者,也可写作“Product Recall”。

产品质量不合格,厂家若要收回进行再处理,可用单词“recall”,其相应的英文释义是:“A request by the manufacturer of a product that has been identified as defective to return it”(制造商收回问题产品)。看例句:The car was recalled for possible safety defects.(汽车因可能存在的安全缺陷被召。)

另外,recall除了常用义“回忆、回想”,也可用来形容“取消(命令)”、“召回(大使)”,如:recall a decision(撤销裁定);recall sb. from abroad(把某人从国外召回)。

此外,郑的“玩忽职守”可表达为“dereliction of duty”。

 

抽签为“lottery”;先到先得为 “first-come-first-served”;

三种订票方式如下:通过抽签(订票)可以说“…via lottery/ lottery system”;通过呼叫中心(订票)为 “via hotline”;通过银行门票代售网点为“via bank branches”。

 

consumer price index (CPI) 居民消费价格指数

per capita disposable income 人均可支配收入

price hikes 物价上涨

taxpayer 纳税人

这里的“low-rent housing”指的就是廉租房。“Housing”是各种房子的统称,“low”跟“rent”组成合成词,修饰“housing”。

此外,文中的“affordable housing”指的是经济适用房,从字面意思看,就是能负担得起的房子。

 

由报道可知,“群殴”可用“mass brawl”来表达。在此,mass指“大众的、人多的”,而brawl则特指“混杂的争吵或打群架”。此外,也有外电用“wild braw”来形容这场“群殴”。

由报道可知,“金猪年”相应的英文表达是“golden pig year”,也可写做“the Year of the (golden) Pig”。

顺便提一下,生肖“猪”有时也可用“boar”来形容。此外,可爱的小猪猪一般用“piggy”或“piglet”来表达。

这里的“household registration certificates”就是很多人看重的“户口”,一种居住在某地的凭证。

在北京,没有北京户口的人需要办“暂住证”(temporary residency permits),表示你临时居住在这里。请看下面例句:The ministry also called for simplified procedures for migrants to get their temporary residency permits.(政府呼吁简化外来人口办理暂住证的流程。)

harmonious socialist society 社会主义和谐社会

sound and fast development 又快又好的发展

people's well-being “民生”

to safeguard social fairness and justice 维护社会公平和正义

new socialist countryside 社会主义新农村

basic living /subsistence allowance system for rural residents 农村最低生活保障制度

minimum living/subsistence allowance 最低生活补助

new type of rural cooperative medical care system新型农村合作医疗制度

methane 沼气

corporate/enterprise income tax 企业所得税

property law 物权法

overheated property sector 房地产市场过热

low-rent housing 廉租房

county-level cities 县级市

to save energy, lower energy consumption and reduce pollutants discharge 节能降耗减排

school-age children 适龄儿童

tuition assistance 助学金

vocational education 职业教育

pre-marital medical check-up 婚前医学检查;婚检

doctor-patient relationship 医患关系

substandard food and medicine 不合标准的食品和药品

food and drug safety 食品医药安全

tax on agricultural specialty products 农业特产税

community hospitals 社区医院

community healthcare system 社区医疗保健制度

stay-at-home children 留守儿童

rural migrant workers 农民工

ice-melting/ice-thawing trip “融冰”之旅

diversification of foreign exchange reserve 外汇储备多元化

vulnerable group/disadvantaged group 弱势群体

词汇

1.从善如流 do good naturally and happily; take advice with a receptive mind; readily follow what is right

2.自欺欺人 deceive oneself as well as others

3.顺民意, 合民情 accord with the popular will and sentiments

4.全国人大高票通过《反分裂国家法》(实际上没有反对票) The NPC passed the Anti-Secession Law with no dissenting The NPC passed the Anti-Secession Law with noopposing vote.

5.两国边境地区可以说是阡陌相通, 鸡犬之声相闻 (中缅关系) China and Myanmar are close neighbors, with their border people living within hailing distance.

6.我们不应该厚此薄彼。 We should not favor one to the neglect of the other. /We should not favor one over the other./ We should not play favoritism.

7.走自己的路, 让别人说去吧。 Go one’s own way, whatever others may say.

8.讲公道话, 办公道事 Fair in word and deed./ Act fair and square.

9.黄金发展期 golden/rare/prime period of development

10.矛盾凸显期 (二十一世纪上半叶,我们既面临“黄金发展期”,又面对矛盾凸显期。) a period of increasing problems a period of major challenges

11.赢得主动 to take the initiative; to gain the upper hand to master the situation

12.整体资源 use pooled/all/aggregate resources

13.随着世界制造业大规模向中国大规模转移,也带来一定程度的“能耗转移”。 The massive shift of manufacturing to China has also brought about a transfer of energy consumption(to a certain degree).

14.在经济和社会协调过程中的一系列两难问题 dilemma in the process of coordinating economic and social development

15.高投入,高消耗,高污染的旧式工业化道路 the old-style industrialization characterized by/with/ featuring high input, high consumption and high pollution

16.不合时宜的社会治理模式 outdated governance

17.后发优势 advantages of a late comer

18.中等收入阶层 middle-income group/section

19.中国特色的人力资源优势 China’s advantage in human resources

20.世界经验还要借鉴下去,中国特色还要坚持下去。 We will continue to draw on foreign experience while maintaining Chinese characteristics.

21.(消费结构)基本生活型 consumption pattern of low-income groups;consumption pattern of meeting the basic needs of life

22.现代生活型 modern-life consumption pattern

23.(在爱滋病区)实行免费匿名检测 free and confidential test

24.(政协)反映社情民意 to reflect social conditions and public opinion

25.忧患意识和塑造意识 sense of urgency and willingness to initiate /to shape things

26.两元经济结构 urban-rural dual economy

27.科学发展观 to take a scientific approach to development;

to pursue a scientific strategy of development

28.第十一个五年规划 the 11th five-year development guidelines

29.生活垃圾无害化处理 domestic garbage was harmlessly treated;

innocuous disposal of domestic garbage

30.绿化覆盖率 greenery coverage

31.农村土地确权 verify/establish rural land-use rights

32.多点支撑的增长局面初步形成

economic growth has been brought/driven by multiple props/driving forces /multi-stimuli

33.会展经济 conference economy

34.城乡一体的紧急医疗救援体系 integrated urban-rural emergency medical service system

35.全程办事代理制 full range agent service; through agent service

36.“一站式”办公 one-stop service

37.降低企业准入门槛 lower the threshold for market entry/access

38.工伤保险 work-related injury insurance

39.社会守法意识、公德意识有待增强 to strengthen law-abiding and social ethics awareness

40.城市快速路 city express way

41.城市主干路 city thoroughfare/avenue

42.公共客运系统 mass transit system

43.建设园林景观道路 to landscape roads

44.积极承接国际服务业的外包转移 seek more service jobs outsourced by foreign countries/companies

45.都市型农业 urban agriculture

46.(基本完成)国有大中型企业主辅分离、辅业改制任务 separate supporting operations from core operations in large and medium-sized SOEs and turn the former into independent companies(businesses/entities)

47.社会化服务体系 commercialized/outsourced services

48.经营性社会事业项目 public services; profit-making public services

49.中央在京高等教育资源优势 the concentration of high education resources under the central authorities located in Beijing

50.光机电一体化 optomechatronics(the integration of optics, mechanics and electronics)

51.加大对收受回扣、“红包”和乱收费等问题的治理力度 redouble efforts to prevent kickbacks, “red envelope”bribes and other improper charges in medical service

52.反省侵略历史 reproach itself for its past aggression

53.尊重人才 value competent/professional people

54.思想道德建设 moral/ethical education

55.现在达到的小康还是低水平的、不全面的、发展很不平衡的小康 The kind of “xiaokang”(moderate prosperity)obtained so far is still a low-level, incomplete and unbalanced one.

57.党和国家的集中统一 the centralization and unity of the Party as well as the state

58.加强党性修养 cultivate their Party spirit

59.人文交流 cultural and educational exchanges

bugzilla安装

 

Windows XP下安装基于IISBugzilla

安装准备:

1Windows平台下的perl解释器,推荐使用ActivePerl-5.8.8.822

下载地址:http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl

2MySQL数据库以及MySQL控制台,使用版本为4.1
下载地址为: http://www.mysql.com/downloads/index.html

http://www.mysql.com/downloads/mysql-5.0.html (MySQL 5.0 Alpha)

3Bugzilla,目前最新版本为3.12

下载地址:http://www.bugzilla.org/download.html

相关软件的安装

一、安装mysql

Mysql自定义安装到C:\Mysql,因为在BugzillaChecksetup.pl中默认Mysql安装在C:\mysql,如果安装到了其他目录,那么安装时需要对该文件进行手工修改,指定Mysql的安装路径。对于Mysql的安装,一路点击下一步即可。安装完成后,可以继续配置Mysql,设置新密码。

也可以cmd进入命令行窗口在C:\mysql\bin目录下运行mysql –u root –p 命令,进入到mysql的命令提示界面。其中-u表示使用的用户名,rootlinux 系统中的默认管理员身份,-p后跟密码,默认为空。可进入mysql后使用SQL语句“UPDATE user SET password = password('引号内为想该的密码') WHERE user = 'root';”来更改密码。

安装完成后,手动运行C:\mysql\bin\winmysqladmin.exe文件,它会自动将mysql数据库注册为服务并启动。此操作仅需运行一次,因为Mysql注册的服务为自动类型,所以每次计算机启动时均会自动运行。


然后,我们需要在mysql中创建Bugzilla的用户以及数据库,主要三条命令为:

a、建立数据库bugs
create database bugs;

 

b、建立用户bugs,密码为空,对Bugs数据库具有一定权限
GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, LOCK TABLES,DROP,REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '';

 

c、从 mysql 数据库授权表中重新装载权限。
FLUSH PRIVILEGES;

执行过程如下图:(这里我们建立的数据库名为Bugs,数据库用户名为Bugs,密码为空)

注意事项:

1、   安装Mysql时,要确保电脑中没有老版本的Mysql,如果有首先是要卸载mysql服务,不然就算卸载了mysql程序,服务中依然有mysql这项,问题就解决不了.假设我的mysql装在C:\MYSQL,先在我的电脑->管理->服务中将Mysql服务停止,然后在命令提示符c:\mysql\bin下运行mysqld-nt  -remove(中间有空格),会提示卸载成功.然后再在    控制面板 >>> 添加或删除程序  中卸载mysql,之后重启,再装上mysql运行mysqld.exe(win2000下是mysqld-nt.exe),命令提示符框一闪而过,这样你这可以在任务管理器中看到mysql这个进程了

二、安装Activeperl
Activeperl
的安装很简单,一路点击Next即可,它会自动安装到C:\perl目录。同时在系统变量Path中增加自己的 C:\perl\bin路径信息。

三、安装、配置WEB服务器。
对于IIS,一般Windows 2000会默认安装,如果没有安装,那么可以在控制面板 -> 添加删除程序 -> 添加/删除Windows组件中来添加“Internet 信息服务器,系统会自动安装相关组件(此时需要 Windows 的安装盘)。

配置Web 服务器的目的就是要让Web服务器能够调用perl去解析执行.pl.cgi的文件,同时增加Index.cgi为默认文档,然后增加Bugzilla所在目录的WEB共享别名。

IIS的配置
对于IIS,在安装ActivePerl的时候安装程序为我们自动生成了.pl.plx的映射,但是没有生成.cgi的映射,我们可以在 IIS管理器里面进行配置,在默认网站或者Internet信息服务上面按右键选择属性出现服务器属性对话框(依据IIS版本和设置所影响范围不同略有不同

虚拟目录标签下,选择配置按钮、“添加”应用程序扩展名映射。

可执行文件名:

C:\Perl\bin\perl.exeperl目录)  -xC:\Bugzillabugzilla目录)  -wT "%s"  %s
 扩展名: .cgi
 动作

 限制为:GET,HEAD,POST

 然后,在文档标签下,添加index.cgi文件为默认文档。

 

  注意事项:

  1、   对于没有进行过配置的IIS,可能会禁止匿名访问,如果我们要允许匿名访问,可以在设置页面的目录安全性标签中的匿名访问和验证控制中选择编辑,去掉集成Windows验证选项即可。

  2、   如果Bugzilla所在目录为NTFS分区,还需要设置所在目录的安全属性,允许IUSR_XX(Internet 来宾帐户,这里XXXX和计算机名相同)去读写该目录。

  3、   如果默认网站停止不能启动,可能是80端口被迅雷或其他应用程序占用的原因,停止或更改其他程序端口即可

 

四S四、Perl脚本的安装以及Bugzilla的初步配置。
  Bugzilla为我们准备了一个很好的脚本文件checksetup.pl来进行配置,我们随时可以运行chekcsetup.pl文件来进行服务器配置而不会对Bugzilla系统造成任何影响。

 1、运行该脚本的方法是:

在命令行下进入Bugzilla的主目录,键入:perl  checksetup.pl,运行后,该脚本会给出系统所缺的各种元素乃至获取办法。

 

 2、初次运行的时候,系统首先会验证perl模块是否足够,一般会缺少比较多的perl模块。如果我们是单独下载的每个perl模块进行安装,则需要使用ppm install <perl模块名.ppd> 进行。

下载地址:http://search.cpan.org/(注意模块版本应高于要求的版本)


如果可以连接上网络,那么一切很简单,只需要进入bugzilla目录下:

C:\>cd bugzilla

 

C:\Bugzilla>ppm

在弹出的Perl Package Manager窗口下安装bugzilla需要的perl模块,如果有缺少的或版本不对的再单独下载安装。

 

 3、当插件安装完后,再次运行perl checksetup.pl,系统会生成localconfig文件,此文件是包含了Bugzilla的一些配置信息,如果您的mysql安装到C:\mysql,所创建的数据库名称为bugs 数据库用户为bugs,密码为空,那么不需要对localconfig文件进行任何修改,否则需要对localconfig的相应条目进行修改。

# What SQL database to use. Default is mysql. List of supported databases

# can be obtained by listing Bugzilla/DB directory - every module corresponds

# to one supported database and the name corresponds to a driver name.

$db_driver = 'mysql';

 

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

$db_host = 'localhost';

 

# The name of the database

$db_name = 'bugs';

 

# Who we connect to the database as.

$db_user = 'bugs';

 

# 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 (\)

# (Far simpler just not to use those characters.)

$db_pass = '';

 

# 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;

 

 4、修改好localconfig文件,再次运行 perl checksetup.pl,如果不出意外的话,会顺利编译模板,然后建立数据库,最后提示输入超级用户信箱、用户姓名以及口令。输入后,Bugzilla 基本安装完成,可以从 web 上来进行访问了。

 

 注意事项:

 1WindowsXP下安装Perl Cpan模块

a.http://search.cpan.org/搜索你所需要的模块下载,一般是gz,或者tgz格式

b.winRAR之类解压缩软件接压缩

c.进入COMMAN模式,进入到刚才解压缩的文件夹,含有“Makefile.PL”文件的目录下:

依次运行:

        perl Makefile.PL
        nmake
        nmake test
        nmake install

安装就完成了.(有依赖关系的模块需要先安装依赖模块)

 

 2、服务器输入http://localhost/Bugzilla/可以访问bugzilla,其他电脑输入服务器地址http://服务器IP/Bugzilla/不能访问

   可能是服务器防火墙阻止了80端口的访问

控制面板->防火墙->例外->添加端口

 

遇到的问题

⑴用帐号登录BUGZILLA后,每页上方都会显示:

  Use of uninitialized value  in integer addition (+) at c:/Perl/lib/Time/Local.pm line 76.

  解决方法:

     edit c:/perl/lib/Time/Local.pm, look for the following line   (should  be at line 35):

     $MinInt = -$MaxInt - 1;

     change it to:

     $MinInt = 0;

 

BUGZILLA安装参考文章链接

http://www.51testing.com/?98723/action_viewspace_itemid_11299.html

http://dev.csdn.net/article/49/49481.shtm

http://blog.csdn.net/ycw/archive/2004/02/07/4187.aspx

BUGAILLA安装技巧和注意事项

⑴这里讲一讲首页中的“常用功能”、”常用链接“的链接显示有些不习惯,可以修改 template\cn\default\global\common-links.html.tmpl
<ul> <li>  转换成表格 <table> <tr> <td> ,显示在一行中,就好看多了。

  同样的,英文也处理一下,
template\en\default\global\common-links.html.tmpl
<ul> <li>  转换成表格 <table> <tr> <td> ,显示在一行中,就好看多了。

 

⑵设置parameters

用超级用户登录后,点击parameters设置bugzilla的参数,其中urlbase是以后发邮件中包含的,.所以一定要修改它, maintainer修改为超级用户,下面的就不是那么重要了,点击最下面的Submit Changes完成修改,再回到这个页面上查看,看是否已经修改,如果不能修改,,,那么就只有出绝招了,嘿嘿,,打开bugzilla目录C:\bugzilla\data下的params,在这里面手动修改它的参数,完成后就OK.

⑶commentonresolve:设为ON,系统将强制要求开发者处理完BUG后,必须填写修改的内容。

关于Bugzilla2.20发邮件以及邮件乱码的问题

1. 刚才试了,在Bugzilla2.20下发邮件,不必要安装什么特殊的sendmail.exe软件之类,只需要Perl的Mail::Mailer模块(这个模块你肯定装了,不然Bugzilla都转不起来);当然, 与email发送相关的参数 如 smtp server之类一定要在 Bugzilla的系统设置(Parameters)里面 设好;

2. 要想邮件不出现乱码,在使用UTF8编码的汉化包下,做如下改动:

a. \Bugzilla\CGI.pm的第55行改为  $self->charset('UTF-8');

b. 进入Bugzilla的系统设置(Parameters)里面,在 newchangedmail 一项里的 文本框文字的第一行加上Content-type: text/plain; charset=UTF-8 ,加后变为:
Content-type: text/plain; charset=UTF-8
From: bugzilla-daemon
To: %to%

.......

保存退出。

c. 部分用户反映,经过以上两个步骤后,收到的email的主题仍为乱码,网上提供的解决方案是:

打开文件 \Bugzilla\BugMail.pm, 在第 586 行加上两行:

use Encode;
$substs{"summary"} = encode('MIME-Q', $substs{"summary"});

不知什么原因,我用Netscape Client接受的邮件的主题行仍然为乱码。。但用Foxmail接受的全部OK。

采用GB2312编码格式的汉化包(不推荐)可参照以上步骤解决邮件乱码问题。

(注明:我使用此方法并没有解决我邮件乱码的问题,但感觉这个方法以后会有用,所以贴在此处。)