0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntuにnginxをインストールするだけです。

Posted at

Ubuntuにnginxをインストールします。

まずは、最新の状態に更新しておきます。
権限に応じて頭にsodoとかつけてください。

apt update
sudo apt upgrade -y

続いてnginxをインストールします。

apt install nginx -y

インストールできたか確認します。

nginx -v

こんな感じで出力されたら成功です。

nginx version: nginx/1.18.0 (Ubuntu)

せっかくなんで起動してみましょう

systemctl start nginx

起動したか確認です

systemctl status nginx

acticeってところがrunningになったら成功です。
ちなみにrunning状態で、webからサーバーからアクセスすると、このようになります。
スクリーンショット 2025-02-03 070930.png

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?