我运行时出错 sudo apt-get upgrade
输出错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up redis-server (5:4.0.9-1) ...
dpkg-statoverride: error: user 'redis' does not exist
dpkg: error processing package redis-server (--configure):
installed redis-server package post-installation script subprocess …Run Code Online (Sandbox Code Playgroud) 这是我已经有答案的问题,但为其他人回答。我遇到了一个问题,每当我尝试关闭、挂起或重新启动 Ubuntu 或 Gnome 3 时,关闭屏幕就会冻结,但并没有关闭。
问题是如何找到原因以及如何解决?
更新:这似乎已基本修复。我不是 100% 确定我做了什么,但它正在运行,而且我的网站也可以正确加载它。但是,我仍然遇到关于 PID 不可读的错误 #1。
我希望我能得到一些帮助来弄清楚为什么 Redis-Server 不能为我运行。大约 3 天前,我让它完全运行起来,但当我尝试开始从我的 WordPress 安装中删除其他缓存程序时。我不知何故破坏了Redis。接下来,我列出了这些错误,以及我如何尝试纠正它们。请让我知道您的想法以及我以后如何尝试解决它。
我最初从 redis.io 的源代码安装了 Redis-Server,但是一旦损坏,我最终尝试从源代码重新安装,并且还尝试从apt. 我在两种类型的安装上都遇到相同的错误。
uname -a:Linux serverName.tld 4.4.0-97-generic #120-Ubuntu SMP 九月 19 日星期二 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 乌班图16.04 Redis-服务器4.0.2
我使用以下教程来安装 Redis-Server:Install Redis Object Cache for WordPress PHP 7 on Ubuntu 16.04
错误:
redis-server.service:启动后PID文件/var/run/redis/redis.pid不可读(还?):没有这样的文件或目录
您请求的 maxclients 为 20000,需要至少 …
我想创建一个 bash 脚本,它会自动安装 redis:
我的问题是更改 2 个文件中的行:
#Install Redis
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
Run Code Online (Sandbox Code Playgroud)
我需要找到一行并更改。默认情况下,受监督的指令设置为 no。
# Note: these supervision methods only signal "process is ready."
# They do not enable continuous liveness pings back to your supervisor.
supervised systemd # this line to change
Run Code Online (Sandbox Code Playgroud)
sudo systemctl reload redis.service
Run Code Online (Sandbox Code Playgroud)
须藤纳米 /etc/redis/redis.conf
需要取消注释(删除 # 如果存在):
bind 127.0.0.1 ::1
Run Code Online (Sandbox Code Playgroud)也可以测试一下吗?
redis-cli
Run Code Online (Sandbox Code Playgroud)
在随后的提示中,使用 ping 命令测试连通性:
平
Output
PONG
Run Code Online (Sandbox Code Playgroud)
或检查状态?
sudo systemctl status redis
Run Code Online (Sandbox Code Playgroud) 我正在尝试像这里一样安装 redis 。但是当 do make,得到错误 unsupported locale setting:
# make
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.3.1 final 0
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Exception information:
unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n …Run Code Online (Sandbox Code Playgroud) 我redis-server在 Ubuntu 16.04 上使用apt.
默认情况下,它似乎在每次启动时自动启动
我不喜欢这样,所以我尝试了以下命令:
sudo update-rc.d -f redis-server remove # remove auto-start service
ls /etc/rc*.d | grep redis # check service list, it prints nothing
Run Code Online (Sandbox Code Playgroud)
看起来不错,但是 redis-server 仍然在每次启动时自动启动。
有什么建议?
我的系统中有Redis版本5.0.7,有什么命令可以更新到6.0.1吗?