Apache の自動起動スクリプト
Apache の自動起動スクリプトを使うことで、サーバーマシンが起動するときに自動的に Apache を起動させることができます。
Apache の自動起動スクリプトは apachectl スクリプトを利用します。
これを /etc/init.d/apache ファイルとしてコピーします。
| # install -o root -g root -m 755 /usr/local/httpd/bin/apachectl /etc/init.d/apache |
コピーした自動起動スクリプトの自動起動設定を行います。
| # update-rc.d apache defaults 85 15 |
自動起動スクリプトを使って Apache を起動する場合は以下のように実行します。
| # /etc/init.d/apache start |
最終更新:2009年10月25日 14:17