簡單說是方便 Google 的一個非常好的主意, 讓大家在管理的網站上, 自行跟他說該抓哪些檔案, 這樣子他就不用派蜘蛛來從頭抓到尾了, 有造福雙方的意思.
可以參考: 如何支持Google Sitemaps 的介紹
個人筆記, 記錄關於 系統、程式、新聞 與 日常生活 等資訊
簡單說是方便 Google 的一個非常好的主意, 讓大家在管理的網站上, 自行跟他說該抓哪些檔案, 這樣子他就不用派蜘蛛來從頭抓到尾了, 有造福雙方的意思.
可以參考: 如何支持Google Sitemaps 的介紹
DNS 的設定, 最好將內外部的 DNS 分開,
不然被人 dig 一下, 就跟把整個架構都公開也一樣意思了....
正好看到一篇不錯的文章, 來介紹 DNS View setting.
UDMA3(ATA33)
# hdparm -X66 -c1 -d1 -m16 /dev/hda
UDMA4(ATA66)
# hdparm -X68 -c1 -d1 -m16 /dev/hda
UDMA5(ATA100)
# hdparm -X69 -c1 -d1 -m16 /dev/hda
我覺得這篇新聞裡面, 保養品反而不是重點,
反而是最後那句
"中國濫用死刑,處決人數是全球最多,據歐洲組織調查,2004年全球有5500人遭處決,其中有多達5000人是在中國被槍斃。"
才是最可怕的.....
Google Blog Search 出現了, 看起來應該是專找 Blog 用的,
但並不是如我猜想的, 還是會找到很多 News 站台,
(還是說, 只要有提供 RSS、XML, 他就當是 Blog 了?)
又是掛上個 beta, 唉.....
雖然是簡單的設定, 但每次設時都看問 man 還是很煩..
還是寫下來比較快....
ifconfig eth0 123.123.123.123 netmask 255.255.255.0
route add default gw 123.123.123.254
要查看 port 被使用, 使用 netstat 即可.
netsta -tunlp
t: tcp, u:udp, n: don't resolve names, l: listening, p: program
但要查看 port 被那隻程式, 就要使用 lsof,
lsof -i
感謝 jclin 教導: netstat -antp 也同樣能看出是哪隻程式佔用著 port.
IO Redirection: File Descriptors
file descriptor 0 is associated with STDIN, 1 with STDOUT, and 2 with STDERR.
ex: 2>&1 將 錯誤訊息(STDERR) 直接導向 標準輸出(STDOUT)
ex: 2>& > /tmp/output
ex: >& > /tmp/output (標準輸出 輸入都一起導到 /tmp/output file)
< input file : read standard input from file
> output file : write standard output to file
>> output file: append standard output to file
>& error file : write error message to file
| command2 : pipe output as input for command2
ex: ls 2>/dev/null 1>/tmp/output
& => 指定到 &1 的變數(不然會變成 1 的 file)