舊主機上的Guest OS要移轉至新主機,才發現vCPU無法超過4顆。
參考 如何使Windows 2008 R2 Hyper-V中的Guest OS使用超過4顆vCPU 修改。
1.停止【Hyper-V虛擬機器管理】服務
2.到Guest OS的存放目錄下,修改Virtual Machines目錄中的XML檔
找<Processors>區塊中的<count type=”integer”>【CPU數量】</count>
3.啟動【Hyper-V虛擬機器管理】
可是最多只能到24個vCPU。
看來要換到Windows 2012 R2上了。
2016年10月31日 星期一
2016年10月30日 星期日
電腦 Linux 網站壓力測試-Siege-400 error code
使用Siege測試網站出現
HTTP/1.1 400 0.01 secs: 311 bytes ==> GET /476
無法進行測試。
確認網站不支援gzip
修改
vim /root/.siege/siege.conf
accept-encoding = gzip;deflate
accept-encoding = deflate
即可測試
HTTP/1.1 400 0.01 secs: 311 bytes ==> GET /476
無法進行測試。
確認網站不支援gzip
修改
vim /root/.siege/siege.conf
accept-encoding = gzip;deflate
accept-encoding = deflate
即可測試
電腦 Linux 網站壓力測試-Siege
Centos 7 安裝 Siege
yum install zlib zlib-devel libssl-dev openssl-devel
wget http://download.joedog.org/siege/siege-latest.tar.gz
tar -zxvf siege-latest.tar.gz
cd siege-*/
./configure --with-ssl
make && make install
siege -v
Siege使用,可以新建一個url列表的文件,裡面放置相關測試鏈接。
siege -c 20 -r 2 -f www.url
參數說明:
-c 20並發20個用戶
-r 2 重複循環2次
-f www.url任務列表:URL列表
How To Install Siege On Centos 7
相關修改
limit = 255
parser = true
siege -c50 -d3 -t30M -i -f /usr/local/etc/sample_urls
This tells siege to send 50 concurrent users with a random access delay of 1-3 seconds for 30 minutes. -i means randomize url selection and -f tells it to read from the file specified.
Centos Siege測試使用
參數說明
結果說明
2016年10月27日 星期四
Windows IIS 設定檔備份與還原
Windows IIS 設定檔備份與還原
在windows 2008 r2中備份與還原 IIS設定。
在IIS管理員,選取主機中的共用設定。
備份
選取export configuration
Physical patch :指定備份檔路徑
Conect As :指定備份執行帳號
Encryption keys password:備份檔密碼 (密碼長度、複雜性有要求)
如果要還原,選取enable share conf iguration
輸入備份檔路徑、執行帳號、備份檔密碼即可
*如果有使用ssl憑證,請重新binding。
在windows 2008 r2中備份與還原 IIS設定。
在IIS管理員,選取主機中的共用設定。
備份
選取export configuration
Physical patch :指定備份檔路徑
Conect As :指定備份執行帳號
Encryption keys password:備份檔密碼 (密碼長度、複雜性有要求)
如果要還原,選取enable share conf iguration
輸入備份檔路徑、執行帳號、備份檔密碼即可
*如果有使用ssl憑證,請重新binding。
2016年10月26日 星期三
電腦 Dell Server DARC 設定
Press <F2> to enter System Setup Main Menu screen
Select iDRAC Settings from the System Setup Main Menu (F2 > iDRAC Settings).
Use the arrow keys to select Network.
Configure the user defined name,network details for IP, netmask, gateway, and DNS addresses.
After you make the changes to the iDRAC configuration, press the <Esc> key to display the Exit menu.
Select Save Changes and Exit and then press <Enter> to retain your changes.
Enter into the BIOS through iDRAC terminal. The default login credentials are:
Username: root Password: calvin
Configuring iDRAC Settings on Dell PowerEdge R720/Dell PowerEdge R820
2016年10月23日 星期日
Windows IIS 安全性調整
Windows Registry Editor Version 5.00
#關閉 DES 、NULL、RC2 、RC4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\DES 56/56]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\NULL]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 128/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 56/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 64/128]
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 128/128]
"Enabled"=dword:00000000
#關閉PCT 1.0
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server]
"Enabled"=dword:00000000
#關閉SSL v2
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]
"Enabled"=dword:00000000
#關閉SSL v3
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000000
#啟用TLS 1.1
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
#啟用TLS 1.2
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
TLS/SSL Settings
Setup your IIS for SSL Perfect Forward Secrecy and TLS 1.2
如何停用 PCT 1.0、 SSL 2.0、 SSL 3.0 或在網際網路資訊服務中的 TLS 1.0
在 IIS 中停用低強度密碼組合
[IIS] 關閉SSL低強度加密演算法
How to disable SSLv3 and RC4 ciphers in IIS
如何修補網站上SSL的相關漏洞!
Microsoft 資訊安全諮詢:停用 RC4 的更新
How to Enable TLS 1.1, TLS 1.2 on Windows Server 2008 R2 and IIS 7.5
How to Disable SSL 2.0 and SSL 3.0 in IIS 7
沒那麼安全的 SSL – 移除弱 SSL 加密方式 (Cipher)
提到:我看很多台灣人還是在使用 Windows XP ,這些人既使安裝了 XP 能支援到的 IE8,其 TLS 也只支援到 TLS 1.0 的版本,連 TLS 1.1 都不支援,更遑論 TLS 1.2 了。而 Windows 7 上的 IE 則是需要到 IE 11 才支援 TLS 1.2,若你的 Windows 7 上安裝的是 IE 10 ,那也只支援到 TLS 1.1。那表示既使是伺服器已經可以支援到 TLS 1.2 ,瀏覽器沒有支援到位的話,他們之間還是會以較低的加密方式來處理 SSL。所以你說可不可以從伺服器端把 TLS 1.0 禁用?那表示你不打算讓 Windows XP 的 IE 使用者連上來了。
訂閱:
文章 (Atom)






