公式のnginx.orgリポジトリからNGINXウェブサーバーをインストールします。
既定の場所
- 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