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?

AlmaLinuxでwebサーバの作成方法

Last updated at Posted at 2025-06-01

Apacheをインストールする。

  • スーパーユーザに昇格
su -
  • ソフトウェアインストール
dnf install -y httpd
  • httpdの再起動
systemctl restart httpd
  • httpdの有効化
systemctl enable httpd
  • httpdの状態を確認
systemctl status httpd
結果

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-11-05 08:32:56 UTC; 9s ago
     Docs: man:httpd(8)
           man:apachectl(8)

firewalldの設定

  • httpとhttpsを開放し、再起動
firewall-cmd --add-service=http --zone-public --permanent
firewall-cmd --add-service=https --zone-public --permanent
firewall-cmd --reload
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?