このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
xampp:7.2 [2019/10/07 21:25] y2sunlight [サービスの手動登録] |
xampp:7.2 [2019/10/07 21:59] y2sunlight [サービスの手動登録] |
||
---|---|---|---|
行 172: | 行 172: | ||
===== サービスの手動登録 ===== | ===== サービスの手動登録 ===== | ||
- | ここでは、ApacheやMadiaDBのサービスを手動で登録する方法を説明します。コントロールパネルでサービス登録できる場合は以下の説明は読む必要がありません。Windowsのユーザーアカウント制御が働いて、コントロールパネルによりサービス登録ができない場合に以下の方法を試してみて下さい。 | + | ここでは、ApacheやMadiaDBのサービスを手動で登録する方法を説明します。コントロールパネルでサービス登録できる場合は以下の説明を読む必要はありません。Windowsのユーザーアカウント制御(UAC)が働いて、XAMPPのコントロールパネルからサービス登録ができない場合に以下の方法を試してみて下さい。 |
- | === Apacheのサービス登録 === | + | ==== Apacheのサービス登録 |
- コマンドプロンプトを**管理者権限**で起動する。 | - コマンドプロンプトを**管理者権限**で起動する。 | ||
行 185: | 行 185: | ||
実行例 | 実行例 | ||
<code dos> | <code dos> | ||
- | D:\usr\xampp7.2.22\apache\bin> | + | D:\cd \usr\xampp7.2.22\apache\bin |
- | D: | + | D: |
- | Installing the 'Apache 2.4' service | + | Installing the 'Apache2.4' service |
- | The 'Apache 2.4' service is successfully installed. | + | The 'Apache2.4' service is successfully installed. |
Testing httpd.conf.... | Testing httpd.conf.... | ||
Errors reported here must be corrected before the service can be started. | Errors reported here must be corrected before the service can be started. | ||
行 196: | 行 196: | ||
</ | </ | ||
- | > | + | > |
+ | >< | ||
+ | net start Apache2.4 | ||
+ | net stop Apache2.4 | ||
+ | </ | ||
サービスから削除するには以下のコマンドを実行します。 | サービスから削除するには以下のコマンドを実行します。 | ||
行 205: | 行 209: | ||
実行例 | 実行例 | ||
<code dos> | <code dos> | ||
- | D: | ||
- | |||
D: | D: | ||
- | Removing the 'Apache 2.4' service | + | Removing the 'Apache2.4' service |
- | The 'Apache 2.4' service has been removed successfully. | + | The 'Apache2.4' service has been removed successfully. |
D: | D: | ||
+ | </ | ||
+ | |||
+ | ==== MariaDBのサービス登録 ==== | ||
+ | |||
+ | - コマンドプロンプトを**管理者権限**で起動する。 | ||
+ | - MariaDBのインストールフォルダ(本編の例では: | ||
+ | - 以下のコマンドを実行する。 | ||
+ | <code dos> | ||
+ | mysqld --install " | ||
+ | </ | ||
+ | |||
+ | 実行例 | ||
+ | <code dos> | ||
+ | D:>cd \usr\xampp7.2.22\mysql\bin | ||
+ | |||
+ | D: | ||
+ | Service successfully installed. | ||
+ | </ | ||
+ | |||
+ | > | ||
+ | >< | ||
+ | net start mariaDB10.4 | ||
+ | net stop mariaDB10.4 | ||
+ | </ | ||
+ | |||
+ | サービスから削除するには以下のコマンドを実行します。 | ||
+ | <code dos> | ||
+ | mysqld --remove " | ||
+ | </ | ||
+ | |||
+ | 実行例 | ||
+ | <code dos> | ||
+ | D: | ||
+ | Service successfully removed. | ||
</ | </ | ||