dockerのphp-apacheイメージでのapache再起動
やりたこと
dockerのphp-apacheイメージで不意にapacheが停止した場合、apacheを起動したい。
環境
- dockerimage php:7.4-apache
コマンド
service apache2 start
service apache2 start
以下はダメ。
service httpd start
httpd: unrecognized service
/etc/init.d/httpd start
bash: /etc/init.d/httpd: No such file or directory
apachectl start
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.2. Set the 'ServerName' directive globally to suppress this message
php:7.4-apacheがDebianだからとかなのかhttpdが使えなくて困った。
cat /etc/issue
Debian GNU/Linux 10 \n \l
Author And Source
この問題について(dockerのphp-apacheイメージでのapache再起動), 我々は、より多くの情報をここで見つけました https://qiita.com/ryochin_sky/items/cefb4fc9d931b790f957著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .