自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS上搭建Bugzilla系統(tǒng)

系統(tǒng) Linux
Bugzilla作為最好的Bug管理系統(tǒng)之一,它是主要用Perl編寫的開源軟件,在很多公司或組織都在使用Bugzilla,如:RedHat、Linux kernel等。

Bugzilla作為***的Bug管理系統(tǒng)之一,它是主要用Perl編寫的開源軟件,在很多公司或組織都在使用Bugzilla,如:RedHat、Linux kernel等。

我也在公司使用Bugzilla管理Bug,最近在對Bugzilla進行定制化,也寫一下Bugzilla的安裝過程吧。

本文記錄的是在CentOS系統(tǒng)上使用Nginx做Web服務器安裝Bugzilla的過程,另外,有些細節(jié)不寫了,寫一些主要的過程,后面的參考資料里面也有不錯的文檔。

1. 下載Bugzilla源代碼,這個不多說了。

2. 安裝一些必要的軟件包

  1. yum install perl-CPAN  
  2. yum install mod_perl  
  3. yum install mod_perl-devel  
  4. yum install fcgi-perl 

3. 安裝必要的perl模塊并檢查安裝

  1. cd bugzilla  
  2. perl install-module.pl --all  
  3. ./checksetup.pl 

當然,這其中還涉及到MySQL的用戶名、密碼之類的交互式輸入配置。

4. 啟動fastcgi wrapper程序,從這里(fastcgi-wrapper)下載,并運行即可。

5. 修改Nginx配置文件,使其可以正常處理perl CGI程序,我的一個修改如下:

  1. diff --git a/nginx.conf b/nginx.conf  
  2. index 8730c99..114d9d8 100644  
  3. --- a/nginx.conf  
  4. +++ b/nginx.conf  
  5. @@ -83,10 +83,20 @@ http {  
  6.  #       config_apps_end  
  7.    
  8.           location / {  
  9. -            if ( !-f $request_filename ) {  
  10. -                proxy_pass          http://jboss8080;  
  11. -                 break;  
  12. -            }  
  13. +            root   /usr/local/nginx/html;  
  14. +            index  index.html index.htm index.cgi index.pl;  
  15. +           # if ( !-f $request_filename ) {  
  16. +           #     proxy_pass          http://jboss8080;  
  17. +           #      break;  
  18. +           # }  
  19. +        }  
  20. +  
  21. +        location ~ \.pl|cgi$ {  
  22. +            root           html;  
  23. +            fastcgi_pass   127.0.0.1:8999;  
  24. +            fastcgi_index  index.pl;  
  25. +            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
  26. +            include        fastcgi_params;  
  27.          }  
  28.    
  29.          error_page    500 502 503 504  /50x.html; 

6. ***,改好bugzilla目錄的權限,并重啟nginx即可,如:

  1. cd /usr/local/nginx/  
  2. chown nobody:nobody html -R  
  3. service nginx restart 

由于缺少一些軟件包,在安裝過程中可能出現的問題和解決方案如下:

  1.  [root@jay-centos html]# perl install-module.pl –all  
  2. Can’t locate CPAN.pm in @INC (@INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi /usr/local/nginx/html/lib /usr/local/nginx/html /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nginx/html/Bugzilla/Install/CPAN.pm line 24.  
  3. BEGIN failed–compilation aborted at /usr/local/nginx/html/Bugzilla/Install/CPAN.pm line 24.  
  4. Compilation failed in require at install-module.pl line 21.  
  5. BEGIN failed–compilation aborted at install-module.pl line 21.  

解決方案:yum install perl-CPAN

  1. Can’t find mod_perl installed  
  2. The error was: Can’t locate mod_perl2.pm in @INC (@INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi /usr/local/nginx/html/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 149.  

解決方案:yum install mod_perl

  1. Can’t locate ModPerl/MM.pm in @INC (@INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi /usr/local/nginx/html/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 60.

解決方案:yum install mod_perl-devel

  1. [root@jay-centos html]# ./fastcgi-wrapper  
  2. Can’t locate FCGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./fastcgi-wrapper line 3.  
  3. BEGIN failed–compilation aborted at ./fastcgi-wrapper line 3.  

解決方案:yum install fcgi-perl

參考資料:

http://www.bugzilla.org/docs/4.4/en/html/installation.html

http://blog.hyperexpert.com/how-to-install-the-latest-bugzilla-on-centos/

http://blog.codylab.com/install-bugzilla-centos-6-3-step-step/

原文鏈接:http://outofmemory.cn/wr/?u=http%3A%2F%2Fsmilejay.com%2F2014%2F08%2Finstall-bugzilla-on-centos%2F%3Futm_source%3Drss%26utm_medium%3Drss%26utm_campaign%3Dinstall-bugzilla-on-centos

責任編輯:牛小雨 來源: 笑遍世界的博客
相關推薦

2012-04-28 08:43:12

CentOS

2014-07-24 10:17:25

CentOSSquid

2014-12-15 10:23:12

CentOSDocker

2017-05-16 14:47:23

2010-03-31 15:45:45

CentOS系統(tǒng)

2020-07-16 08:37:39

NginxCentOS7搭建

2010-01-15 10:02:57

CentOS5.2 A

2010-01-13 10:14:45

2011-03-09 13:03:15

Centos搭建LAMP

2011-03-29 10:22:35

CentOS安裝Zabbix

2011-03-11 17:14:27

2018-12-07 09:05:15

CentOSPXE服務器

2011-02-25 16:54:54

CentOSpureftpd搭建

2014-11-18 14:12:19

CentOS入侵檢測系統(tǒng)

2015-01-27 10:18:38

入侵檢測系統(tǒng)AIDECentOS

2009-03-04 10:32:43

L2MPlighttpdUbuntu

2009-03-04 11:54:28

LinuxUbuntuL2MP

2010-04-01 10:13:22

CentOS系統(tǒng)

2017-06-06 14:25:54

CentOS 7Ceph分布式存儲系統(tǒng)

2019-06-05 10:20:09

安全更新命令Linux
點贊
收藏

51CTO技術棧公眾號