I tried to load RedisJSON module using redis.conf as it was said in instruction. So I wrote loadmodule /home/artyom/RedisJSON/src/rejson.so
instead of the example with "#" and than my server crashed. I used sudo systemctl status redis
and got:
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-04-17 00:33:49 MSK; 17s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 11774 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Main PID: 11775 (code=exited, status=1/FAILURE)
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: redis-server.service: Service RestartSec=100ms expired, scheduling restart.
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 5.
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: Stopped Advanced key-value store.
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: redis-server.service: Start request repeated too quickly.
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: redis-server.service: Failed with result 'exit-code'.
апр 17 00:33:49 artyom-Lenovo-IdeaPad-S340-14IWL systemd[1]: Failed to start Advanced key-value store.
No doubt, module location is correct, because It worked fine when I didn't change redis.conf
but used redis-server --loadmodule /home/artyom/RedisJSON/src/rejson.so
. By the way, I tried some solutions from https://askubuntu.com/questions/888726/failed-to-start-redis-datastore-server-ubuntu-16-04-1-lts, but none of them helped. So, what is the problem? Why my server stops working?