zoukankan      html  css  js  c++  java
  • linux bugfree 安装

    前段时间用了下bugzilla,请参考:linux bugzilla nginx 安装配置 详解,感觉不是很好用。下面说一下,bugfree的安装

    bugfree3.0.1是用php的yii框架开发的,其实是一个cms。

    一,什么是bugfree

    BugFree是借鉴微软的研发流程和Bug管理理念,使用PHP+MySQL独立写出的一个Bug管理 系统。简单实用、免费并且开放源代码(遵循GNU GPL)。 命名BugFree 有两层意思:一是希望软件中的缺陷越来越少直到没有,Free嘛;二是表示它是免费且开放源代码的,大家可以自由使用传播。

    二,安装配置php nginx mysql

    1,安装

    1. # yum install php-curl php-mbstring php-gd php-mysql php-pdo php-mcrypt redis php-redis nginx mysql mysql-server php-fpm  

    2,启动mysql和redis

    1. # /etc/init.d/mysqld start  
    2. # /etc/init.d/redis start  

    3,创建数据库

    1. # mysql -u root  
    2. mysql> create database bugfree;  
    3. mysql> use bugfree;  
    4. mysql> set names utf8;  

    4,修改php-fpm的配置文件

    1. # vim /etc/php-fpm.d/www.conf    
    2.   
    3. ;php_value[session.save_handler] = files  
    4. ;php_value[session.save_path] = /var/lib/php/session  
    5. php_value[session.save_handler] = redis  
    6. php_value[session.save_path] = "tcp://127.0.0.1:6379"  
    7.   
    8. # /etc/init.d/php-fpm start   //启动php-fpm  

    5, bugfree解压和目录设置

    1. # unzip bugfree.zip  
    2. # mv bugfree3.0.1 /var/www/html/bugfree  
    3.   
    4. chown apache.apache -R /var/www/html/bugfree    //apache是php-fpm的启动用户  
    5.   
    6. mkdir -p /var/www/html/BugFile     //创建目录  
    7.   
    8. chown apache.apache -R /var/www/html/BugFile  

    6,nginx配置

    1. [root@network conf.d]# cat /etc/nginx/conf.d/bugfree.conf  
    2.         server {  
    3.                        listen       80;  
    4.                         server_name  192.168.10.202 ;  
    5.                        # root /home/tank/workspace;  
    6.                         root /var/www/html/bugfree;  
    7.                         location / {  
    8.                                         index  index.html index.htm index.php;  
    9.                                         if (!-e $request_filename){  
    10.                                                         rewrite ^/(.*) /index.php last;  
    11.                                         }  
    12.                                 #autoindex  on;  
    13.                         }  
    14.   
    15.                         location ~ .php$ {  
    16.                                 fastcgi_pass   127.0.0.1:9000;  
    17.                                 fastcgi_index  index.php;  
    18.                                 fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;  
    19.                                 include        fastcgi_params;  
    20.                         }  
    21.   
    22.                 }  
    23.   
    24. [root@localhost conf.d]# /etc/init.d/nginx start   //启动nginx  

    到这儿就安装配置好了,url访问http://192.168.10.202,就可以进行初始化设置了。

  • 相关阅读:
    @value传值到static字段
    [Err] 1701
    eclipse search只能打开一个文件
    FTPClient登录慢的问题
    nginx克隆之后问题
    centos-ftp搭建
    addEventListener和attachEvent的区别 分类: JavaScript 2015-05-12 19:03 702人阅读 评论(0) 收藏
    python中使用eval() 和 ast.literal_eval()的区别 分类: Python 2015-05-11 15:21 1216人阅读 评论(0) 收藏
    初学者必知的Python中优雅的用法 分类: Python 2015-05-11 15:02 782人阅读 评论(0) 收藏
    javascript中函数声明和函数表达式的区别 分类: JavaScript 2015-05-07 21:41 897人阅读 评论(0) 收藏
  • 原文地址:https://www.cnblogs.com/xiaoping-2014/p/4346777.html
Copyright © 2011-2022 走看看