0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows : Apacheをサービス登録として自動起動させる

Last updated at Posted at 2024-10-04

ApacheをWindowsのサービスに登録し、PC起動時に自動起動させる手順について説明していきます。
※ApacheMonitor.exeをワンクリックでApacheの起動も可能!!!

目次

  1. Apacheをサービスに登録する
  2. 「Apacheを起動」が実施済であること

1. Apacheをサービスに登録する

Apacheをサービスに登録するためにはコマンドプロンプトを使います。

apache-service-launch-windows10-01.png
コマンドプロンプトを「管理者として実行」で起動します。

apache-service-launch-windows10-02.png
まずはApacheディレクトリのbinディレクトリの中に移動します。ディレクトリの移動にはcdコマンドで以下のように実行します。

ディレクトリを移動するコマンド

cd c:¥Apache2.4¥bin

apache-service-launch-windows10-03.png
ディレクトリを移動した後は、以下のコマンドを実行してApacheをWindowsのサービスに登録します。

Apacheをサービス登録するコマンド

httpd -k install

apache-service-launch-windows10-04.png
設定から「サービス」を表示させるとApacheがサービスに登録されていることが確認できます。

Apacheをサービス登録させるための手順は以上になります。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?