Alma Linux サーバー構築①

  • このエントリーをはてなブックマークに追加

VPSを借りました。
12月に借りました…4ヶ月も放置していました💦
と言うことで色々忘れているので備忘録です。

OSのバージョンを調べる

#uname -a
Linux x162-43-**-** 5.14.0-503.14.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 19 21:25:22 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

locate が無かったのでインストールする

#sudo dnf install -y mlocate
Last metadata expiration check: 0:05:50 ago on Tue 25 Mar 2025 03:00:47 AM JST.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
mlocate x86_64 0.26-30.el9 baseos 113 k
Transaction Summary
Install 1 Package

Total download size: 113 k
Installed size: 376 k
Downloading Packages:
mlocate-0.26-30.el9.x86_64.rpm 1.1 MB/s | 113 kB 00:00

Total 156 kB/s | 113 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: mlocate-0.26-30.el9.x86_64 1/1
Installing : mlocate-0.26-30.el9.x86_64 1/1
Running scriptlet: mlocate-0.26-30.el9.x86_64 1/1
Created symlink /etc/systemd/system/timers.target.wants/mlocate-updatedb.timer → /usr/lib/systemd/system/mlocate-updatedb.timer.

Verifying : mlocate-0.26-30.el9.x86_64 1/1

Installed:
mlocate-0.26-30.el9.x86_64

Complete!

Nginxをインストールする

#sudo dnf install -y nginx
(略)
#nginx -v
nginx version: nginx/1.20.1
curl -I http://localhost
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Mon, 24 Mar 2025 18:28:37 GMT
Content-Type: text/html
Content-Length: 4681
Last-Modified: Sat, 09 Oct 2021 17:49:21 GMT
Connection: keep-alive
ETag: “6161d621-1249”
Accept-Ranges: bytes

Nginxの動作確認

#curl -I http://localhost
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Mon, 24 Mar 2025 18:28:37 GMT
Content-Type: text/html
Content-Length: 4681
Last-Modified: Sat, 09 Oct 2021 17:49:21 GMT
Connection: keep-alive
ETag: “6161d621-1249”
Accept-Ranges: bytes

ここまでは問題なし。次回certbotをインストールします。

  • このエントリーをはてなブックマークに追加

SNSでもご購読できます。

コメントを残す

*