sudo apt install nginxnginx -v
nginx version: nginx/1.18.0 (Ubuntu)sudo systemctl enable nginxsudo systemctl status nginx※ nginxの起動ユーザーはデフォルトでwww-dataとなります。
curl -4 icanhazip.comブラウザでhttp://your_server_ip_addressにアクセスします。
Welcome to nginx!の画面が表示されれば、OKです。
ちなみに、ファイヤーウォールは無効化されている状態です。
sudo ufw status verbose
Status: inactive