
Linux
1firewall-cmd --permanent -add-service=http --zone=public
を実行すると
「job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for fetails」とエラー表示がなされます。
Linux
1firewall-cmd --permanent -add-service=https --zone=public
は成功します。
Linux
1firewall-cmd --reload
は成功します。どなたか、
Linux
1firewall-cmd --permanent -add-service=http --zone=public
でエラー表示されない方法を教えてください、よろしくお願い致します。

エラーメッセージを読んでいないのでしょうか?読んでも理解できない?読んでない?
「job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details」翻訳「ttpd.serviceのジョブが失敗しました。詳細は、「systemctl status httpd.service」および「journalctl -xn」を参照してください。」ということですが、httpd.serviceを見てもどこを直せばいいか分かりません。journalctlは何が書いてあるかさっぱりわかりません。httpd.serviceには「[Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target Documentation=man:httpd(8) Documentation=man:apachectl(8) [Service] Type=notify EnvironmentFile=/etc/sysconfig/httpd ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecReload=/usr/sbin/httpd $OPTIONS -k graceful ExecStop=/bin/kill -WINCH ${MAINPID} # We want systemd to give httpd some time to finish gracefully, but still want # it to kill httpd after TimeoutStopSec if something went wrong during the # graceful stop. Normally, Systemd sends SIGTERM signal right after the # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give # httpd time to finish. KillSignal=SIGCONT PrivateTmp=true [Install] WantedBy=multi-user.target」と書いてあります。
firewall-cmdとは無関係なはずのhttpd.serviceに関するメッセージが出る時点でおかしいような気がします。少なくともfirewall-cmdが出力するメッセージではありません。途中を省略せずに、コマンドの実行から、出力されるメッセージ全てを貼り付けることは出来ませんか?また、firewall-cmd --list-allの結果もご提示ください。
この欄は、改行が入らないので、質問を編集して、追記していただけないでしょうか。

回答1件
あなたの回答
tips
プレビュー