qileilove

          blog已經(jīng)轉(zhuǎn)移至github,大家請(qǐng)?jiān)L問(wèn) http://qaseven.github.io/

          centos6.3 Bugfree安裝配置

           今天幫公司測(cè)試部同事將bugfree從windows下遷移到centos下,大概步驟如下:

            (1)、關(guān)閉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不區(qū)分大小寫

          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

            啟動(dòng) httpd 服務(wù)

            service httpd restart

            (6)、安裝 bugfree

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

            在改目錄下創(chuàng)建BugFile文件夾

            mkdir BugFile

            chmod -R o+rwx Bugfile

            配置 bugfree

            http://localhost/bugfree

            (7)、數(shù)據(jù)導(dǎo)入

            cd /usr/bin

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

            把導(dǎo)出文件導(dǎo)入數(shù)據(jù)庫(kù)

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


          ?。?)、拷貝 BugFile 目錄數(shù)據(jù)

            1: 把原來(lái) BugFile 目錄壓縮

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

            unzip BugFile.zip

            chmod -R o+rwx BugFile

            (9)、設(shè)置 httpd 監(jiān)聽多個(gè)端口(不設(shè)置默認(rèn)端口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 閱讀(478) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          <2013年9月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 普洱| 房山区| 永济市| 蒲江县| 西昌市| 营山县| 郯城县| 探索| 四子王旗| 灵寿县| 九台市| 安化县| 石家庄市| 禹城市| 宜都市| 山东省| 贺州市| 长汀县| 秭归县| 龙泉市| 婺源县| 炎陵县| 渝北区| 白山市| 英超| 莱芜市| 神池县| 咸阳市| 普洱| 西乌| 紫阳县| 临安市| 西林县| 时尚| 中方县| 澄江县| 房山区| 平定县| 桓台县| 大化| 海口市|