qileilove

blog已经转移至github,大家请访问 http://qaseven.github.io/

centos6.3 Bugfree安装配置

 今天帮公司测试部同事将bugfree从windows下迁移到centos下,大概步骤如下:

  (1)、关闭Selinux

vi /etc/selinux/config
modify
SELINUX=enforcing
to
SELINUX=disabled
reboot

  (2)、安装 mysql

yum install mysql mysql-server
chkconfig --levels 235 mysqld on
service mysqld start

  (3)、让MySQL不区分大小写

vi /etc/my.cnf
add at [mysqld]
lower_case_table_names=1
service mysqld restart

  (4)、安装 php

  yum install php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc

  (5)安装 php 插件   (有就不需要安装了)

  rpm -ivh libmcrypt-2.5.8-9.el6.rpm

  rpm -ivh php-mcrypt-5.3.3-1.el6.rpm

  启动 httpd 服务

  service httpd restart

  (6)、安装 bugfree

unzip bugfree3.0.4.zip
mv bugfree /var/www/html
cd /var/www/html
chmod -R o+rwx bugfree

  在改目录下创建BugFile文件夹

  mkdir BugFile

  chmod -R o+rwx Bugfile

  配置 bugfree

  http://localhost/bugfree

  (7)、数据导入

  cd /usr/bin

  mysqldump -u root -proot密码 bugfree > bugfree2.sql

  把导出文件导入数据库

mysql -u root -p
mysql> use bugfree
mysql> source bugfree.sql
mysql> \q


 (8)、拷贝 BugFile 目录数据

  1: 把原来 BugFile 目录压缩

  2: 把 BugFile.zip 放到 /var/www/html/bugfree/ 目录下

  unzip BugFile.zip

  chmod -R o+rwx BugFile

  (9)、设置 httpd 监听多个端口(不设置默认端口80)

  vi /etc/httpd/conf/httpd.conf

  在行 Listen 80 下增加

  Listen 9011

  在文件末尾增加

NameVirtualHost *:9011
<VirtualHost *:9011>
DocumentRoot /var/www/html/bugfree
ErrorLog logs/bugfree-error_log
CustomLog logs/bugfree-access_log common
</VirtualHost>

  (10)、添加防火墙端口

vi /etc/sysconfig/iptables
add
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9011 -j ACCEPT
service iptables restart

posted on 2013-09-11 10:59 顺其自然EVO 阅读(445) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 
<2013年9月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

导航

统计

常用链接

留言簿(55)

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