2009年6月28日 星期日

ESXi 所使用的 Port

安裝了 ESXi 4.0 後, 要使用 client 連線新增虛擬主機, 一直失敗, 試了很久, 應該不是我自己 client 端的問題, 所以到機房用另一台主機連線管理, OK, 沒有問題, 果然, 是防火牆的關係, 查了它的手冊, 在 ESXi Installable and vCenter Server Setup Guide 裡的第16頁有說明, ESXi 的通訊會用到幾個 Port, 必須在防火牆開啟.

以下內容的來源是 vmware 原廠網站.
vmware網站的連結

Purpose

This article lists the ports used by VMware vCenter.

Resolution

Port Description
80
vCenter Server requires port 80 for direct HTTP connections.
Port 80 redirects requests to HTTPS port 443. This is useful if you accidentally use http://server instead of https://server.
389
This is the LDAP port number for the Directory Services for the vCenter Server Group. This port must be open on the local instance and all remote instances of vCenter Server. The vCenter Server system needs to bind to port 389 even if you are not joining this vCenter Server instance to a Linked Mode group.
If another service is running on this port, you may want to remove it or install vCenter Server on a machine where port 389 is available. However, you can run the LDAP service on any port from 1025 through 65535 if necessary.
443
The default port that the vCenter Server system uses to listen for connections from the vSphere Client. Open port 443 in the firewall to enable the vCenter Server system to receive data from the vSphere Client.
The vCenter Server system also uses port 443 to listen for data transfer from the vSphere Web Access Client and other SDK clients. If you use another port number for HTTPS, you must use this format: when you log into the vCenter Server system.
636
This is the SSL port of the local instance for vCenter Linked Mode.
If another service is running on this port, you may want to remove it or install vCenter Server on a machine where port 636 is available. However, you can run the SSL service on any port from 1025 through 65535.
902
The default port that the vCenter Server system uses to send data to managed hosts. Managed hosts also send a regular heartbeat over UDP port 902 to the vCenter Server system.
This port must not be blocked by firewalls between the server and the hosts or between hosts.
902/903 Ports 902 and 903 must not be blocked between the vSphere Client and the hosts. These ports are used by the vSphere Client to display virtual machine consoles.
8080 Web Services HTTP
8443 Web Services HTTPS

Additional Information

Note: Ports 389 and 636 (which is the same as 389 except that it uses SSL) are new for Linked Mode.

2009年4月29日 星期三

Windows Vista 電腦螢幕上的文字太小

這些我早之前就設定過, 應該不是 vista 使用者真正要反應解決的問題吧.
clear type 在英文字的顯示可以非常好的對比, 使字體很清楚呈現, 但是中文字筆劃多, 用了正黑體, 再加 clear type , 只有螢幕很大的情況才有作用, 一般 notebook 的螢幕, 這樣子的配置, 真的是傷眼睛.
使用以上的方式, 還不如直接修改字型, 再關掉 clear type . 這樣子在畫面上顯示的內容就很清楚了.

以上的這些內容, 是我針對底下的網頁所做的回應.

http://support.microsoft.com/kb/960737/zh-tw

2009年2月9日 星期一

原文出處: http://www.wretch.cc/blog/josephphoto/1743881

不知道有沒有朋友和我遇到同樣的問題,今天在重整學校內的舊伺服器時,遇到一台無主的伺服器,安裝在此伺服器上Norton AntiVirus Corporate Edition沒有辦法移除,因為原來的主控端早就消失了,而密碼現在的老師們也不記得,這下有趣了!

結果只好請出Google大神來幫忙,本來已經心中盤算好了下下策,就是手動一步步刪除註冊檔和程式,但幸好後來找到最讚的解法!

使用Norton AntiVirus Corporate Edition的萬用密碼,當該台電腦已經聯絡不到原先安裝時的主控端時,Norton有一組預設的移除程式密碼「symantec」。

2009年1月5日 星期一

關於 mbstring 部份, 可以參考
http://tw2.php.net/manual/en/mbstring.ja-basic.php
http://dob.tnc.edu.tw/themes/old/showPage.php?s=1372&t=79
部份的說明, 另外, 在 php.ini 裡的 mbstring 區段, 也有說明可以參考.

找到
[mbstring]
以下5行去掉";"號,並改成如下
[mbstring]
mbstring.internal_encoding = zh-tw
mbstring.http_input = auto
mbstring.http_output = big5
mbstring.detect_order = auto
mbstring.substitute_character = none;

2008年12月24日 星期三

iptables阻擋某電腦

資料來源: http://tw.myblog.yahoo.com/bullock0425/article?mid=343&prev=375&next=320&l=f&fid=8

5.阻擋某電腦做封包轉送

  • 5.1 阻擋某電腦,使用ip iptables -A FORWARD -s xx.xx.xx.xx -j DROP
  • 5.2 阻擋某電腦,使用MAC iptables -A FORWARD -m mac xx.xx.xx.xx.xx.xx -j DROP

2008年12月13日 星期六

Debian 的單人模式修改密碼

原文: http://www.study-area.org/tips/news.htm

"小州" 撰寫於郵件 news:47dT0d$5KD@bbs.sayya.org...
> ※ 引述《deca@deca0206.adsldns.org (deca)》之銘言:
> > 請問各位大大
> > 突然想到看過文章說如果忘記root的密碼則進入單人模式再改root密碼即可
> > 找了文章後也知道grub要如何進入單人模式
> > 我嘗試在kernel~~這行最後加上 1(或s或-s或single)來進入單人模式
> > 接著開機程序跑到一半出現兩行
> > Give root password for maintenance
> > (or type Control-D for normal startup):
> > 似乎只得輸入root的密碼才行
> > 但是假設情況下我是忘記root密碼的
> > 我是哪一步做錯了嗎﹖
> > 請教各位前輩
> > 系統是debian testing and grub is the boot loader
>
> 因為 debian 的 /etc/inittab 檔案還有其他設定。
>
> 你可以在你剛剛進入 grub 編輯畫面輸入 single 後面再補上 init
> 指定為 /bin/sh,也就是:
>
> signal init=/bin/bash
>
> 最後開機到系統後,要先打 mount -o remount,rw / 讓 / 變成 rw,
> 然後執行 passwd root 改 root 密碼,重新開機時要執行
> mount -o remount,ro / 讓 / 成為 read-only,這樣子就可以了。
>
> 只是,passwd 程式是在 /usr/bin 目錄,若是你當初分割時 /usr
> 是獨立一個分割區的話,您需要在 mount -o remount,ro / 後,
> 手動打 mount /usr 把該分割區掛上後再進行下面動作。
>

2008年12月11日 星期四

Linux系統的 UTC 時間

vi /etc/sysconfig/clock

ZONE="Asia/Taipei"
UTC=true
ARC=false

將 UTC=true 改為 false
再重新啟動系統