CentOS Stream 8
Sponsored Link

Nginx : インストール2021/04/08

 
高速 HTTP/Proxy サーバーソフトウェア [Nginx] (エンジンエックス) による Web サーバーのインストールと設定です。
[1] Nginx をインストールします。
[root@www ~]#
dnf -y install nginx
[2] Nginx の基本設定です。
[root@www ~]#
vi /etc/nginx/nginx.conf
# 41行目:サーバー名を自身のものに変更

server_name
www.srv.world
;
[root@www ~]#
systemctl enable --now nginx

[3] Firewalld を有効にしている場合は、HTTP サービスの許可が必要です。HTTP は [80/TCP] を使用します。
[root@www ~]#
firewall-cmd --add-service=http --permanent

success
[root@www ~]#
firewall-cmd --reload

success
[4] 任意のクライアントコンピューターで Web ブラウザを起動し、デフォルトページにアクセスして動作確認します。以下のようなページが表示されれば OK です。
関連コンテンツ