NB帶出門設IP懶人法
公司靜態IP 回家是DHCP 設定來設定去太麻煩了。
網路上有很多資料!
我設定方式為第一段不管WIN7或XP都可用
=============================================================
設定自動取得ip,則設定如下,另存批次檔.就是副檔名要為.bat
netsh interface ip set address name="區域連線" source=dhcp
netsh interface ip set dns name="區域連線" source=dhcp
設定固定ip,則設定如下,再另存批次檔.就是副檔名要為.bat
netsh interface ip set address "區域連線" static 192.168.1.108 255.255.255.0 192.168.1.1 1
netsh interface ip set dns "區域連線" static 192.168.1.254
netsh interface ip add dns "區域連線" 168.95.1.1 2
============================================================
win7 方式
STATIC-IP.BAT、DHCP.bat 點兩下快速切換所設定的IP Address了
比如【STATIC-IP.bat】 內容
netsh interface ipv4 set address "區域連線" static 172.177.0.220 255.255.255.0 172.17.0.254 1
netsh interface ipv4 set dnsservers name="區域連線" static 168.95.1.1 primary
netsh interface ipv4 add dnsservers name="區域連線" 61.31.233.1 index=2
netsh interface ipv4 set winsservers "區域連線" static none
比如【DHCP.bat】 內容netsh interface ipv4 set address "區域連線" source=dhcp
netsh interface ipv4 set dnsservers name="區域連線" source=dhcp
netsh interface ipv4 set winsservers name="區域連線" source=dhcp
==========================================================
利用記事本(Notepad)開啟一份新文件,並且命名為 SwitchToDHCP.bat
輸入以下指令碼(由於 Windows XP 與 Windows Vista 的指令有些差異,因此分開列表)
•Windows 2000 / XP / 2003
netsh interface ip set address "區域連線" source=dhcp
netsh interface ip set dns "區域連線" source=dhcp
•Windows Vista / 2008
netsh interface ip set address "區域連線" source=dhcp
netsh interface ip set dnsserver "區域連線" source=dhcp
再來,介紹如何設定網路介面到靜態 IP 模式
1. 先查到你的網路卡介面名稱,如上圖示。
2. 再利用記事本(Notepad)開啟一份新文件,並且命名為 SwitchTo公司內部IP.bat
3. 輸入以下指令碼(由於 Windows XP 與 Windows Vista 的指令有些差異,因此分開列表)
•Windows 2000 / XP / 2003
netsh interface ip set address "區域連線" static 10.10.1.168 255.255.255.0 10.10.1.254 1
netsh interface ip set dns "區域連線" static 10.10.1.1 primary
•Windows Vista / 2008
netsh interface ip set address "區域連線" static 10.10.1.168 255.255.255.0 10.10.1.254 1
netsh interface ip set dnsserver "區域連線" static 10.10.1.254 primary
設定靜態 IP 時,標準的指令公式如下:
•Windows 2000 / XP / 2003
netsh interface ip set address "<介面名稱>" static [IP] [子網路遮罩] [預設閘道] [閘道公制]
netsh interface ip set dns "<介面名稱>" static [名稱伺服器位址] primary
•Windows Vista / 2008
netsh interface ip set address "<介面名稱>" static [IP] [子網路遮罩] [預設閘道] [閘道公制]
netsh interface ip set dnsserver "<介面名稱>" static [名稱伺服器位址] primary
==============================================================
部份資料為網路上提供,若有侵權請告知刪文。
2012年5月13日 星期日
2012年4月17日 星期二
VMware相容性指南 vsphere esx 升級 必看文章
升級前先看支不支援吧!不然搞死您!
我也被搞到了!瞎~
VMware Compatibility Guide
http://partnerweb.vmware.com/comp_guide2/san_reports.php?deviceCategory=san
我也被搞到了!瞎~
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))
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 ) 即可。
「系統管理工具」->「伺服器管理員」 右方 伺服器摘要的 「安全性資訊」 點選右選單 【設定 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");})()
=============================================================
在連結上按右鍵→內容→網頁文件→在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.
刪除檔案
待續...
網路上提供 (文章引用於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.
刪除檔案
訂閱:
文章 (Atom)