17.4.5. Microsoft Windows Server 環境向け Apache HTTP Server サービスの管理
手順17.6 Microsoft Windows Server 環境用の Apache HTTP Server サービスのインストール
このコマンドを使用して Apache HTTP Server サービスをインストールします。
cd /D "%EWS_HOME%\bin" httpd -k installこのコマンドは、Apache2.2 という名前の Apache HTTP Server サービスをインストールします。サービスに別の名前(ApacheBalancer など)を指定するには、以下のコマンドを使用します。cd /D "%EWS_HOME%\bin" httpd -k install -n ApacheBalancer
手順17.7 Microsoft Windows Server 環境用の Apache HTTP Server サービスの開始
サービスを起動するには、httpd.exe またはサービスマネージャーを使用します。
httpd.exe の使用:cd /D "%EWS_HOME%\bin" httpd -k start -n Apache2.2サービスマネージャーの使用:net start Apache2.2
手順17.8 Microsoft Windows Server 環境の Apache HTTP Server サービスを停止します。
サービスを停止するには、httpd.exe またはサービスマネージャーを使用します。
httpd.exe の使用:cd /D "%EWS_HOME%\bin" httpd -k stop -n Apache2.2サービスマネージャーの使用:net stop Apache2.2
手順17.9 Microsoft Windows Server 環境用の Apache HTTP Server サービスのアンインストール
サービスをアンインストールするには、名前で参照する必要があります。たとえば、サービス名 ApacheBalancer をアンインストールするには、以下のコマンドを使用します。
cd /D "%EWS_HOME%\bin" httpd -k uninstall -n ApacheBalancer