Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


xampp:7.2

差分

このページの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>cd \usr\xampp7.2.22\apache\bin+D:\cd \usr\xampp7.2.22\apache\bin
  
-D:\usr\xampp7.2.22\apache\bin>httpd -k install -n "Apache 2.4" -f "D:/usr/xampp7.2.22/apache/conf/httpd.conf" +D:\usr\xampp7.2.22\apache\bin>httpd -k install -n "Apache2.4" -f "D:/usr/xampp7.2.22/apache/conf/httpd.conf" 
-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:
 </code> </code>
  
->Apacheの起動/停止/再起動は、[コンピュータの管理 > サービスとアプリケーション > サービス > Apache2.4]から行うことができます。+>Apacheの起動/停止/再起動は、[コンピュータの管理 > サービスとアプリケーション > サービス > Apache2.4]から、または以下のコマンドで行うことができます。 
 +><code dos> 
 +net start Apache2.4 
 +net stop Apache2.4 
 +</code>
  
 サービスから削除するには以下のコマンドを実行します。 サービスから削除するには以下のコマンドを実行します。
行 205: 行 209:
 実行例 実行例
 <code dos> <code dos>
-D:\usr\xampp7.2.22\apache\bin>cd \usr\xampp7.2.22\apache\bin 
- 
 D:\usr\xampp7.2.22\apache\bin>httpd -k uninstall -n "Apache2.4" D:\usr\xampp7.2.22\apache\bin>httpd -k uninstall -n "Apache2.4"
-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:\usr\xampp7.2.22\apache\bin> D:\usr\xampp7.2.22\apache\bin>
 +</code>
 +
 +==== MariaDBのサービス登録 ====
 +
 +  - コマンドプロンプトを**管理者権限**で起動する。
 +  - MariaDBのインストールフォルダ(本編の例では:D:\usr\xampp7.2.22\mysql\bin)に移動する。
 +  - 以下のコマンドを実行する。
 +<code dos>
 +mysqld --install "{サービス名}" --defaults-file="{XAMPP Install Folder}/mysql/bin/my.ini"
 +</code>
 +
 +実行例
 +<code dos>
 +D:>cd \usr\xampp7.2.22\mysql\bin
 +
 +D:\usr\xampp7.2.22\mysql\bin>mysqld --install "MariaDB10.4" --defaults-file="D:/usr/xampp7.2.22/mysql/bin/my.ini"
 +Service successfully installed.
 +</code>
 +
 +>mariaDBの起動/停止/再起動は、[コンピュータの管理 > サービスとアプリケーション > サービス > mariaDB10.4]から、または以下のコマンドで行うことができます。
 +><code dos>
 +net start mariaDB10.4
 +net stop mariaDB10.4
 +</code>
 +
 +サービスから削除するには以下のコマンドを実行します。
 +<code dos>
 +mysqld --remove "{サービス名}"
 +</code>
 +
 +実行例
 +<code dos>
 +D:\usr\xampp7.2.22\mysql\bin>mysqld --remove "MariaDB10.4"
 +Service successfully removed.
 </code> </code>
  
xampp/7.2.txt · 最終更新: 2020/11/21 18:01 by y2sunlight