Skip to Content
문서서버서버 설치

Ubuntu 서버 26.04 LTS 설치 가이드

이 문서에서는 이미지 다운로드, 부팅 가능한 미디어 생성, 설치 프로세스 및 초기 구성을 포함하여 Ubuntu 서버 26.04 LTS를 처음부터 설치하는 방법을 설명합니다.

시스템 요구 사항

요구 사항최저한의추천
CPU1GHz 64비트 프로세서2GHz+ 멀티코어 프로세서
숫양1GB4GB 이상
디스크2.5GB25GB 이상
회로망선택 과목네트워크 연결 권장

이미지 다운로드

# Download Ubuntu Server 26.04 LTS ISO from the official site wget https://releases.ubuntu.com/26.04/ubuntu-26.04-live-server-amd64.iso # Verify file integrity wget https://releases.ubuntu.com/26.04/SHA256SUMS sha256sum -c SHA256SUMS 2>/dev/null | grep ubuntu-26.04-live-server-amd64.iso

미러 사이트

공식 다운로드가 느린 경우 미러를 사용할 수 있습니다.

# Example mirrors wget https://mirrors.edge.kernel.org/ubuntu-releases/26.04/ubuntu-26.04-live-server-amd64.iso # Check https://launchpad.net/ubuntu/+cdmirrors for a full list of mirrors

부팅 가능한 미디어 생성

리눅스에서

# Identify the USB drive (double-check the device name to avoid data loss) lsblk # Write the ISO to the USB drive (replace /dev/sdX with the actual device name) sudo dd if=ubuntu-26.04-live-server-amd64.iso of=/dev/sdX bs=4M status=progress oflag=sync

Windows에서

Rufus  또는 balenaEtcher 를 사용하세요.

  1. Rufus 다운로드 및 열기
  2. USB 드라이브를 선택하세요
  3. 다운로드한 ISO 파일을 선택하세요
  4. 파티션 구성표로 GPT(UEFI) 또는 MBR(BIOS)을 선택합니다.
  5. 작성하려면 “시작”을 클릭하세요.

설치 단계

1. 설치 프로그램 부팅

USB 드라이브에서 부팅한 후 Ubuntu 서버 시도 또는 설치를 선택합니다. Subiquity 설치 프로그램이 전체 프로세스를 안내합니다.

2. 언어 선택

설치 언어를 선택하세요. 서버 환경의 경우 터미널에서 문자 인코딩 문제를 방지하기 위해 영어를 권장합니다. 다른 로캘이 필요한 경우 설치 후 구성할 수 있습니다.

3. 키보드 레이아웃

기본 영어(미국) 키보드 레이아웃을 선택하거나 키보드와 일치하는 레이아웃을 선택합니다.

4. 설치 유형

  • Ubuntu 서버: 표준 설치
  • Ubuntu 서버(최소화): 최소 설치, 컨테이너 및 클라우드 환경에 적합

5. 네트워크 구성

설치 프로그램은 DHCP을 통해 자동으로 네트워크 구성을 가져옵니다. 고정 IP를 수동으로 구성하려면:

  1. 네트워크 인터페이스 선택
  2. IPv4 편집을 선택하세요.
  3. 방법을 수동으로 변경하세요.
  4. IP 주소, 서브넷 마스크, 게이트웨이 및 DNS을 입력하세요.

6. 프록시 설정

