I have a few question regarding the installation.
How do I know if redis and my set up works?
I don't get any error and my local installation works well. I also used the fake data extension to generate a few bigger fake discussions.
My steps were as follows:
- install redis-server
- changing the redis conf (another port for security reason, changing maxmemory to 512 and policy to allkeys-lru)
- install flarum-redis
- changing the extend.php to:
return [
// Register extenders here to customize your forum!
new Blomstra\Redis\Extend\Redis([
'host' => 'localhost',
'password' => null,
'port' => XXXXX,
'database' => 1,
])
];
Next steps would be setting up supervisor.
So here are the questions:
- Are the steps above correct?
- I read in this discussion about different databases for each service. Is this a best practice example?
- What is the difference between 2. and 3. (config array) in the info at top? Different passwords and ports?
Edit:
redis-cli -p XXXXX
Responses with a PONG.