發表文章

目前顯示的是 10月, 2018的文章

在php7 上面安裝redis擴展

圖片
安裝擴展步驟 wget https://github.com/phpredis/phpredis/archive/develop.zip 會下載檔案 develop.zip 解壓縮 unzip develop.zip 如果沒有解壓縮zip的話請安裝 yum -y install unzip cd phpredis-develop/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make make install 接下來依照系統提示給的路徑去查看,可以看到多了一個redis.so的檔案 修改php.ini 新增 extension= redis.so 重啟php-fpm 重啟web server 使用phpinfo去查看有沒有新增redis的擴展 參考資料: https://renwole.com/archives/274

centos 7 安裝mariadb

圖片
centos 7 安裝mariadb10.2.18 rpm -qa | grep -i mariadb rpm -ev --nodeps *** wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-compat.rpm wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-common.rpm wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-server.rpm wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-client.rpm wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-devel.rpm wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/galera-25.3.24-1.rhel7.el7.centos.x86_64.rpm rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum -y install jemalloc rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-...