数据库安装

Posted Crius

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据库安装相关的知识,希望对你有一定的参考价值。

一,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,
2,
四,redis
1,
2,
五,memcached
1,
2,
!/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

 

以上是关于数据库安装的主要内容,如果未能解决你的问题,请参考以下文章