wget https://pecl.php.net/get/redis-6.0.2.tgz tar -xzvf redis-6.0.2.tgz cd redis-6.0.2/ phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install4、增加redis擴展修改php.ini配置,增加如下內(nèi)容。1
首先,創(chuàng)建目錄redis,用于存放后面的相關(guān)東西。 root@localhost:~$mkdir-p ~/redis~/redis/data data目錄將映射為redis容器配置的/data目錄,作為redis數(shù)據(jù)持久化的存儲目錄 進入創(chuàng)建的redis目錄,創(chuàng)建Dockerfile FROM debian:jessie # add our user and group first to make sure their IDs get assigned consistently,...