ipstor

0

ipstor

Benchmark

儲存裝置(storage) fio performance verify的測試範例

Copy from http://blog.sina.com.tw/william_liao/article.php?entryid=658195 這篇文章主要目的是在提醒,當使用fio在做performance verify的時候,一些事前的準備工作,以及其他要注意的設定事項。 fio (flexible I/O tester) FIO主要是用來驗證storage的IOPS以及MBps, 它算是在Linux環境底下常用的tool之一, 它也可以用來做壓力測試的驗證 (I/O Stress verify), 目前它有Support 13種不同的I/O engine, 其中包括sync, mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi以及solarisaio, 有興趣的讀者們可以用google search到學習網站去了解一下,在這裡我會以ubuntu 14.04以及Windows

By ipstor

configuration

Linux下使用iptables架設簡單NAT Server(for CentOS 5.5)

上圖為我們的環境架構。   我們主要的設定皆在NAT Server(CentOS 5.5)上,對外IP使用10.237.0.1 (eth0),對內IP使用192.168.191.254(eth2) 情境: 今天我們架設一台Web Server(IP: 192.168.191.10)在內部網路,而我們希望這台Web Server可以被外部網路(10.237.0.0/24)的PC看到網頁(http://10.237.0.1:8080/),並且此Web Server也可以與外部網路有所聯繫。 考慮:  1. Web Server連到外部網路(10.237.0.1)

By ipstor

configuration

Higuma's Web iptable NAS DNAT sample

iptables の機能 (1)パケットフィルタリング (2)NAT機能(NAPTやDNATも可) ウチのD(default)GWにおける設定 ・GWのマシンを本来使うため、完全にルータ化することはない。(そのため、OUTPUTはACCEPTである。) ・内部のマシンもNAPTによって、通信させるようにするが、敢えて制限はかけない。フィルタリングは内部マシンにさせる   # # 2003/4/14 # #!/bin/bash #Initialized iptables -F iptables -F -t nat #Default Policy iptables -P INPUT DROP iptables -P OUTPUT ACCEPT #iptables -P OUTPUT DROP <- (this machine is router

By ipstor

Resove wordpress on-line update SSL connect fail issue

Edit file wp-includes/class-http.php and update as below line# 132 & 133     127                         'headers' => array(),     128                         'cookies' => array(),     129                         'body' => null,     130                         'compress' => false,     131                         'decompress' => true,     132                         # 'sslverify' => true,     133

By ipstor

configuration

Resolved httpd version 2 POST size limited at 2K

今天花了一天的時間在重新挑戰我的wordpress 上傳檔案的問題,經過反覆測試發現問題並不是出在php-5.x.x本身的設定,而是卡在apache httpd v2的POST功能有2K大小的限制,因為這個原因導至我在Wordpress上貼的文章或上傳的檔案大小只是超過2K就無法上傳。 解決辦法就是換掉httpd 改用lighttpd-1.4.37,記錄一下修改的部份 1. INSTALL     * ./configure & make install 2. Startup script     * cd lighttpd-1.4.37/doc/initscripts/     * cp sysconfig.lighttpd /etc/sysconfig/lighttpd     * cp rc.lighttpd.redhat /etc/init.d/lighttpd -> edit        lighttpd="/usr/local/

By ipstor