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?

More than 3 years have passed since last update.

Apache起動方法~備忘録~

Posted at

Apache起動・停止

Apache起動
何も出力されなければOKです。

sudo systemctl start httpd.service

Apache動作状態確認コマンド

systemctl status httpd.service

Apache停止コマンド

sudo systemctl stop httpd.service

Apacheの自動起動を有効にする
実行結果に「Created symlink from ~」と表示されれば成功です。

sudo systemctl enable httpd.service

Apacheの自動起動設定を確認する

systemctl is-enabled httpd.service

実行結果に「enabled」と表示されれば設定が有効になっています。

Apacheの自動起動を無効にする

sudo systemctl disable httpd.service

「Removed symlink ~」と出力されれば成功です。

Apacheの自動起動設定を確認する

systemctl is-enabled httpd.service

実行結果に「disabled」と表示されれば設定が無効になっています。

以上。
参考サイト
https://programming-style.com/apache/reference/boot-centos/

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?