admin 发表于 2021-6-27 22:16:39

Ubuntu20安装Redis

Ubuntu20安装redis1.使用命令安装

#apt install redis2.查看是否安装成功
#ps -ef | grep redisroot@zhjserver:~# ps -ef | grep redis
redis      15795       10 14:12 ?      00:00:00 /usr/bin/redis-server 127.0.0.1:6379
root       16018    20250 14:13 pts/1    00:00:00 grep --color=auto redis3.查看运行状态
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: Starting Advanced key-value store...
Jun 27 14:12:35 zhjserver systemd: 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: Started Advanced key-value store.
Hint: Some lines were ellipsized, use -l to show in full.


页: [1]
查看完整版本: Ubuntu20安装Redis