标题说明了一切。这是在 Xen 管理程序上运行的全新 Fedora 17 系统。不知道为什么它不会启动
[root@box~] uname -a
Linux box.localhost 3.5.4-2.fc17.i686.PAE #1 SMP Wed Sep 26 22:10:23 UTC 2012 i686 i686 i386 GNU/Linux
[root@box~] cat /etc/redhat-release
Fedora release 17 (Beefy Miracle)
[root@box~] systemctl enable httpd.service
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
[root@box~] systemctl start httpd.service
Job failed. See system journal and 'systemctl status' for details.
[root@box~] systemctl status httpd.service
httpd.service - The Apache HTTP Server (prefork MPM)
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Fri, 19 Oct 2012 22:43:37 -0500; 3s ago
Process: 18225 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=exited, status=226/NAMESPACE)
CGroup: name=systemd:/system/httpd.service
Oct 19 22:43:37 box.localhost systemd[18225]: Failed at step NAMESPACE spawning /usr/sbin/httpd: No such file or directory
[root@box~] ls -al /usr/sbin/httpd
-rwxr-xr-x 1 root root 343496 Apr 30 04:56 /usr/sbin/httpd
Fedora/systemd 的最新版本包含一项新功能
/tmp
,可以在/var/tmp
各个系统服务中生成随机私有目录。这意味着您应该检查以下事项:
/var/tmp
到/tmp
,反之亦然。这些是分开处理的,因此您需要将它们分开。/var/tmp
和/tmp
都有 1777 权限。如果这不能解决问题,您可能发现了错误,应该报告它。