SuperCLine

Every Morning Tell Yourself That You Are Getting More And More Better!

Centos 7 部署 Apache、Mysql、Redis、PHP


Apache

Mysql

Modify Mysql Root Password

Redis

PHP 7.0

Predis

<?php
require "predis/autoload.php";
Predis\Autoloader::register();

$single_server = array(
'host' => '127.0.0.1',
'port' => 6379,
);

$redis = new Predis\Client($single_server);

try
{
    $redis->set('fx', 'supercline.com');
    $value = $redis->get('fx');
    var_dump($value);
}
catch(Exception $e)
{
    var_dump($e);
}

fix predis permission denied