




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CentOS 6.5安装Bugzilla1、安装所需要的组件rootbogon # yum -y install httpd mod_ssl mysql-server mysql php-mysql gcc perl* mod_perl-devel2、配置httpd.conf,增加蓝色一行,随后启动httpd,设置为开机启动rootbogon # 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 doesnt 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 :80ServerName localhost:80rootbogon # service httpd start正在启动 httpd:确定rootbogon # chkconfig httpd onrootbogon #3、编辑hosts文件,为主机名配置一个本地IP地址,随后启动mysqld服务 rootbogon # vi /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4:1 localhost localhost.localdomain localhost6 localhost6.localdomain6 bogonrootbogon # service mysqld start初始化 MySQL 数据库: Installing MySQL system tables.OKFilling help tables.OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE 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-passwordAlternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly 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.plcd /usr/mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/bin/mysqlbug script!确定正在启动 mysqld: 确定rootbogon # chkconfig mysqld onrootbogon #4、配置mysqlrootbogon # mysqladmin -u root -p password 123456Enter password: 这里要求输入之前的密码,由于默认密码为空,直接回车即可rootbogon # mysql -uroot -p123456Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 9Server version: 5.1.73 Source distributionCopyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.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)mysql grant all on bugs.* to rootlocalhost identified by 123456;Query OK, 0 rows affected (0.00 sec)mysql flush privileges;Query OK, 0 rows affected (0.01 sec)mysql quitByerootbogon #5、下载并解压Bugzilla rootbogon # tar xf bugzilla-4.4.tar.gz -C /var/www/html/rootbogon # cd /var/www/html/rootbogon html# mv bugzilla-4.4/ bugzillarootbogon html#5、检测Bugzilla缺少的组件rootbogon html# cd bugzilla/rootbogon bugzilla# ./checksetup.pl -check-modules随后会打印一些信息,会看到一些标为not found的缺失组件6、在线安装Bugzilla缺少的组件(安装时间较长)rootbogon bugzilla# perl install-module.pl -allChecking for CPAN (v1.81) ok: found v1.9402 Checking for YAML (any) ok: found v0.70 Checking for ExtUtils-MakeMaker (v6.31) ok: found v6.55_02 Fetching with LWP: /authors/01mailrc.txt.gz.Installing /var/www/html/bugzilla/lib/man/man3/DBD:SQLite:Cookbook.3pmInstalling /var/www/html/bugzilla/lib/man/man3/DBD:SQLite:Fulltext_search.3pmInstalling /var/www/html/bugzilla/lib/man/man3/DBD:SQLite:VirtualTable.3pmAppending 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 - OKrootbogon bugzilla#7、执行checksetup.pl后,目录下会生成一个localconfig文件rootbogon bugzilla# ./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 2013Checking perl modules.Checking for CGI.pm (v3.51) ok: found v3.64 .Please edit the file ./localconfig and then re-run checksetup.plto complete your installation.rootbogon bugzilla#8、编辑localconfig文件,将如下参数设置正确rootbogon bugzilla# 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 databases 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. Its normally advisable to specify# a password for your bugzilla database user.# If you use apostrophe () or a backslash () in your password, youll# need to escape it by preceding it with a character. () or ()# (It is far simpler to just not use those characters.)$db_pass = 123456;# Sometimes the database server is running on a non-standard port. If thats# 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、设置管理员信息和密码。下面的管理员邮箱和密码必须正确,否则会发不出邮件。rootbogon bugzilla# ./checksetup.pl* This is Bugzilla 4.5.2 on perl 5.10.1.Enter the e-mail address of the administrator: # bugzilla管理员账号Enter the real name of the administrator: xiegxEnter a password for the administrator account: 123456Please retype the password to verify: 123456 is now set up as an administrator.Creating initial dummy product TestProduct.Now that you have installed Bugzilla, you should visit the Parameterspage (linked in the footer of the Administrator account) to ensure itis set up as you wish - this includes setting the urlbase option tothe correct URL.checksetup.pl complete.rootbogon bugzilla#10、配置httpd参数,进入编辑器后按Shift + g键将光标移动到最下行,增加蓝色部分的配置rootbogon bugzilla# vi /etc/httpd/conf/httpd.conf# 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 # DocumentRoot /www/docs/# ServerName # ErrorLog logs/-error_log# CustomLog logs/-access_log common# DocumentRoot /var/www/html/bugzilla/ AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit FileInfo Indexes11、编辑.htaccess文件,用井号注释Options -Indexes一行rootbogon bugzilla# vi .htaccess# Options -Indexes12、配置邮箱 rootbogon # vi /var/www/html/bugzilla/data/params.mail_delivery_method = SMTP,mailfrom = ,maintainer = ,.smtp_password = 输入邮箱的登录密码,smtp_ssl = 0,smtp_username = ,smtpserver
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年教师招聘之《小学教师招聘》综合提升练习题附答案详解【突破训练】
- 教师招聘之《小学教师招聘》练习题库【夺分金卷】附答案详解
- 教师招聘之《小学教师招聘》通关检测卷及答案详解【典优】
- 教师招聘之《幼儿教师招聘》复习试题及参考答案详解(基础题)
- 2025年教师招聘之《小学教师招聘》题库检测试卷含答案详解【满分必刷】
- 演出经纪人之《演出经纪实务》能力检测及答案详解(真题汇编)
- 2025年教师招聘之《小学教师招聘》综合提升测试卷【培优b卷】附答案详解
- 2025年教师招聘之《小学教师招聘》通关试卷提供答案解析及参考答案详解(夺分金卷)
- 教师招聘之《小学教师招聘》能力测试备考题含答案详解(a卷)
- 2025年教师招聘之《幼儿教师招聘》模拟考试试卷附参考答案详解【培优】
- 部编版六年级语文上册重点难点解析
- 重庆市南开中学高2026届高三第一次质量检测+化学答案
- 肖婷民法总则教学课件
- 教育培训课程开发与实施指南模板
- 2025保密协议范本:物流行业货物信息保密
- 2025卫星互联网承载网技术白皮书-未来网络发展大会
- 顺丰转正考试题库及答案
- 半导体行业面试问题及答案解析
- 《研学旅行课程设计与实施》全套教学课件
- DB15T 2618-2022 公路工程工地试验室建设与管理规范
- 2025至2030年中国绿色船舶行业发展前景预测及投资方向研究报告
评论
0/150
提交评论