E-Posta adresinizi girin ve yeni eklenen yazılardan haberdar olun.

Yazı Arşivi

Twitter

Fetching latest tweets...

Takvim

June 2013
M T W T F S S
« May    
 12
3456789
10111213141516
17181920212223
24252627282930

dig ile dkim check

dig -t txt key1._domainkey.xxxxxx.com @nameserver

dig ile reverse dns kaydı kontrolü

[root@kursad ~]# dig -x ttt.zzz.xxx.yyy ; < > DiG 9.3.4-P1 < > -x ttt.zzz.xxx.yyy ;; global options: printcmd ;; Got answer: ;; ->>HEADER< [...]

centos 5.3 konsoldan login olamama problemi.

Centos 5.3 sunuculardan birisinde

[root@MNFiguig ~]# uname -a Linux MNFiguig.xxx.net 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

konsoldan login olamiyorduk. /var/log/secure dosyasina baktigimizda asagidaki hatayi gorduk.

Apr 11 15:05:59 MNFiguig login: PAM unable to dlopen(/lib/security/pam_limits.so) Apr 11 15:05:59 MNFiguig login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32] Apr [...]

mySQL’de verilen GRANT haklarının geri alınması.

mySQL’de

GRANT

Örnek kullanım:

GRANT SELECT ON *.* TO ‘kullanici’;

ile verdiğiniz hakları geri almak isterseniz

REVOKE

komutunu kullanabilirsiniz.

Örnek kullanım :

REVOKE ALL PRIVILEGES, GRANT OPTION FROM ‘kullanici’;

Detaylı bilgi için:

REVOKE : http://dev.mysql.com/doc/refman/5.0/en/revoke.html GRANT : http://dev.mysql.com/doc/refman/5.0/en/grant.html

[...]

Fusion-io iodrive 2 mysql ve bios ayarları

MySQL 5.5 sunucusunda tavsiye edilen ayarlar şunlar :

innodb_flush_method=O_DIRECT Use direct IO and fsync to flush data and log files. innodb_max_dirty_pages_pct=60 Percentage of dirty pages to keep in the pool Keep at 60-80% of total system memory. Always monitor memory usage to make sure the system does not start to swap out pages. innodb_write_io_threads=16 Number [...]

Fusion-io iodrive 2 300K iops ve maceralarım (Kurulum, testler)

Kurulum, Donanım, işletim sistemi ve sorunlar : Kuracağım kart : Fusion-io ioDrive 2 365 GB MLC

İşletim sistemi ve kernel : Centos 5.5, Kernel 2.6.18 mySQL version 5.5.16-log MySQL Community Server (GPL)

Sunucular : 1. sunucu Fujitsu PRIMERGY TX100 S3 2. sunucu Fujitsu PRIMERGY RX300 Bu iki sunucu da Intel sunucular.

Fusion IO yetkilileri [...]

Nagios için PowerMTA status check plugin

Lazım oldu yazdık. Güle güle kullanın geliştirin. Bize bu kadarı yeterli.

# # # PowerMTA status check plugin for nagios # Kursad DARA [mkursaddara@gmail.com] # http://www.serbestkose.net # 20 December 2012, the day before Maya’s Armageddon. # # #!/bin/bash lynx=”/usr/bin/lynx” if [ -z "$1" ]; then echo “Usage : $0 [powermta_host_name or powermta_host_ip]” else response=`$lynx –head [...]

Nagios Return code of 127 is out of bounds – plugin may be missing hatası

Nagios’ta aşağıdaki hatayı alıyorsanız eğer;

Return code of 127 is out of bounds – plugin may be missing

Çözüm olarak

resource.cfg dosyasına

$USER2$=/etc/nagios3/libexec

eklemeniz gerekmektedir. Ekledikten sonra nagios u kapatıp açarsanız sorun düzelecektir.

Buradaki /etc/nagios3/plugins benim pluginlerimin bulunduğu dizin. Sizin eklediğiniz script nerde ise orayı yazmanız gerekir.

mysql de alırken tabloları lock etmeden dump alma

–single-transaction parametresi ile bunu yapabilirsiniz.

mysqldump -q –single-transaction veritabani_ismi > mysqldump.sql

mysqldump: Got error: 1556: You can’t use locks with log tables. when using LOCK TABLES hatası

mysqldump ile backup alırken aşağıdaki hata ile karşılaşıyorsanız tabloları lock etmesini kaldırıp devam edebilirsiniz veya mysql veritabanını yedeklemezsiniz.

mysqldump: Got error: 1556: You can’t use locks with log tables. when using LOCK TABLES

lock etmesini kaldırmak için dump parametreleri arasına –lock-tables=0 eklemelisiniz.

–lock-tables=0