nginxs

运维博客

SSDB管理工具phpssdbadmin

2016/04/11 22:25 于 安全 0

微信 微博 豆瓣 人人

phpssdbadmin是php语言写的SSDB管理工具,下面讲一下安装过程


  1. 克隆代码

git clone https://github.com/ssdb/phpssdbadmin.git



  1. 修改配置

    [root@ssdb-node1 html]# cat phpssdbadmin/app/config/config.php 
    <?php
    define('ENV', 'online');

    return array(
    'env' => ENV,
    'logger' => array(
    'level' => 'all', // none/off|(LEVEL)
    'dump' => 'file', // none|html|file, 可用'|'组合
    'files' => array( // ALL|(LEVEL)
    #'ALL' => dirname(__FILE__) . '/../../logs/' . date('Y-m') . '.log',
    ),
    ),
    'servers' => array(
    array(
    'host' => '192.168.1.11',
    'port' => '8888',
    //'password' => '22222222',
    ),
    array(
    'host' => '192.168.1.12',
    'port' => '8888',
    //'password' => '22222222',
    ),
    array(
    'host' => '192.168.1.13',
    'port' => '8888',
    //'password' => '22222222',
    ),

    ),
    'login' => array(
    'name' => 'nginxs',
    'password' => 'nginxs.net', // at least 6 characters
    ),
    );

  2. 配置nginx

    server
    {
    listen 8080;
    root /usr/local/nginx/html;
    index index.htm index.html index.php;
    access_log logs/phpssdbadmin.com-access.log access_log;
    location /phpssdbadmin {
    try_files $uri $uri/ /phpssdbadmin/index.php?$args;
    }
    location ~ \.php$
    {
    fastcgi_pass unix:/usr/local/php-fastcgi/php-fpm.sock;
    fastcgi_index index.php;
    include fastcgi.conf;
    }
    location / {
    root /usr/local/nginx/html;
    index index.php index.html index.htm;
    }

    }

取消订阅请在评论框回复你的邮箱,会自动取消订阅
微信扫描二维码了解更多 ->

[运维博客]
[运维博客](http://nginxs.blog.51cto.com/

phpssdbadminssdb管理工具ssdb

发表评论
已登录为 [退出]


管理