找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1152|回复: 0

[ubuntu] Ubuntu20安装Redis

[复制链接]

3万

主题

7

回帖

9万

积分

管理员

积分
91233
发表于 2021-6-27 22:16:39 | 显示全部楼层 |阅读模式
Ubuntu20安装redis1.使用命令安装

  1. #apt install redis
复制代码
2.查看是否安装成功
  1. #ps -ef | grep redis
复制代码
  1. root@zhjserver:~# ps -ef | grep redis
  2. redis      15795       1  0 14:12 ?        00:00:00 /usr/bin/redis-server 127.0.0.1:6379
  3. root       16018    2025  0 14:13 pts/1    00:00:00 grep --color=auto redis
复制代码
3.查看运行状态
  1. root@zhjserver:~# /etc/init.d/redis-server status
  2. ● redis-server.service - Advanced key-value store
  3.      Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
  4.      Active: active (running) since Sun 2021-06-27 14:12:35 UTC; 1min 1s ago
  5.        Docs: http://redis.io/documentation,
  6.              man:redis-server(1)
  7.    Main PID: 15795 (redis-server)
  8.       Tasks: 4 (limit: 2245)
  9.      Memory: 2.1M
  10.      CGroup: /system.slice/redis-server.service
  11.              └─15795 /usr/bin/redis-server 127.0.0.1:6379

  12. Jun 27 14:12:35 zhjserver systemd[1]: Starting Advanced key-value store...
  13. 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
  14. Jun 27 14:12:35 zhjserver systemd[1]: Started Advanced key-value store.
  15. Hint: Some lines were ellipsized, use -l to show in full.
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|番茄论坛

GMT+8, 2024-12-4 00:50 , Processed in 0.069480 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表