2012年4月17日 星期二

VMware相容性指南 vsphere esx 升級 必看文章

升級前先看支不支援吧!不然搞死您!
我也被搞到了!瞎~

VMware Compatibility Guide

http://partnerweb.vmware.com/comp_guide2/san_reports.php?deviceCategory=san

VMWARE vCenter5 u1 記憶體 吃很大 優化瘦身

安裝VMware vSphere CLI後TOMCAT6很吃記憶體,修正如下

tomcat6
修改登錄檔..用 regedit 開啟登錄檔編輯工具,找到以下位置

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\vctomcat\Parameters\Java

or

HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\vctomcat\Parameters\Java

然後設定以下的三個設定..
JvmMs = 0x0
JvmMx = 0x0
JvmSs = 0x0
以上為網路參考設定

我只有 限制記憶體到JvmMx = 512MB。完成設定之後,到系統管理工具 > 服務 > 將 (VMware VirtualCenter Management Webservices) 這個服務重新啟動
==========================================================
安裝vCenter5 u1版,SQL2005記憶體也吃很大,修正如下

改善SQL Server記憶體管理

在vcenter主機上安裝 sql server express management studio 這個圖形界面。軟體可以在此處下載:
•Microsoft SQL Server Management Studio Express 2005
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8961

點選連線主機 > 右鍵選屬性 > 切換到記憶體頁面
最大伺服器記憶體(以MB為單位)(X):
先把設定改為 0~512 ,設定改好後,要在 系統管理工具> 服務 > 內重新起動服務(SQL Server (SQLEXP_VIM))

2012年4月16日 星期一

2012年4月15日 星期日

windows server 關閉煩人的IE 要瀏覽都得加入信任的網站

2008
「系統管理工具」->「伺服器管理員」 右方 伺服器摘要的 「安全性資訊」 點選右選單 【設定 IE ESC】 即可選擇開啟或關閉。

2003
「控制台」->「 新增或移除程式」->「 新增/移除 Windows 元件」取消勾選 ( Internet Explorer Enhanced Security Configuration ) 即可。

2012年4月9日 星期一

管你左鍵右鍵...解除網頁按鍵鎖

隨便開個空白網頁加到我的最愛,名稱自己改。
在連結上按右鍵→內容→網頁文件→在URL(U)上貼下

遇到有網頁有鎖就點一下連結。

這就是我不鎖的原因~因鎖了也沒用!= =||

PS:請誤濫用~

