Blocking the searchme.com bot
July 15, 2008 on 4:04 am | In Linux | No CommentsNice idea for a search engine, however, their bot is a disrespectfull bastard, doesn’t obey robots.txt, plus as it’s a visual search engine, processes Javascript tracking which throws your stats off.
Block it using iptables thus
iptables -I INPUT -m iprange --src-range 165.193.254.1-165.193.254.254 -j DROP
iptables -I INPUT -m iprange --src-range 208.111.154.1-208.111.154.254 -j DROP
Why does df and du show different used disk space?
August 19, 2007 on 3:40 pm | In Linux | No CommentsSimple answer:
Do a
lsof | grep "deleted"
and see what shows up. du shows the usage, df shows free space BUT still counts files that have been deleted but are open by a process. Some examples of these types of files would be Apache access or error logs that have been deleted but the server has not been restarted or something I came across was a duff MYSQL process locking table data file thats had been deleted.
Simple option to get rid of these files is to restart your server, but, if this is not possible look at the PID that has the file locked and see if you are able to kill or restart the process.
I had no clue, but this guy did:
http://www.walkernews.net/2007/07/13/df-and-du-command-show-different-used-disk-space/
so kudus to him.
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^