DriteStudio
DRITESTUDIODigital Infrastructure
Home
ArticlesAbout UsContact

Services

VPSHigh-performance virtual servers with full root access
Web HostingManaged hosting with Plesk and free SSL
Game Server HostingSupports 20+ games worldwide. Rent a VPS and tell us which game you want to run.
Dedicated ServerEnterprise hardware with IPMI access
ColocationSecure data center space for your servers
SecurityWAF, DDoS Protection & 24/7 SOC Monitoring
StatusCheck system uptime and service availability

Quick Links

View All ServicesDocumentationContact Sales
Home
VPSHigh-performance virtual servers with full root access
Web HostingManaged hosting with Plesk and free SSL
Game Server HostingSupports 20+ games worldwide. Rent a VPS and tell us which game you want to run.
Dedicated ServerEnterprise hardware with IPMI access
ColocationSecure data center space for your servers
SecurityWAF, DDoS Protection & 24/7 SOC Monitoring
StatusCheck system uptime and service availability
Articles
About Us
Contact
0%
วิธีการเปลี่ยน mirror update ใน linux
Back to articles

วิธีการเปลี่ยน mirror update ใน linux

วิธีการเปลี่ยน mirror update ใน linux

Linux-August 12, 2023-Updated: March 16, 2026

วิธีการเปลี่ยน mirror update ใน Linux

การเปลี่ยน mirror สำหรับการอัปเดตในระบบปฏิบัติการ Linux ขึ้นอยู่กับตัวจัดการแพ็กเกจที่ใช้งาน:

1. APT (Debian, Ubuntu):

  1. แก้ไขไฟล์ /etc/apt/sources.list
    sudo nano /etc/apt/sources.list
    
  2. แทนที่ URL ที่ใช้งานอยู่ด้วย mirror ที่ต้องการ
  3. อัปเดตแคชของแพ็กเกจ:
    sudo apt update
    

2. YUM (Red Hat, CentOS ก่อน 8):

  1. ไปที่ /etc/yum.repos.d/ และแก้ไขไฟล์ .repo ที่คุณต้องการเปลี่ยน mirror
  2. แทนที่ URL ที่ใช้งานอยู่ด้วย mirror ที่ต้องการ
  3. ทำการล้างแคช:
    sudo yum clean all
    sudo yum makecache
    

3. DNF (Fedora, CentOS 8 และถัดไป):

  1. ไปที่ /etc/yum.repos.d/ หรือ /etc/dnf/dnf.conf และแก้ไขไฟล์ .repo ที่คุณต้องการเปลี่ยน mirror
  2. แทนที่ URL ที่ใช้งานอยู่ด้วย mirror ที่ต้องการ
  3. ทำการล้างแคช:
    sudo dnf clean all
    sudo dnf makecache
    

4. Pacman (Arch Linux):

  1. แก้ไขไฟล์ /etc/pacman.d/mirrorlist
  2. แทนที่หรือเรียงลำดับ mirror ในลิสต์ตามที่คุณต้องการ
  3. อัปเดตฐานข้อมูลแพ็กเกจ:
    sudo pacman -Sy
    

ข้อแนะนำ: ควรสำรองข้อมูลไฟล์ก่อนทำการแก้ไข และตรวจสอบว่า mirror ที่คุณเลือกมาใช้งานอยู่ในสถานะที่ดี และมีการอัปเดตที่สม่ำเสมอ เพื่อป้องกันปัญหาในการอัปเดตแพ็กเกจในอนาคต.

Share article:
View more articles
D

DriteStudio | ไดรท์สตูดิโอ

Cloud, VPS, Hosting and Colocation provider in Thailand

Operated by Craft Intertech (Thailand) Co., Ltd.

DRITESTUDIO
DRITESTUDIODigital Infrastructure

100/280 Soi 17, Delight Village, Bang Khun Thian - Chaitalay, Phanthai Norasing, Samut Sakhon 74000

Services

  • VPS Hosting
  • Web Hosting
  • Game Server Hosting
  • Dedicated Server

Company

  • About Us
  • Contact Us
  • System Status

Resources

  • Documentation
  • Help Center
  • Articles

Legal

  • Terms of Service
  • Privacy Policy
  • Refund Policy

© 2026 Craft Intertech (Thailand) Co., Ltd. All rights reserved.

We use cookies

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy