Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ After enabling the second Redis instance you need to change the configured Redis
```console
$ cd /data/web/magento2
$ bin/magento setup:config:set \
--session-save=redis \
--session-save-redis-port=6378 \
--session-save-redis-db=0
```
Expand All @@ -149,15 +150,15 @@ Furthermore you need to add the following line to your crontab:
To verify whether your configuration is working properly, first clear your session store:

```console
$ rm /data/web/public/var/sessions/*
$ rm /data/web/magento2/var/sessions/*
```

Now open the site in your browser and hit `F5` a few times or log in to the admin panel. If all is well, no additional sessions files should be written to `/data/web/var/sessions`, but instead to the Redis database:

To verify whether your configuration is working properly, first clear your session store:

```console
$ redis-cli -n 2 keys '*'
$ redis-cli -p 6378 keys '*'
```

## Troubleshooting
Expand Down
Loading