顯示具有 Windows 標籤的文章。 顯示所有文章
顯示具有 Windows 標籤的文章。 顯示所有文章

2013年1月22日 星期二

Windows 版 rsync - cwRsync


  1. 下載 Free Edition cwRsync (https://www.itefix.no/i2/sites/default/files/cwRsync_4.0.5_Installer.zip)
  2. 解壓縮後安裝。
  3. 建立一個批次檔,舉例來說 C:\sync.bat 內容如下:
C:\"Program Files"\cwRsync\bin\rsync.exe -ar --delete --progress /cygdrive/C/src_dir /cygdrive/D/backup_dir

以上假設:
  • cwRsync 安裝於 C:\"Program Files"\cwRsync
  • 要被備份的文件夾是:C:\src_dir
  • 備份至: D:\backup_dir

2012年12月5日 星期三

使用 MS Office 2010(Word / Excel / PowerPoint) 開啟檔案時,程式一直提示"檔案損毀,無法開啟"的訊息

檔案 -> (1) 選項 -> (2)信任中心 -> (3)信任中心設定(T) -> (4)受保護的檢視 -> (5) 【針對網際網路的檔案啟用受保護的檢視】完成之後按一下【確定】即可。



2012年7月27日 星期五

網站壓力測試工具 - Apache Benchmark(ab) 說明

ab指令的語法是 ab -c {同時進行的request數量} -n {次數} {url}


例如:
同時連線數: 100 人
ab -n  100 -c  100 http://xx.xx.xx.xx/index.php



C:\Apache\bin>ab -n 100 -c 100 http://192.168.1.103/index.php


This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.1.103 (be patient).....done


Server Software:        Apache
Server Hostname:        192.168.1.103
Server Port:            80

Document Path:          /index.php
Document Length:        2261 bytes

Concurrency Level:      100
Time taken for tests:   5.432 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      257300 bytes
HTML transferred:       226100 bytes
Requests per second:    18.41 [#/sec] (mean)
Time per request:       5432.000 [ms] (mean)
Time per request:       54.320 [ms] (mean, across all concurrent requests)
Transfer rate:          46.26 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    7  43.5      2     438
Processing:   292 2631 1352.8   2680    4916
Waiting:      289 2629 1352.9   2678    4915
Total:        295 2638 1348.1   2686    4918

Percentage of the requests served within a certain time (ms)
  50%   2686
  66%   3401
  75%   3733
  80%   3875
  90%   4534
  95%   4666
  98%   4720
  99%   4918
 100%   4918 (longest request)



後面的幾行粗體字資料是整個回應等候時間的統計,算是 Apache Benchmark 的數據價值精華所在。這些數據表示了這 100 個人所感受到的回應速度統計。以上面這個例子來說,此次執行結果顯示這次測試結果從 2.282 秒到 4.918 秒不等。 其中50%(50)的使用者感受的反應時間是 2.686 秒以下, 90%(90)的使用者感受的反應時間是 4.534 秒中以下,所有的人均在 4.918 秒內得到回應。

2012年7月17日 星期二

[Linux] ssh 連線工具與亂碼問題


在 Windows 系統中要用 ssh 方式連線至 Linux 主機, 有時中文會出現亂碼,該如何解決呢?


  1. 最早的連線軟體是 PuTTY,但是此軟體不支援中文,所以有人開發了支援中文環境的 PieTTY,下載網址: http://ntu.csie.org/~piaip/pietty/
  2. 如下圖連線編碼需改為「Unicode UTF-8」
  3. 顯示正確的中文編碼了。





[Windows] 64 位元 Windows 下的 System32 與 SysWOW64 文件夾之差異


Microsoft Vista/Windows7/Windows 2008 64 位元版,在 Windows 底下有System32 及 SysWOW64 兩個不同的資料夾,而 32 位元版的 Windows 則只有 System32。那這個兩個文件夾有什麼差異呢?

C:\Windows\System32 => 存放原生的64位元的程式及資料

C:\Window\SysWOW64 => 存放舊的32位元的程式及資料


WOW64 是 Windows-on-Windows 64bit 的縮寫,主要的目的在於讓 64 位元的 Windows 可以執行 32 位元的應用程式。


所以,在 64 位元的 Windows 安裝 32 位元的應用程式時,就必須把原先要複製到 X:\Windows\system32\ 下的 DLL 檔案,改複製到 X:\Windows\ SysWOW64\ 下。

PS: 其中 X 表示 Windows 安裝磁碟。

[Windows] 遠端桌面的檔案傳輸


在使用 Windows 遠端桌面時,要進行檔案傳輸,可以用此方法。

Windows 底下:
使用遠端桌面連線軟體 -> 選項 -> 本機資源 -> 本機裝置 -> 詳細資料 -> 選擇磁碟機。

連線過去之後,遠端電腦就會多磁碟機,就可以進行檔案傳輸。