Apache と Apache-SSL の自動起動 |
■ メモ
- Debian 起動時に Apache と Apache-SSL が自動で起動されるように設定する.
■ 設定
- 起動用のシェルスクリプト作成.
# vi /etc/init.d/apache
# vi /etc/init.d/apache-ssl
Apache のシェルスクリプトはここ,
Apache-SSL のシェルスクリプトはここ.
- 実行ファイルにする.
# chmod 755 /etc/init.d/apache
# chmod 755 /etc/init.d/apache-ssl
- 自動で起動されるようにする.
# ln -s /etc/init.d/apache /etc/rc2.d/S80apache
# ln -s /etc/init.d/apache /etc/rc3.d/S80apache
# ln -s /etc/init.d/apache /etc/rc4.d/S80apache
# ln -s /etc/init.d/apache /etc/rc5.d/S80apache
# ln -s /etc/init.d/apache-ssl /etc/rc2.d/S80apache-ssl
# ln -s /etc/init.d/apache-ssl /etc/rc3.d/S80apache-ssl
# ln -s /etc/init.d/apache-ssl /etc/rc4.d/S80apache-ssl
# ln -s /etc/init.d/apache-ssl /etc/rc5.d/S80apache-ssl
|
|