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?

サーバーでの作業に役立つ、主要なOSについて

Posted at

🔹 サーバーOSの主要な種類

サーバー用途では Linux系とWindows系 が主流。AppleのmacOSはサーバー用途ではほぼ使われないが、開発環境では役立つ。


🟢 Linux系(サーバー用途の定番)

ほとんどのサーバーはLinuxを使う。無料・軽量・柔軟・安定が強み。

✅ Ubuntu Server

  • 特徴: 初心者向け、公式サポート充実、広く使われている
  • 用途: Webサーバー、開発サーバー、小規模なシステム
  • パッケージ管理: apt (apt install zip など)

✅ Debian

  • 特徴: 安定性が高い、Ubuntuのベース
  • 用途: 企業向けのサーバー、安定運用が求められる環境
  • パッケージ管理: apt (apt install zip)

✅ CentOS / Rocky Linux / AlmaLinux

  • 特徴: RHEL(Red Hat Enterprise Linux)のクローン、エンタープライズ向け
  • 用途: 企業サーバー、大規模システム
  • パッケージ管理: yum or dnf (yum install zip or dnf install zip)

✅ Red Hat Enterprise Linux (RHEL)

  • 特徴: 有料、サポートあり、大企業向け
  • 用途: 企業サーバー、ミッションクリティカルな環境
  • パッケージ管理: yum or dnf

✅ Amazon Linux

  • 特徴: AWS用に最適化されたLinux、CentOSベース
  • 用途: AWS環境での運用
  • パッケージ管理: yum or dnf

✅ Arch Linux

  • 特徴: 最小構成から構築、上級者向け
  • 用途: 自由度が求められるサーバー
  • パッケージ管理: pacman

🔵 Windows系(GUIあり・特定用途向け)

Linuxに比べると少数派だけど、Windowsならではの用途もある。

✅ Windows Server

  • 特徴: GUI操作ができる、Active Directory(AD)やIISが使える
  • 用途: 企業ネットワーク(AD管理)、Windowsアプリケーション(.NET系)サーバー
  • パッケージ管理: winget or choco
    例: choco install zip

🍏 macOS(開発向け・サーバー用途は少ない)

AppleのOSは基本的に 開発環境向け で、サーバーとしては使われない。

✅ macOS

  • 特徴: UNIXベースでターミナル操作が可能、開発環境に最適
  • 用途: ローカル開発環境(Docker、Node.js、PHP)、iOS/macOSアプリ開発
  • パッケージ管理: brew
    例: brew install zip

🔹 サーバーOSの選び方(ざっくり)

  • Webサーバー(Apache, Nginx, PHP, MySQL) → Linux系
    • Ubuntu Server(初心者向け)
    • Debian(安定運用向け)
    • CentOS/Rocky Linux(企業向け)
  • AWS/GCPのクラウドサーバー → Amazon Linux or Ubuntu
  • 企業の社内サーバー → Windows Server
    • Active Directory、Windowsアプリ(.NET)を動かすならWindows
  • 開発用ローカルサーバー → macOS or Ubuntu
    • macOS: iOS開発に最適
    • Ubuntu: オープンソース開発向け

🔹 OSごとのコマンド(共通操作)

操作 Linux (Ubuntu, Debian) Linux (CentOS, RHEL) Windows macOS
パッケージ更新 apt update && apt upgrade yum update or dnf update winget upgrade --all brew update && brew upgrade
zipインストール apt install zip yum install zip or dnf install zip choco install zip brew install zip
ファイルリスト ls ls dir ls
ディレクトリ移動 cd /path cd /path cd \path cd /path
ファイル作成 touch file.txt touch file.txt echo. > file.txt touch file.txt

📝 まとめ

サーバー用ならLinux(Ubuntu, CentOS, RHELなど)
Windowsは企業ネットワークやWindowsアプリ向け
macOSは開発環境向け(サーバーには向かない)
zipのインストールはOSごとに違うので要確認

サーバーを使うなら Linuxの基本操作は覚えておくと便利

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?