小编the*_*uts的帖子

MySQL 5.7 没有目录,用HOME=/登录

如果已经问过这个问题,我很抱歉,但我找不到这个(可能很小)问题的任何解决方案:

我刚刚在 14.04 服务器上全新安装了 mysql-server 5.7。每次启动 MySQL 服务时,我都会收到此错误:

root@xxx:/etc/mysql# service mysql restart
 * Stopping MySQL Community Server 5.7.11
...
 * MySQL Community Server 5.7.11 is stopped
 * Re-starting MySQL Community Server 5.7.11
No directory, logging in with HOME=/
..
 * MySQL Community Server 5.7.11 is started
Run Code Online (Sandbox Code Playgroud)

这意味着什么?我是否必须为用户“mysql”设置主目录?(如果是这样,最好的选择是什么?/home/mysql??)现在是 /nonexistent:

mysql:x:110:106:MySQL Server,,,:/nonexistent:/bin/false
Run Code Online (Sandbox Code Playgroud)

但我有另一台具有相同/不存在的机器,它没有显示任何错误......

server mysql

21
推荐指数
1
解决办法
5万
查看次数

无法启动 fwupd-refresh 服务

我在多个 ubuntu 20 和 22 服务器上使该服务处于失败状态,这很烦人,因为它在我的监控系统上触发警告。

\n

我无法启动该服务,这是journalctl -xe我尝试启动它时的情况:

\n
Jun 26 15:03:39 w03 systemd[1]: Starting Refresh fwupd metadata and update motd...\n-- Subject: A start job for unit fwupd-refresh.service has begun execution\n-- Defined-By: systemd\n-- Support: http://www.ubuntu.com/support\n--\n-- A start job for unit fwupd-refresh.service has begun execution.\n--\n-- The job identifier is 11102154.\nJun 26 15:03:39 w03 systemd[1]: fwupd-refresh.service: Main process exited, code=exited, status=1/FAILURE\n-- Subject: Unit process exited\n-- Defined-By: systemd\n-- Support: http://www.ubuntu.com/support\n--\n-- An ExecStart= process belonging to unit fwupd-refresh.service has exited.\n--\n-- The …
Run Code Online (Sandbox Code Playgroud)

server fwupd 20.04 22.04

2
推荐指数
1
解决办法
3225
查看次数

标签 统计

server ×2

20.04 ×1

22.04 ×1

fwupd ×1

mysql ×1