============================================================
javascript:(function() { function R(a){ona = "on"+a; if(window.addEventListener) window.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); window[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");})()
=============================================================

2012年4月8日 星期日

好用 fastcopy 備份資料

http://ipmsg.org/tools/fastcopy.html.en

待續...

網路上提供 (文章引用於http://jojochen.blog.ithome.com.tw/post/2529/38855)
=====================================
FastCopy Command Line語法:

NET USE Z: \\NasNameA\ShareFolderA\SubFolder
fastcopy.exe /cmd=move /auto_close /estimate /logfile="D:\Log\SubFolder.txt" "\\NasNameB\ShareFolderA\SubFolder\*.*" /to="Z:\"
NET USE z: /delete
EXIT

以上存成bat檔後,再以Windows內附的排程工具設定定時執行即可。
----------------------------------------------------------------------------
增加了列出傳輸檔案名稱,存成以日期為檔名的txt文字檔備查日誌,避免使用者反應找不到檔案或者沒有接收到檔案,其語法如下(藍色粗體字):
NET USE Z: \\NasNameA\ShareFolderA\SubFolder
dir \\NaslNameB\ShareFolderB\SubFolder /s/b > d:\log\FileName%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%.txt
fastcopy.exe /cmd=move /auto_close /estimate /logfile="D:\Log\SubFolder.txt" "\\NasNameB\ShareFolderA\SubFolder\*.*" /to="Z:\"
NET USE z: /delete
EXIT
------------------------------------------------------------------------------------
使用資料同步選項sync,將一台NAS分享資料夾資料同步至另一台FreeNAS做D2D備份用途,並產生filelog檔,查看哪些檔案同步過去,包括被刪除的檔案以及花費時間等,撰寫批次檔語法如下:
fastcopy.exe /cmd=sync /auto_close /estimate /filelog=d:\log\sync-files.log "\\NAS\ShareFolder\*.*" /to="\\FreeNas\ShareFolder"
exit

在D:\log資料夾產生的sync-files.log內容如下:

FastCopy(ver2.08) start at 2011/09/27 11:10:55

<Source> \\NAS\ShareFolder\*.*
<DestDir> \\FreeNas\ShareFolder
<Command> Sync (Size/Date)

+ \\FreeNas\ShareFolder\新增文字文件.txt
==================================================

自己diy
======================================
NET USE Z: \\192.168.4.28\nas28 /user:帳號 密碼
"C:\Program Files\FastCopy\FastCopy.exe" /cmd=diff /auto_close /estimate /logfile="C:\Documents and Settings\Administrator\桌面\FastCopy208\Log\LogSubFolder.txt" "E:\nas28\*.*" /to="Z:\"
NET USE z: /delete
EXIT
======================================
我是做差異備份!
連網路磁碟機(要備至另一到nas),
執待fastcoy執行檔,差異備份,自動關閉,log存放路徑(看log成功失敗等),
要備份的資料匣路徑,備份到一開始連線的z槽,
關閉z槽網路磁碟機,
離開。
----------------------------------------------
Command Line說明檔於檔案解壓縮後的FastCopy.chm此檔


Diff (No Overwrite) Copy if the same filename doesn't exist in destination.
如果目標資料夾沒有相同的檔案時則複製
Diff (Size/date) Copy if size or date is different, or if it doesn't exist (in default)
如果檔案不存在或者是大小以及尺寸不相同則複製(預設值)
Diff (Newer) Copy if source file timestamp is newer or doesn't exist.
檔案不存在,或者是原始檔案的時間比較新的話則複製
Copy (Overwrite all) Always copy/overwrite all.
不管怎樣都複製以及覆蓋
Sync (Size/date) Copy
if size or date is different, or doesn't exist. In addition, delete all
destination files/directories that don't exist in source.
如果目標資料夾檔案時間與大小不同、或者市不存在則複製,除此之外,會刪除目標資料夾裡面不存在於來源資料夾的檔案,也就是同步兩個資料夾的意思
Move (Overwrite all) Always
copy/overwrite all and delete all copied source files. (It is able to
change "Move (Overwrite all)" -> "Move (Size/date)" in settings
dialog.)
搬運檔案,也就是複製完畢之後來源資料夾會被清空
Delete Delete all files/dirs by force.
刪除檔案

win7 網路磁碟機連線 nas連線 xp網芳連線

  • Win7 Professional 以上的版本,用 gpedit.msc 修改「本機安全性原則」中的設定:
    電腦設定→Widnows→設定→安全性設定→本機原則→安全性選項→網路安全性 Lan Manager 驗證等級


  • 改成「傳送 LM 和 NTLM - 如有交涉,使用 NTLMv2 工作階段安全性」





    1. 開啟「控制台>系統管理工具>本機安全性原則」,進到「本機原則>安全性選項」
    2. 找到「網路安全性:LAN Manager 驗證層級」,改為「傳送 LM 和 NTLM - 如有交涉,使用 NTLMv2 工作階段安全性」


    =========================================================

  • Win7 Home Premium 以下的版本,自行改 registry
    在 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] 下新增名稱為 LmCompatibilityLevel 的 32bit DWORD 值 1。


  • LmCompatibilityLevel 數字的意義

    0=Send LM & NTLM responses (never uses NTLMv2)
    1=Send LM & NTLM - use NTLMv2 session security if negotiated
    2=Send NTLM response only, use NTLMv2 if server supports it.
    3=Send NTLMv2 response only, if DC accept LM, NTLM and NTLMv2 auth, use NTLMv2 security if supported.
    4=Send NTLMv2 response only, if DC refuse LM, accept NTLM or NTLMv2 auth, use NTLMv2 security if supported.
    5=Send NTLMv2 response only, if DC,refuse LM & NTLM and only accept NTLMv2 auth, use NTLMv2 security if supported.