Linux Mint Türkiye
Linux Mint Destek => Kurulum Öncesi ve Sonrası => Konuyu başlatan: istanbul - 19 Şubat 2014, 19:19:24
-
Selamlar,
Linux üzerinde /var içinde tutulan logları iptal etmek istiyorum, sistem bu logları hiç tutmasın bunu nasıl yapabiliriz.
Mint Petra 16 KDE kullanıyorum.
-
sudo gedit /etc/logrotate.conf
içeriğini görebilirmiyiz ?
-
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
/var içinde /tmp /backups /log /cache gibi klasörler var bunların içini doldurup duruyor. Masaüstü resmine kadar koyuyor. disk dolmuştu bunları temizledim ortalama 5GB boşu boşuna biriktirmiş. Hiç bir işimi görmüyor ve sonuçta bunları tutmak için sistem kaynağıda tüketiyor. Kapatırsam performans artışı olur diye düşünüyorum.
-
Nerede olursa olsun şu tmp, backups, log, cache dosyalarından hiç hoşlanmıyorum. Konunun takipçisiyim
-
# see "man logrotate" for details
# rotate log files weekly
# weekly
# keep 4 weeks worth of backlogs
# rotate 1
# create new (empty) log files after rotating old ones
# create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
olarak değiştirebilirmiyiz bakalım loglamaya devam edecek mi ?
-
Yok işe yaramadı.
Sistemi kullandıkça yine log cache tmp dizinleri doldurmaya başlıyor.
-
o halde dosyayı eski haline getirelim. şuan iş yerindeyim test edemiyorum ama
activity-log-manager isimli paket kurulup ayarlama yapılabilir sanırım.
-
activity-log-manager i kurdum ama sanırım o ubuntu için belge logları vs. için.
Bu klasörülerin içini sildiğimde sistem çalışıyor ama bazı yerler saçmalaya başlıyor. Örneğin apache2 nin oluşturduğu log ve cacheleri sildigimde apache çalışmaz hale geliyor.
Sanırım her log tutan uygulamayı kendi ayarlarından kapatmak gerek.