1. 程式人生 > >ubuntu 16.04 安裝 redis-cli工具

ubuntu 16.04 安裝 redis-cli工具

使用命令:
sudo apt-get install libjemalloc1
sudo apt-get install redis-tools
sudo apt-get install redis-server
正在讀取軟體包列表… 完成
正在分析軟體包的依賴關係樹
正在讀取狀態資訊… 完成
將會同時安裝下列軟體:
libjemalloc1 redis-tools
建議安裝:
ruby-redis
下列【新】軟體包將被安裝:
libjemalloc1 redis-server redis-tools
升級了 0 個軟體包,新安裝了 3 個軟體包,要解除安裝 0 個軟體包,有 104 個軟體包未被升級。
需要下載 519 kB 的歸檔。
解壓縮後會消耗 1,507 kB 的額外空間。
您希望繼續執行嗎? [Y/n] Y
獲取:1

http://cn.archive.ubuntu.com/ubuntu xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1 [78.9 kB]
獲取:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 redis-tools amd64 2:3.0.6-1ubuntu0.3 [95.6 kB]
獲取:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 redis-server amd64 2:3.0.6-1ubuntu0.3 [344 kB]
已下載 519 kB,耗時 2秒 (224 kB/s)
正在選中未選擇的軟體包 libjemalloc1。
(正在讀取資料庫 … 系統當前共安裝有 69462 個檔案和目錄。)
正準備解包 …/libjemalloc1_3.6.0-9ubuntu1_amd64.deb …
正在解包 libjemalloc1 (3.6.0-9ubuntu1) …
正在選中未選擇的軟體包 redis-tools。
正準備解包 …/redis-tools_2%3a3.0.6-1ubuntu0.3_amd64.deb …
正在解包 redis-tools (2:3.0.6-1ubuntu0.3) …
正在選中未選擇的軟體包 redis-server。
正準備解包 …/redis-server_2%3a3.0.6-1ubuntu0.3_amd64.deb …
正在解包 redis-server (2:3.0.6-1ubuntu0.3) …
正在處理用於 libc-bin (2.23-0ubuntu10) 的觸發器 …
正在處理用於 man-db (2.7.5-1) 的觸發器 …
正在處理用於 systemd (229-4ubuntu21.4) 的觸發器 …
正在處理用於 ureadahead (0.100.0-19) 的觸發器 …
ureadahead will be reprofiled on next reboot
正在設定 libjemalloc1 (3.6.0-9ubuntu1) …
正在設定 redis-tools (2:3.0.6-1ubuntu0.3) …
正在設定 redis-server (2:3.0.6-1ubuntu0.3) …
Job for redis-server.service failed because a configured resource limit was exceeded. See “systemctl status redis-server.service” and “journalctl -xe” for details.
invoke-rc.d: initscript redis-server, action “start” failed.
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: resources) since 五 2019-01-04 14:12:30 CST; 13ms ago
Docs:
http://redis.io/documentation
,
man:redis-server(1)
Process: 28575 ExecStopPost=/bin/run-parts --verbose /etc/redis/redis-server.post-down.d (code=exited, status=0/SUCCESS)
Process: 28568 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 28559 ExecStop=/bin/run-parts --verbose /etc/redis/redis-server.pre-down.d (code=exited, status=0/SUCCESS)
Process: 28552 ExecStartPost=/bin/run-parts --verbose /etc/redis/redis-server.post-up.d (code=exited, status=0/SUCCESS)
Process: 28549 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Process: 28543 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)

1月 04 14:12:30 UbuntuServer systemd[1]: Failed to start Advanced key-value…
1月 04 14:12:30 UbuntuServer systemd[1]: redis-server.service: Unit entered…
1月 04 14:12:30 UbuntuServer systemd[1]: redis-server.service: Failed with …
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 處理軟體包 redis-server (–configure)時出錯:
子程序 已安裝 post-installation 指令碼 返回錯誤狀態 1
正在處理用於 libc-bin (2.23-0ubuntu10) 的觸發器 …
正在處理用於 systemd (229-4ubuntu21.4) 的觸發器 …
正在處理用於 ureadahead (0.100.0-19) 的觸發器 …
在處理時有錯誤發生:
redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)