네트워크에 프록시가 필요한 경우 여기에 프록시 주소를 입력하세요(예: http://proxy.example.com:8080). 그렇지 않으면 공백으로 두십시오.

7. 미러 주소

기본값은 http://archive.ubuntu.com/ubuntu입니다. 더 빠른 다운로드를 위해 더 가까운 미러로 변경할 수 있습니다.

8. 디스크 파티셔닝

전체 디스크 사용(초보자에게 권장)

LVM을 활성화하는 옵션과 함께 전체 디스크 사용을 선택합니다.

  • 이 디스크를 LVM 그룹으로 설정: 향후 더 쉬운 확장을 위해 권장됩니다.
  • LUKS로 LVM 그룹 암호화: 디스크 암호화, 암호 설정 필요

사용자 정의 파티셔닝

수동으로 파티션을 나누려면 맞춤형 스토리지 레이아웃을 선택하세요. 제안된 레이아웃:

분할크기파일 시스템마운트 포인트목적
EFI512MB지방32/부팅/efiUEFI 부팅(필수)
/신병1GBext4/신병부팅 파티션
교환RAM과 동일교환-스왑 공간
/남은 공간ext4/xfs/루트 파티션

LVM을 사용하는 경우 추가 분할을 고려하세요.

/ 20 GB System root /home Variable User data /var Variable Logs and data /tmp 5 GB Temporary files

9. 사용자 생성

다음 정보를 입력하세요.

  • 귀하의 이름: 귀하의 성명
  • 서버 이름: 호스트 이름(예: ubuntu-server)
  • 사용자 이름 선택: 로그인 사용자 이름
  • 비밀번호 선택: 비밀번호를 설정하세요.

10. SSH 설정

OpenSSH 서버 설치를 선택하는 것이 좋습니다. GitHub 또는 Launchpad에서 SSH 공개 키를 가져올 수도 있습니다.

  • SSH ID 가져오기를 선택합니다.
  • GitHub 사용자 이름을 입력하세요

11. 주요 서버 Snaps

필요에 따라 사전 설치된 Snap 패키지 옵션을 선택합니다.

  • 도커
  • 넥스트클라우드
  • 포스트그레SQL
  • 등.

12. 설치 시작

설정을 확인한 후 설치가 시작됩니다. 보안 업데이트는 설치 중에 자동으로 다운로드됩니다. 완료되면 지금 재부팅을 선택합니다.

설치 후 구성

첫 번째 로그인

# Remove the USB drive, reboot, and log in with the user you created # First, update the system sudo apt update && sudo apt upgrade -y

시간대 구성

# Check current timezone timedatectl # Set timezone (example: US Eastern) sudo timedatectl set-timezone America/New_York # Enable network time synchronization # Note: the default time-sync daemon on a fresh 26.04 install is Chrony # (chrony.service); timedatectl set-ntp only takes effect with systemd-timesyncd. # Pick one of the following based on the service you actually use: # Path A: Use Chrony (the 26.04 default) -- manage it with systemctl/chronyc sudo systemctl enable --now chrony chronyc tracking # Check sync status # Path B: Use systemd-timesyncd only (when Chrony is not installed) -- use timedatectl # sudo timedatectl set-ntp true # timedatectl show-timesync # Check which service is handling synchronization systemctl is-active chrony >/dev/null 2>&1 && echo "Using Chrony" || timedatectl show-timesync

로캘 구성(선택 사항)

# Generate the desired locale sudo locale-gen en_US.UTF-8 # Set as default (if not already) sudo update-locale LANG=en_US.UTF-8

APT 미러 변경(선택 사항)

# Back up the original source list sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak # Example: use a closer mirror (26.04 uses DEB822 format) sudo tee /etc/apt/sources.list.d/ubuntu.sources << 'EOF' Types: deb URIs: http://archive.ubuntu.com/ubuntu Suites: resolute resolute-updates resolute-backports resolute-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg EOF sudo apt update

방화벽 구성

# Ubuntu comes pre-installed with ufw (Uncomplicated Firewall) # Allow SSH connections sudo ufw allow ssh # Enable the firewall sudo ufw enable # Check rules sudo ufw status verbose

고정 IP 구성(설치 중 설정하지 않은 경우)

# Edit the Netplan configuration sudo tee /etc/netplan/01-static.yaml << 'EOF' network: version: 2 renderer: networkd ethernets: ens33: addresses: - 192.168.1.100/24 routes: - to: default via: 192.168.1.1 nameservers: addresses: - 8.8.8.8 - 1.1.1.1 EOF # Apply the configuration sudo netplan apply

호스트 이름 설정

# Set the hostname sudo hostnamectl set-hostname my-server # Edit /etc/hosts echo "127.0.1.1 my-server" | sudo tee -a /etc/hosts

일반적인 설치 문제

설치 프로그램을 시작하지 못함

  • BIOS/UEFI 설정에서 USB 부팅이 활성화되어 있는지 확인하세요.
  • 보안 부팅 설정 확인(Ubuntu은 보안 부팅을 지원하지만 일부 하드웨어에서는 이를 비활성화해야 할 수도 있음)

디스크가 감지되지 않음

# If using a RAID controller, you may need to switch to AHCI mode in BIOS # or manually load drivers during installation

네트워크 연결 없음

  • 케이블 연결을 확인하세요
  • 일부 네트워크 어댑터에는 추가 펌웨어 패키지가 필요할 수 있습니다. 설치 후 다음을 실행합니다.
sudo apt install linux-firmware

다음 단계

설치가 완료되면 다음 사항을 고려하십시오.

  • SSH 원격 액세스 구성
  • 자동 보안 업데이트 설정
  • 필요한 서비스 소프트웨어를 설치하세요