|
Ubuntu20安装redis1.使用命令安装
2.查看是否安装成功
- root@zhjserver:~# ps -ef | grep redis
- redis 15795 1 0 14:12 ? 00:00:00 /usr/bin/redis-server 127.0.0.1:6379
- root 16018 2025 0 14:13 pts/1 00:00:00 grep --color=auto redis
复制代码 3.查看运行状态
- root@zhjserver:~# /etc/init.d/redis-server status
- ● redis-server.service - Advanced key-value store
- Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
- Active: active (running) since Sun 2021-06-27 14:12:35 UTC; 1min 1s ago
- Docs: http://redis.io/documentation,
- man:redis-server(1)
- Main PID: 15795 (redis-server)
- Tasks: 4 (limit: 2245)
- Memory: 2.1M
- CGroup: /system.slice/redis-server.service
- └─15795 /usr/bin/redis-server 127.0.0.1:6379
- Jun 27 14:12:35 zhjserver systemd[1]: Starting Advanced key-value store...
- Jun 27 14:12:35 zhjserver systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: Ope… permitted
- Jun 27 14:12:35 zhjserver systemd[1]: Started Advanced key-value store.
- Hint: Some lines were ellipsized, use -l to show in full.
复制代码
|
|