AlmaLinux 9 nginxをインストールする方法
環境
AlmaLinux 9.2
操作方法
1.nginx をインストールします
# dnf -y install nginx
# dnf -y install nginx
# dnf -y install nginx
2.nginx の基本設定を行います
# vi /etc/nginx/nginx.conf
41行目 : サーバー名を自身のものに変更
server_name www.arkgame.com;
# systemctl enable --now nginx
# systemctl enable --now nginx
# systemctl enable --now nginx
3. Firewalld を有効にしている場合は、HTTP サービスの許可が必要です。HTTP は [80/TCP] を使用します。
# firewall-cmd --add-service=http
# firewall-cmd --runtime-to-permanent
# firewall-cmd --add-service=http
# firewall-cmd --runtime-to-permanent
# firewall-cmd --add-service=http # firewall-cmd --runtime-to-permanent