Bu rehber, sistem saatinin doğru senkronize olması için VPS sunucunuzun saat dilimini Paris saat dilimine (Europe/Paris) nasıl yapılandıracağınızı gösterir.
📋 Ön Koşullar
- root veya sudo erişimi olan bir VPS sunucusu
- Etkin bir SSH bağlantısı
- Ubuntu/Debian (komutlar bu dağıtımlara göre uyarlanmıştır)
🔍 Mevcut Saat Dilimini Kontrol Etme
Saat dilimini değiştirmeden önce, şu anda hangisinin yapılandırıldığını kontrol edin:
Bash# Display current timezone timedatectl # Or simply date # Display only the timezone timedatectl | grep "Time zone"
🌍 Yöntem 1: timedatectl Kullanın (Önerilen)
Kullanılabilir Saat Dilimlerini Listeleyin
Bash# List all available timezones timedatectl list-timezones # Filter to find European timezones timedatectl list-timezones | grep Europe # Search specifically for Paris timedatectl list-timezones | grep Paris
Paris Saat Dilimini Yapılandırın
Bash# Set timezone to Europe/Paris sudo timedatectl set-timezone Europe/Paris # Verify that the change was applied timedatectl
Şuna benzer bir çıktı görmelisiniz:
Local time: Mon 2026-01-11 14:30:00 CET
Universal time: Mon 2026-01-11 13:30:00 UTC
RTC time: Mon 2026-01-11 13:30:00
Time zone: Europe/Paris (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
🔧 Yöntem 2: Sembolik Bağlantı Kullanın (Geleneksel Yöntem)
timedatectl kullanılamıyorsa geleneksel yöntemi kullanabilirsiniz:
Adım 1: Saat Dilimini Belirleyin
Bash# List available timezones ls /usr/share/zoneinfo/Europe/ # Verify that Europe/Paris exists ls -la /usr/share/zoneinfo/Europe/Paris
Adım 2: Sembolik Bağlantıyı Oluşturun
Bash# Backup the old timezone (optional) sudo mv /etc/localtime /etc/localtime.backup # Create the symbolic link to the Paris timezone sudo ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime # Verify the change date
Adım 3: /etc/timezone Dosyasını Güncelleyin (Debian/Ubuntu)
Bash# Edit the timezone file echo "Europe/Paris" | sudo tee /etc/timezone # Verify the content cat /etc/timezone
✅ Doğrulama
Geçerli Saati Kontrol Edin
Bash# Display date and time with timezone date # Display all time information timedatectl # Display UTC time date -u
Saat Diliminin Doğru Olduğunu Doğrulayın
Bash# Verify the symbolic link ls -la /etc/localtime # Should display something like: # /etc/localtime -> /usr/share/zoneinfo/Europe/Paris
🕐 Yaz Saati Uygulaması (DST) Yönetimi
Europe/Paris saat dilimi yaz saati uygulamasını (CET/CEST) otomatik olarak yönetir:
- CET (Orta Avrupa Saati) : UTC+1 (kış)
- CEST (Orta Avrupa Yaz Saati) : UTC+2 (yaz)
Sistem saati yılda iki kez otomatik olarak ayarlar.
Yaz Saati Uygulamasını Doğrulayın
Bash# Display detailed information timedatectl # Verify the change date zdump -v Europe/Paris | grep 2024
🔄 NTP Senkronizasyonu
Saati doğru tutmak için NTP senkronizasyonunun etkin olduğundan emin olun:
NTP Durumunu Kontrol Edin
Bash# Check if NTP is active timedatectl status # If NTP is not active, enable it sudo timedatectl set-ntp true
NTP'yi Kurun ve Yapılandırın (gerekirse)
Bash# Install NTP sudo apt update sudo apt install ntp -y # Check status systemctl status ntp # Enable NTP on boot sudo systemctl enable ntp sudo systemctl start ntp
🎯 Diğer Fransız Saat Dilimleri
Başka bir Fransız saat dilimine ihtiyacınız varsa:
Bash# Mainland (Paris) sudo timedatectl set-timezone Europe/Paris # Antilles (Guadeloupe, Martinique) sudo timedatectl set-timezone America/Martinique # French Guiana sudo timedatectl set-timezone America/Cayenne # Réunion sudo timedatectl set-timezone Indian/Reunion # New Caledonia sudo timedatectl set-timezone Pacific/Noumea # French Polynesia sudo timedatectl set-timezone Pacific/Tahiti
📝 Faydalı Komutlar
Saati Farklı Saat Dilimlerinde Görüntüleme
Bash# Local time (Paris) date # UTC time date -u # Time in a specific timezone TZ='America/New_York' date TZ='Asia/Tokyo' date
Saati Elle Değiştirme (Önerilmez)
Uyarı: NTP etkinken saati elle değiştirmek önerilmez, çünkü NTP onu otomatik olarak doğru saate geri ayarlar.
Bash# Modify time (format: YYYY-MM-DD HH:MM:SS) sudo timedatectl set-time "2026-01-11 14:30:00" # Modify only the date sudo timedatectl set-time "2026-01-11" # Modify only the time sudo timedatectl set-time "14:30:00"
🔍 Sorun Giderme
Sorun: Saat Senkronize Olmuyor
Bash# Check NTP status timedatectl status # Enable NTP if disabled sudo timedatectl set-ntp true # Check connection to NTP servers sudo ntpq -p
Sorun: Saat Dilimi Değişmiyor
Bash# Verify that timedatectl works sudo timedatectl set-timezone Europe/Paris # Verify the symbolic link ls -la /etc/localtime # If necessary, recreate the link manually sudo rm /etc/localtime sudo ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime
Sorun: Yeniden Başlatmadan Sonra Saat Yanlış
Bash# Enable NTP for automatic synchronization sudo timedatectl set-ntp true # Install chrony (NTP alternative) sudo apt install chrony -y sudo systemctl enable chrony sudo systemctl start chrony
✅ En İyi Uygulamalar
- timedatectl kullanın : Modern ve önerilen yöntemdir
- NTP'yi etkinleştirin : Saati otomatik olarak senkronize tutmak için
- Düzenli kontrol edin : Sistem saati loglar ve SSL sertifikaları için önemlidir
- Elle değiştirmeyin : Senkronizasyonu NTP'ye bırakın
🆘 Sorun Giderme
Yapılandırmanın Tamamını Doğrulayın
Bash# Verify all time information timedatectl # Check configuration files cat /etc/timezone ls -la /etc/localtime # Check TZ environment variable echo $TZ
Tam Sıfırlama
Sorun yaşıyorsanız sıfırlayabilirsiniz:
Bash# Enable NTP sudo timedatectl set-ntp true # Redefine timezone sudo timedatectl set-timezone Europe/Paris # Verify timedatectl date
📚 Ek Kaynaklar
❓ Sık Sorulan Sorular
S: CET ile CEST arasındaki fark nedir?
C: CET (Orta Avrupa Saati) kış saatidir (UTC+1), CEST (Orta Avrupa Yaz Saati) ise yaz saatidir (UTC+2). Sistem yılda iki kez otomatik olarak değişir.
S: Europe/Paris mi yoksa doğrudan CET mi kullanmalıyım?
C: Yaz saati kurallarını otomatik olarak içerdiği için her zaman Europe/Paris kullanın. CET/CEST'i doğrudan kullanmayın.
S: Saat, yaz saati uygulamasıyla otomatik olarak değişiyor mu?
C: Evet, Europe/Paris kullanıyorsanız sistem, yaz saati geçişi sırasında saati otomatik olarak ayarlar.
S: NTP'nin doğru çalıştığını nasıl kontrol ederim?
C: timedatectl status komutunu kullanın ve "NTP service" değerinin "active", "System clock synchronized" değerinin "yes" olduğunu doğrulayın.
S: VPS'imde başka bir saat dilimi kullanabilir miyim?
C: Evet, timedatectl set-timezone komutunda Europe/Paris yerine istediğiniz saat dilimini yazın.