我有一个按需使用的AWS实例,我试图引导它并启动apache,但是得到了这个错误,我已经查找了这个错误,并且无法接近解决或诊断它。
The job identifier is 26531 and the job result is failed.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: Dependency failed for httpd-init.service - One-time temporary TLS key generation for httpd.service.
Subject: A start job for unit httpd-init.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit httpd-init.service has finished with a failure.
The job identifier is 26596 and the job result is dependency.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: httpd-init.service: Job httpd-init.service/start failed with result 'dependency'.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: Dependency failed for php-fpm.service - The PHP FastCGI Process Manager.
Subject: A start job for unit php-fpm.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit php-fpm.service has finished with a failure.
The job identifier is 26597 and the job result is dependency.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: php-fpm.service: Job php-fpm.service/start failed with result 'dependency'.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: Dependency failed for httpd.service - The Apache HTTP Server.
Subject: A start job for unit httpd.service has failed
Defined-By: systemd
Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit httpd.service has finished with a failure.
The job identifier is 26519 and the job result is dependency.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal systemd[1]: httpd.service: Job httpd.service/start failed with result 'dependency'.
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal sudo[4084]: pam_unix(sudo:session): session closed for user root
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal audit[4084]: USER_END pid=4084 uid=1000 auid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=>
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal audit[4084]: CRED_DISP pid=4084 uid=1000 auid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_e>
Apr 30 19:34:45 ip-172-31-21-205.ec2.internal kernel: EXT4-fs (nvme1n1): VFS: Can't find ext4 filesystem发布于 2023-04-30 20:13:03
事实证明,这是我的错误-- /var安装在无法访问的设备上,更准确地说,/etc/fstab中的文件系统格式是不正确的。
我已经更正了设备格式,现在https和php-fpm正在正常运行。
https://serverfault.com/questions/1130059
复制相似问题