瀏覽模式: 普通 | 列表
http://developer.apple.com/opensource/server/streaming/index.html

Welcome to Darwin Streaming Server, the open source version of Apple's QuickTime Streaming Server technology that allows you to send streaming media to clients across the Internet using the industry standard RTP and RTSP protocols. Based on the same code base as QuickTime Streaming Server, Darwin Streaming Server provides a high level of customizability and runs on a variety of platforms allowing you to manipulate the code to fit your needs.

Perl vs PHP 對照表

主機測試 just-ping.com

http://just-ping.com/

可以透過好多個點去 ping 目的主機,有圖有真象 ↓↓↓
attachments/200809/5328192084.png

它也有 traceroute

attachments/200809/8475001811.png

perl 找出一天內的新檔案

使用 File::Find

use File::Find;

# 從 1970-01-01 到現在所經過的秒數值
$date_time_second_since = time();

# 找 /var/log
find(\&find_file_wanted,'/var/log');

sub find_file_wanted {
        # ↓↓↓ 可以顯示絕對路徑
        $found_file = $File::Find::name;
        # 檔案的屬性
        ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($found_file);

        # 數出時間差值小於 一天的
        if (($date_time_second_since - $mtime) < 86400) {
                print "$found_file ";
        }
}

stat() 說明

  0 dev        device number of filesystem
  1 ino         inode number
  2 mode     file mode  (type and permissions)
  3 nlink       number of (hard) links to the file
  4 uid         numeric user ID of file's owner
  5 gid         numeric group ID of file's owner
  6 rdev       the device identifier (special files only)
  7 size        total size of file, in bytes
  8 atime     last access time in seconds since the epoch
  9 mtime     last modify time in seconds since the epoch
10 ctime      inode change time in seconds since the epoch (*)
11 blksize    preferred block size for file system I/O
12 blocks     actual number of blocks allocated

如果只是要取 mtime,也可以這樣作

($mtime) = (stat ($found_file)) [9];

find 的其它用法 http://www.unix.com.ua/orelly/perl/prog3/ch32_21.htm

find sub { print "$File::Find::name " if -d }, ".";
標籤: perl script 程式

使用 uptimeparty 監控主機是否還活著

http://www.uptimeparty.com

它可以監控這些東東
attachments/200809/3227247234.png
天下沒有白吃的午餐 ↓↓↓,免費的是每小時監控一次
attachments/200809/9704672485.png
標籤: 監控

nginx 是一個 Web 伺服器,類似於 Apache

QUote: http://blog.wu-boy.com/tag/nginx/
nginx
一個俄國人開發的輕量級高性能web server,特點是做proxy性能很好,因此被推薦取代apache2.2的mod_proxy_balancer,來和mongrel cluster搭配。其他方面和lighttpd到差不多。
要說缺點,可能就是發展的時間比較短,至今沒有正式版本,還是beta版。沒有經過足夠網站的驗證。

檢測 DNS 弱點

漏洞/資安訊息通告: http://www.lit.edu.tw/onweb.jsp?webno=333333557;&webitem_no=924&print_this_flag=1


有兩個檢測方式


一。) dig +short TXT porttest.dns-oarc.net @DNS伺服器


有出現 POOR 的話,就表示這個 DNS 伺服器有弱點,需要作更新了。


二。) http://www.doxpara.com/

attachments/200809/5830769884.png

[閱讀全文]

標籤: dns 弱點