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

           ?。?)、數據導入

            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 閱讀(477) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2013年9月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 彩票| 仲巴县| 潜江市| 蓝山县| 沙河市| 华蓥市| 罗江县| 松原市| 咸阳市| 怀远县| 格尔木市| 白银市| 肥西县| 静宁县| 弥勒县| 六枝特区| 大宁县| 北安市| 光泽县| 高密市| 重庆市| 叙永县| 桂阳县| 封开县| 汨罗市| 黑山县| 景宁| 措勤县| 新蔡县| 武宁县| 荃湾区| 湖南省| 乌兰浩特市| 和田县| 无锡市| 康乐县| 南昌县| 贞丰县| 库伦旗| 金乡县| 苏州市|