Redis: Difference between revisions
Jump to navigation
Jump to search
Created page. |
m →Configuration: Added gitea to users to add to the redis group |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="float: | <div style="float:right; margin-left:0.5em; margin-bottom:0.5em;">__TOC__</div> | ||
Redis is | Redis ('''RE'''mote '''DI'''ctionary '''S'''erver) is an in-memory key-value database for abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes. | ||
= Prerequisites = | = Prerequisites = | ||
None | None | ||
= Utilized By = | |||
; [[Gitea]] (optional) | |||
; [[Nextcloud]] (optional) | |||
; [[OnlyOffice_Document_Server|OnlyOffice Document Server]] (binary version) | |||
; PHP-Redis | |||
: Allows PHP applications to use Redis | |||
; [[Self-Hosted_E-Mail#Rspamd_Configuration|Rspamd]] (optional) | |||
; [[WordPress]] (optional, requires plugin) | |||
= Required Packages = | = Required Packages = | ||
Line 12: | Line 22: | ||
= Optional Packages = | = Optional Packages = | ||
This will give PHP applications (like Nextcloud and WordPress) access to the Redis server. | |||
{{bc|sudo pacman -Syu php-redis}} | {{bc|sudo pacman -Syu php-redis}} | ||
Line 34: | Line 46: | ||
You will also need to add users to the {{ic|redis}} group so processes can access {{ic|redis}} | You will also need to add users to the {{ic|redis}} group so processes can access {{ic|redis}} | ||
{{bc|for username in http rspamd; do sudo usermod -G redis ${username}; done}} | {{bc|for username in gitea http rspamd; do sudo usermod -G redis ${username}; done}} |
Latest revision as of 18:52, 26 December 2019
Redis (REmote DIctionary Server) is an in-memory key-value database for abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes.
Prerequisites
None
Utilized By
- Gitea (optional)
- Nextcloud (optional)
- OnlyOffice Document Server (binary version)
- PHP-Redis
- Allows PHP applications to use Redis
- Rspamd (optional)
- WordPress (optional, requires plugin)
Required Packages
sudo pacman -Syu redis
Optional Packages
This will give PHP applications (like Nextcloud and WordPress) access to the Redis server.
sudo pacman -Syu php-redis
Configuration
By default, redis
is already configured to bind to 127.0.0.1:6379, but the Unix socket is not enabled.
/etc/redis.conf
... # Unix socket. # # Specify the path for the Unix socket that will be used to listen for # incoming connections. There is no default, so Redis will not listen # on a unix socket when not specified. # unixsocket /run/redis/redis.sock unixsocketperm 700 ...
You will also need to add users to the redis
group so processes can access redis
for username in gitea http rspamd; do sudo usermod -G redis ${username}; done