公式の nginx.org リポジトリから NGINX Web サーバーをインストールします。
デフォルトの場所
- Webルート
/usr/share/nginx/html - 設定:
/etc/nginx/nginx.confと/etc/nginx/conf.d - ログ:
/var/log/nginx/
アクセス
ブラウザを開く: http://<server-ip>/
サービス管理コマンド
sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx sudo systemctl status nginx sudo systemctl reload nginx