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?

More than 3 years have passed since last update.

現在のレンタルサーバーがCentOSかどうかを判断する方法

Posted at

レンタルサーバーで、OSはLinuxと明示してあっても、どのディストリビューションかは明示されていない場合がある。
そんなとき、CentOSかどうかを調べる方法がわかったので、残しておきたい。

手順1 SSH接続する

レンタルサーバーにより方法は様々。
MacOSの場合はターミナル、Winの場合はTeraTermを使うとよい。

手順2 prmコマンドを使う

下記のコマンドでリストを表示する

@cat rpmlist.txt

その中に「centos-」で始まる記載があったら、それはCentOSです。

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?