KUSANAGI コマンド Security Edition コマンド

httpd

httpd

httpd

使用するWebサーバをApache httpdに切り替えます。また、サービスの再起動を行います。

使用例

kusanagi httpd --use httpd24
kusanagi httpd

オプション

(オプション指定なし)

nginx を使用している場合は、httpd に切り替えます。
既に httpd を起動しているときは、httpd を再起動します。

使用するApache httpd

[--use {installed | httpd24}]

デフォルト : installed

使用するApache httpdのバージョンを指定します。それぞれ指定したときは以下のApache httpdを起動します。
--use、--reload、--test、--status、--showpath は同時に指定できません。

  • --use installed : 現在インストールされているApache httpd
  • --use httpd24 : Apache httpd 2.4

設定の再読み込み

[--reload]

既存のセッションを切断することなく設定を再読込します。
--use、--reload、--test、--status、--showpath は同時に指定できません。

設定ファイルのチェック

[--test]

設定ファイルのチェックのみを行います。
--use、--reload、--test、--status、--showpath は同時に指定できません。

ステータスの表示

[--stauts]

Apache httpdのステータスを表示します。
--use、--reload、--test、--status、--showpath は同時に指定できません。

httpd コマンドのフルパスを表示

[--showpath]

httpd コマンドのフルパスを表示します。
--use、--reload、--test、--status、--showpath は同時に指定できません。

実行例

# kusanagi httpd
Syntax OK
Removed /etc/systemd/system/multi-user.target.wants/nginx.service.
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service -> /usr/lib/systemd/system/httpd.service.
httpd completed.
超高速CMS実行環境 KUSANAGI
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.