Nginx

Nginxインストール、設定

環境:RHEL7.6

インストール、設定
#yum install nginx
# systemctl enable nginx

firewall設定

80番ポートを開ける必要がある。

# firewall-cmd --add-service=http --zone=public --permanent
# firewall-cmd --reload

各種設定ファイル

  • /etc/nginx/ Nginx の設定ファイルが保存されているディレクト
  • /etc/nginx/nginx.conf メインとなる設定ファイル
  • /var/log/nignx/ Nginx のログが保存されるディレクト
  • /usr/share/nginx/html/ WEBサイトの公開ディレクト