ubuntu:redis-server
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ubuntu:redis-server [2019/04/13 14:40] – angelegt Sebastian Hetzel | ubuntu:redis-server [2019/04/13 21:59] (aktuell) – Update Seitentitel Sebastian Hetzel | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Redis als PHP-Cache ====== | + | ====== |
| < | < | ||
| Zeile 58: | Zeile 58: | ||
| </ | </ | ||
| + | ===== Performance-Tuning ===== | ||
| + | |||
| + | Beim Systemstart wollen wir ein paar Systemparameter manipulieren. Dies kann über das Skript rc.local geschehen. | ||
| + | Die rc.local muss unter Ubuntu jedoch zuvor angelegt werden und wird ausgewertet vom Dienst rc-local. | ||
| + | |||
| + | < | ||
| + | # service rc-local status | ||
| + | ● rc-local.service - / | ||
| + | | ||
| + | Drop-In: / | ||
| + | | ||
| + | | ||
| + | Docs: man: | ||
| + | Process: 1366 ExecStart=/ | ||
| + | |||
| + | Apr 13 19:55:54 xxx systemd[1]: Starting / | ||
| + | Apr 13 19:55:54 xxx rc.local[1366]: | ||
| + | Apr 13 19:55:54 xxx systemd[1]: Started / | ||
| + | </ | ||
| + | |||
| + | Das Anlegen geschieht wie folgt: | ||
| + | |||
| + | < | ||
| + | # vi / | ||
| + | # chmod +x / | ||
| + | </ | ||
| + | |||
| + | Dieser Parameter muss nur einmal in die / | ||
| + | |||
| + | < | ||
| + | # echo ' | ||
| + | </ | ||
| + | |||
| + | <file | / | ||
| + | #!/bin/sh -e | ||
| + | # | ||
| + | # rc.local | ||
| + | # | ||
| + | # This script is executed at the end of each multiuser runlevel. | ||
| + | # Make sure that the script will "exit 0" on success or any other | ||
| + | # value on error. | ||
| + | # | ||
| + | # In order to enable or disable this script just change the execution | ||
| + | # bits. | ||
| + | # | ||
| + | # By default this script does nothing. | ||
| + | |||
| + | echo never > / | ||
| + | sysctl -w net.core.somaxconn=65535 | ||
| + | service redis-server restart | ||
| + | |||
| + | exit 0 | ||
| + | </ | ||
| ===== Einbindung in die PHP-Anwendung nicht vergessen ===== | ===== Einbindung in die PHP-Anwendung nicht vergessen ===== | ||
ubuntu/redis-server.1555159257.txt.gz · Zuletzt geändert: von Sebastian Hetzel
