zoukankan      html  css  js  c++  java
  • 数据库安装

    一,mariadb

    1,centos安装mariadb
    yum list mariadb-server
    yum install mariadb-server
    rpm -qa|grep mariadb-server
    systemctl start mariadb
    netstat -tunlp
     
    二,mysql,
    1,
    2,
     
    三,pgsql
    1,先安装connect驱动
    #!/bin/bash

    apt-get install -y postgresql-server-dev-9.5
    cd php-5.4.27/ext/pgsql
    /alidata/server/php/bin/phpize
    ./configure --with-php-config=/alidata/server/php/bin/php-config
    CPU_NUM=$(cat /proc/cpuinfo | grep processor | wc -l)
    if [ $CPU_NUM -gt 1 ];then
    make -j$CPU_NUM
    else
    make
    fi
    make install
    cd ..
    echo "extension=pgsql.so" >> /alidata/server/php/etc/php.ini

    2,安装pdo驱动

    cd php-5.4.27/ext/pdo_pgsql
    /alidata/server/php/bin/phpize
    ./configure --with-php-config=/alidata/server/php/bin/php-config
    CPU_NUM=$(cat /proc/cpuinfo | grep processor | wc -l)
    if [ $CPU_NUM -gt 1 ];then
    make -j$CPU_NUM
    else
    make
    fi
    make install
    cd ..
    echo "extension=pdo_pgsql.so" >> /alidata/server/php/etc/php.ini

    四,redis

    #!/bin/bash

    if [ ! -f phpredis-master.zip ];then
    wget https://codeload.github.com/phpredis/phpredis/zip/master
    fi
    rm -rf phpredis-master
    unzip phpredis-master.zip
    cd phpredis-master
    /alidata/server/php/bin/phpize
    ./configure --with-php-config=/alidata/server/php/bin/php-config
    CPU_NUM=$(cat /proc/cpuinfo | grep processor | wc -l)
    if [ $CPU_NUM -gt 1 ];then
    make -j$CPU_NUM
    else
    make
    fi
    make install
    cd ..
    echo "extension=redis.so" >> /alidata/server/php/etc/php.ini

    五,memcached
    1,
    !/bin/bash
    
    #memcache
    if [ ! -f memcache-3.0.6.tgz ];then
            wget http://oss.aliyuncs.com/aliyunecs/onekey/php_extend/memcache-3.0.6.tgz
    fi
    rm -rf memcache-3.0.6
    tar -xzvf memcache-3.0.6.tgz
    cd memcache-3.0.6
    /alidata/server/php/bin/phpize
    ./configure --enable-memcache --with-php-config=/alidata/server/php/bin/php-config
    CPU_NUM=$(cat /proc/cpuinfo | grep processor | wc -l)
    if [ $CPU_NUM -gt 1 ];then
        make -j$CPU_NUM
    else
        make
    fi
    make install
    cd ..
    echo "extension=memcache.so" >> /alidata/server/php/etc/php.ini
  • 相关阅读:
    Bootstrap Table
    XML CDATA识别“<,>”
    LigerUI之Grid使用详解(一)——显示数据 --分页
    Oracle中对XMLType的简单操作(extract、extractvalue...)
    Qt实现应用程序单实例运行--LocalServer方式
    Live m3u8播放3个文件自动停止问题
    markdown
    node.js 知识记录
    .NET 高级架构师 WEB架构师 ------时间 总结 专注
    .NET 高级架构师 WEB架构师 ------走正确的路
  • 原文地址:https://www.cnblogs.com/Crius/p/env.html
Copyright © 2011-2022 走看看