war*_*ren 6 startup process centos systemd var
今天遇到一个问题,Apache 无法加载,因为/var/run/httpd
它丢失了。经过多次寻找错误的原因,我得到了([Tue Jul 25 00:06:31.574386 2017] [auth_digest:error] [pid 6179] (2)No such file or directory: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled
)。
然后我看到 MariaDB 缺少它的/var/run/mysql
目录,而 PostgreSQL缺少它的目录。
什么会导致这些在系统启动时无法创建/在重新启动之间无法保存?
我不希望需要按照这个问题中的建议修改 init 脚本。
ls -dl /var/run
& 的输出ls -dl /run
lrwxrwxrwx. 1 root root 6 Dec 15 2015 /var/run -> ../run
drwxr-xr-x 25 root root 800 Jul 26 03:40 /run
Run Code Online (Sandbox Code Playgroud)
在搜索了其他 SE 网站、论坛、新闻组等之后,我想知道这是否可能与本地和远程文件系统的挂载顺序有关(该服务器上挂载了一对 CIFS 共享,每个共享都有子目录绑定)安装在其他地方)。
我将 CIFS 份额推高/etc/fstab
,并将所有绑定安装移动到底部。
然后我重新启动。
现在/run
aka/var/run
正在按预期工作。
我不知道编辑是否/etc/fstab
重要——但据我所知,这是唯一的实质性改变。
归档时间: |
|
查看次数: |
4979 次 |
最近记录: |