我尝试使用redis.conf加载redisjson模块,正如指令中所说的那样。所以我写了 loadmodule /home/artyom/RedisJSON/src/rejson.so
而不是用“#”和“#”的例子,我的服务器崩溃了。我曾经 sudo systemctl status redis
得到:
● 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.
毫无疑问,模块的位置是正确的,因为当我没有改变的时候它工作得很好 redis.conf
但是用过了 redis-server --loadmodule /home/artyom/RedisJSON/src/rejson.so
. 顺便说一下,我试过https://askubuntu.com/questions/888726/failed-to-start-redis-datastore-server-ubuntu-16-04-1-lts,但他们都没帮上忙。那么,问题是什么?为什么我的服务器停止工作?
暂无答案!
目前还没有任何答案,快来回答吧!