虽然报错原因可能是
redis-server.service: Can't open PID file /var/run/redis/re Aug 26 15:43:25 iZ2ze6ddwhet6073nq8i0eZ systemd[1]: Started Advanced key-value store.
解决办法最简单的是修改redis.conf的地址配置,把IPV6的配置给去掉
- bind 127.0.0.1 ::1 + bind 127.0.0.1
这个是最简单的改法,在这个改法下,像systemdsysctl.conf那些修改可不做。
参考:https://stackoverflow.com/questions/50668845/cannot-install-redis-server-on-ubuntu-18-04