公式 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