锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成a人片在线不卡一二三区,国产成人亚洲精品影院,亚洲精品麻豆avhttp://www.tkk7.com/miaoyachun/category/50700.htmlzh-cnWed, 23 Mar 2016 02:40:14 GMTWed, 23 Mar 2016 02:40:14 GMT60Install mongodb on Centos 7http://www.tkk7.com/miaoyachun/archive/2016/03/23/429773.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 23 Mar 2016 02:14:00 GMThttp://www.tkk7.com/miaoyachun/archive/2016/03/23/429773.htmlhttp://www.tkk7.com/miaoyachun/comments/429773.htmlhttp://www.tkk7.com/miaoyachun/archive/2016/03/23/429773.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/429773.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/429773.html
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat/



]]>
shell涓殑鍐掑彿http://www.tkk7.com/miaoyachun/archive/2015/11/09/428094.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 09 Nov 2015 07:11:00 GMThttp://www.tkk7.com/miaoyachun/archive/2015/11/09/428094.htmlhttp://www.tkk7.com/miaoyachun/comments/428094.htmlhttp://www.tkk7.com/miaoyachun/archive/2015/11/09/428094.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/428094.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/428094.html
http://codingstandards.iteye.com/blog/1160298


]]>
Solution of wireless link "PCI unknown" on Centos 7.1 http://www.tkk7.com/miaoyachun/archive/2015/09/17/427366.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Thu, 17 Sep 2015 02:41:00 GMThttp://www.tkk7.com/miaoyachun/archive/2015/09/17/427366.htmlhttp://www.tkk7.com/miaoyachun/comments/427366.htmlhttp://www.tkk7.com/miaoyachun/archive/2015/09/17/427366.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/427366.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/427366.html
Googled many pages, most of them introduced how to scan wifi links by command line tool "iw", i tried all steps supplied by the pages but was blocked at the last step to get dynamical ipaddress by dhclient command "sudo dhclient wlp3s0 -v". The dhclient always complain "NO DHCPOFFERS received." (I doubted there should be some tricky to play with dhclient but which i am not faimiar with.. sad.. )

But i think there would be some extending tool for NetworkManager to manager wifi, then i google "NetworkManager wifi", i got "NetwrokManager-wifi plugin" from link https://www.centos.org/forums/viewtopic.php?f=47&t=52810

After following steps , i finally make wifi work well on centos 7.1

  • yum install NetworkManager-wifi
  • reboot machine (i tried logout and login, not work) 

Problem is NetworkManager-wifi is not installed by default on centos 7.1, (would it be my mistake when install OS? strange..)



]]>
solution for axis2c-src-1.6.0 build failure on 64 bit ubuntu14.04shttp://www.tkk7.com/miaoyachun/archive/2015/08/21/426927.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Fri, 21 Aug 2015 03:00:00 GMThttp://www.tkk7.com/miaoyachun/archive/2015/08/21/426927.htmlhttp://www.tkk7.com/miaoyachun/comments/426927.htmlhttp://www.tkk7.com/miaoyachun/archive/2015/08/21/426927.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/426927.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/426927.htmlTwo compile issues i got:

One issue is:
    uuid_gen_unix.c: In function 'axutil_uuid_gen_v1':uuid_gen_unix.c:62:20: error: variable 'tv' set but not used [-Werror=unused-but-set-variable]     struct timeval tv;                    ^cc1: all warnings being treated as errors    


Solution is remove "-Werror" in all configure scripts
find -type f -name configure -exec sed -i '/CFLAGS/s/-Werror//g' {} \;
Another issue is:
/usr/bin/ld: test.o: undefined reference to symbol 'axiom_xml_reader_free'
/usr/local/axis2c/lib/libaxis2_parser.so
.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 
1 exit status
make
[4]: *** [test] Error 1
make
[4]: Leaving directory `/home/miaoyachun/softwares/test/axis2c-src-1.6.0/neethi/test'

As suggested in https://code.google.com/p/staff/issues/detail?id=198, the solution is disable neethi/test in following files:
  • neethi/configure, remove all "test/Makefile"
  • neethi/Makefile.am, update "SUBDIRS = src test" with "SUBDIRS = src"
  • neethi/Makefile.in, update "SUBDIRS = src test" with "SUBDIRS = src"

Finally, you could run "make; sudo make install"" successfully. Last thing should be paid attention to is you may need copy all head files of neethi/include into /usr/local/axis2c/include/axis2-1.6.0/ which needed when you compile customized web service.

Enjoining it!!



]]>
axis2/c鐨刪ello.c緙栬瘧涓嶈繃鐨勫師鍥?/title><link>http://www.tkk7.com/miaoyachun/archive/2015/08/18/426870.html</link><dc:creator>Milo鐨勬搗鍩?/dc:creator><author>Milo鐨勬搗鍩?/author><pubDate>Tue, 18 Aug 2015 09:59:00 GMT</pubDate><guid>http://www.tkk7.com/miaoyachun/archive/2015/08/18/426870.html</guid><wfw:comment>http://www.tkk7.com/miaoyachun/comments/426870.html</wfw:comment><comments>http://www.tkk7.com/miaoyachun/archive/2015/08/18/426870.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/miaoyachun/comments/commentRss/426870.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/miaoyachun/services/trackbacks/426870.html</trackback:ping><description><![CDATA[<div>http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#client_api 鐨刪ello.c client 緙栬瘧鍛戒護(hù)鍦ㄦ垜鐨剈buntu 12.04s涓婃繪槸鎶ラ敊<br /><div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">gcc -o hello -I$AXIS2C_HOME/include/axis2-</span><span style="color: #000000; ">1.6.0</span><span style="color: #000000; ">/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver -ldl -Wl</span><span style="color: #000000; ">,</span><span style="color: #000000; ">--rpath -Wl</span><span style="color: #000000; ">,</span><span style="color: #000000; ">$AXIS2C_HOME/lib hello.c<br />/tmp/ccCYikFh.o: In function `main':<br />hello.c:(.text+0x57): undefined reference to `axutil_env_create_all'<br />hello.c:(.text+0x68): undefined reference to `axis2_options_create'<br />hello.c:(.text+0x93): undefined reference to `axutil_strcmp'<br />hello.c:(.text+0xeb): undefined reference to `axis2_endpoint_ref_create'<br />hello.c:(.text+0x102): undefined reference to `axis2_options_set_to'<br />hello.c:(.text+0x13d): undefined reference to `axis2_svc_client_create'<br />hello.c:(.text+0x168): undefined reference to `axutil_error_get_message'<br />hello.c:(.text+0x193): undefined reference to `axutil_log_impl_log_error'<br />hello.c:(.text+0x1b1): undefined reference to `axis2_svc_client_set_options'<br />hello.c:(.text+0x1d6): undefined reference to `axis2_svc_client_send_receive'<br />hello.c:(.text+0x21d): undefined reference to `axiom_node_free_tree'<br />hello.c:(.text+0x238): undefined reference to `axutil_error_get_message'<br />hello.c:(.text+0x266): undefined reference to `axutil_log_impl_log_error'<br />hello.c:(.text+0x28d): undefined reference to `axis2_svc_client_free'<br />hello.c:(.text+0x2a8): undefined reference to `axutil_env_free'<br />/tmp/ccCYikFh.o: In function `build_om_request':<br />hello.c:(.text+0x2ed): undefined reference to `axiom_element_create'<br />hello.c:(.text+0x307): undefined reference to `axiom_element_set_text'<br />/tmp/ccCYikFh.o: In function `process_om_response':<br />hello.c:(.text+0x337): undefined reference to `axiom_node_get_first_child'<br />hello.c:(.text+0x351): undefined reference to `axiom_node_get_node_type'<br />hello.c:(.text+0x367): undefined reference to `axiom_node_get_data_element'<br />hello.c:(.text+0x381): undefined reference to `axiom_text_get_value'<br />hello.c:(.text+0x396): undefined reference to `axiom_text_get_value'<br />collect2: error: ld returned </span><span style="color: #000000; ">1</span><span style="color: #000000;"> exit status<br /></span></div></div>浠旂粏媯(gè)鏌ヤ簡(jiǎn)gcc鍛戒護(hù)錛屽ご鏂囦歡錛屽簱鏂囦歡鐨勮礬寰勯兘鏄鐨勶紝鏈鍚庤窡鍚屼簨璁ㄨ鎵嶅彂鐜癶ello.c鐨勪綅緗殑闂銆傘傚鏋渉ello.c鐨勪綅緗斁鍒頒簡(jiǎn)渚濊禆搴撶殑鍙抽潰 灝變細(xì)鎶ョ被浼奸敊璇備絾鏄畼鏂圭殑渚嬪瓙搴旇鏄祴璇曡繃鐨勶紝鎬庝箞浼?xì)鏈墭q欎釜闂鍛? 闅鵑亾鎴戠殑ubuntu 12.04鐨刧cc姣旇緝涓ユ牸錛?br /><br />淇鍚庣殑gcc鍛戒護(hù)濡備笅<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">gcc -o hello hello.c  -I$AXIS2C_HOME/include/axis2-</span><span style="color: #000000; ">1.6.0</span><span style="color: #000000; ">/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver -ldl -Wl</span><span style="color: #000000; ">,</span><span style="color: #000000; ">--rpath -Wl</span><span style="color: #000000; ">,</span><span style="color: #000000;">$AXIS2C_HOME/lib <br /></span></div><img src ="http://www.tkk7.com/miaoyachun/aggbug/426870.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/miaoyachun/" target="_blank">Milo鐨勬搗鍩?/a> 2015-08-18 17:59 <a href="http://www.tkk7.com/miaoyachun/archive/2015/08/18/426870.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ubuntu涓嶉噸鍚笉閲嶆柊鐧誨綍璁﹍imit.conf鏂囦歡淇敼绔嬪埢鐢熸晥鐨勬柟娉?/title><link>http://www.tkk7.com/miaoyachun/archive/2015/08/13/426774.html</link><dc:creator>Milo鐨勬搗鍩?/dc:creator><author>Milo鐨勬搗鍩?/author><pubDate>Thu, 13 Aug 2015 09:58:00 GMT</pubDate><guid>http://www.tkk7.com/miaoyachun/archive/2015/08/13/426774.html</guid><wfw:comment>http://www.tkk7.com/miaoyachun/comments/426774.html</wfw:comment><comments>http://www.tkk7.com/miaoyachun/archive/2015/08/13/426774.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/miaoyachun/comments/commentRss/426774.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/miaoyachun/services/trackbacks/426774.html</trackback:ping><description><![CDATA[ubuntu 12.04s姣忔淇敼limit.conf鏂囦歡鍚庯紝瑕佹兂璁╂墍鏈夌殑鍚庣戶ssession閮借兘鐪嬪埌淇敼錛屼竴鑸涔堥噸鍚郴緇燂紝瑕佷箞relogin緋葷粺銆備笅闈粙緇嶄竴涓笉閫鍑簍erminal灝辮淇敼绔嬪埢鐢熸晥鐨勬柟寮?br /><div>1. 淇敼/etc/pam.d/sudo錛屾坊鍔犱笅闈㈣鍒版枃浠舵湯灝?<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">session    required   pam_limits.so <br /></span></div>2. 淇敼 /etc/security/limits.conf, 姣斿<br /><div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">root soft nofile </span><span style="color: #000000; ">65535</span><span style="color: #000000; "><br />root hard nofile </span><span style="color: #000000; ">65535</span><span style="color: #000000; "><br /></span></div>3. 鎵цsudo -i -u root 妯℃嫙鐧誨綍鍒濆鍖?br /><br />鍙﹀鍙戠幇centos 6緋葷粺/etc/pam.d/sudo宸茬粡榛樿enable pam_limits.so浜?jiǎn)锛岀洿鎺?錛?灝卞彲浠ヤ簡(jiǎn)銆?<br /><br />褰撶劧濡傛灉鐢╯sh閲嶆柊鐧誨綍涓嬪彲鑳芥潵鐨勬洿蹇傘傚洜涓?etc/pam.d/sshd榛樿enable浜?jiǎn)pam_limits.so, 澶氳緭鍏ヤ釜瀵嗙爜鑰屽凡<br /><br /></div><img src ="http://www.tkk7.com/miaoyachun/aggbug/426774.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/miaoyachun/" target="_blank">Milo鐨勬搗鍩?/a> 2015-08-13 17:58 <a href="http://www.tkk7.com/miaoyachun/archive/2015/08/13/426774.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Ubuntu涓婇噸鍚痠bus杈撳叆娉?/title><link>http://www.tkk7.com/miaoyachun/archive/2015/06/17/425748.html</link><dc:creator>Milo鐨勬搗鍩?/dc:creator><author>Milo鐨勬搗鍩?/author><pubDate>Wed, 17 Jun 2015 05:45:00 GMT</pubDate><guid>http://www.tkk7.com/miaoyachun/archive/2015/06/17/425748.html</guid><wfw:comment>http://www.tkk7.com/miaoyachun/comments/425748.html</wfw:comment><comments>http://www.tkk7.com/miaoyachun/archive/2015/06/17/425748.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/miaoyachun/comments/commentRss/425748.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/miaoyachun/services/trackbacks/425748.html</trackback:ping><description><![CDATA[<div><span>ubuntu涓奿bus緇忓父鍑虹幇涓嶈兘杈撳叆涓枃鐨勬儏鍐碉紝鐢ㄤ笅闈㈠懡浠ゅ彲浠ヤ復(fù)鏃惰В鍐抽棶棰?br /></span><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">ibus-daemon -r &</span></div></div><img src ="http://www.tkk7.com/miaoyachun/aggbug/425748.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/miaoyachun/" target="_blank">Milo鐨勬搗鍩?/a> 2015-06-17 13:45 <a href="http://www.tkk7.com/miaoyachun/archive/2015/06/17/425748.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Latency鍦≧equest/Reponse鍦烘櫙鐨勫畾涔?/title><link>http://www.tkk7.com/miaoyachun/archive/2014/07/01/415342.html</link><dc:creator>Milo鐨勬搗鍩?/dc:creator><author>Milo鐨勬搗鍩?/author><pubDate>Tue, 01 Jul 2014 06:10:00 GMT</pubDate><guid>http://www.tkk7.com/miaoyachun/archive/2014/07/01/415342.html</guid><wfw:comment>http://www.tkk7.com/miaoyachun/comments/415342.html</wfw:comment><comments>http://www.tkk7.com/miaoyachun/archive/2014/07/01/415342.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/miaoyachun/comments/commentRss/415342.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/miaoyachun/services/trackbacks/415342.html</trackback:ping><description><![CDATA[<div> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">latency = client send request time + network trans time (->)+ server receive request time+ reponse time + server send reponse time+ network trans time (<-)+ client receive reponse time<br /><br />latency = first byte out, last byte in time</p></div><img src ="http://www.tkk7.com/miaoyachun/aggbug/415342.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/miaoyachun/" target="_blank">Milo鐨勬搗鍩?/a> 2014-07-01 14:10 <a href="http://www.tkk7.com/miaoyachun/archive/2014/07/01/415342.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ubuntu 12.04鐨刢hkconfig鏇夸唬鍝? sysv-rc-confhttp://www.tkk7.com/miaoyachun/archive/2013/12/24/407973.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 24 Dec 2013 06:54:00 GMThttp://www.tkk7.com/miaoyachun/archive/2013/12/24/407973.htmlhttp://www.tkk7.com/miaoyachun/comments/407973.htmlhttp://www.tkk7.com/miaoyachun/archive/2013/12/24/407973.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/407973.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/407973.html

]]>
鍏充簬arp_ignorehttp://www.tkk7.com/miaoyachun/archive/2012/11/27/392078.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 27 Nov 2012 09:16:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/11/27/392078.htmlhttp://www.tkk7.com/miaoyachun/comments/392078.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/11/27/392078.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/392078.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/392078.html絎竴鍗拌薄鏄痑rp鐨勯棶棰樸侴oogle浜?jiǎn)涓嬪緱鍒颁簡(jiǎn)纭锛屾湁涓浉鍏崇殑kernal鍙傛暟:
arp_ignore - INTEGER
Define different modes for sending replies in response to
received ARP requests that resolve local target IP addresses:
0 - (default): reply for any local target IP address, configured
on any interface
1 - reply only if the target IP address is local address
configured on the incoming interface
2 - reply only if the target IP address is local address
configured on the incoming interface and both with the
sender's IP address are part from same subnet on this interface
3 - do not reply for local addresses configured with scope host,
only resolutions for global and link addresses are replied
4-7 - reserved
8 - do not reply for all local addresses
榛樿鏄?錛岃В鍐寵繖涓棶棰橀渶瑕侀厤緗負(fù)1

涓存椂閰嶇疆涓?br />
sysctl -w net.ipv4.conf.all.arp_ignore=1

鎸佷箙閰嶇疆
sysctl -w net.ipv4.conf.all.arp_ignore=1
echo 'net.ipv4.conf.all.arp_ignore
=1' >> /etc/sysctl.conf

榪欎釜寮勫ソ鍙互閲嶅惎network鏈嶅姟鏉ョ‘淇濆叾浠栨満鍣ㄦ洿鏂癮rp cache錛屽鏋滀笉鏂逛究閲嶅惎network錛岃嚜宸辨墜鍔ㄦ暡arping鍛戒護(hù)錛屾瘮濡?br />
arping -q -A -c 1 -I eth1 10.197.24.177
榪欎釜鍛戒護(hù)鏄湪 /etc/sysconfig/network-scripts/ifup-eth閲岀湅鍒扮殑

濡傛灉鏈哄櫒姣旇緝?yōu)畱锛屼篃鍙互鐩存帴鐢╝rp -d 鏉ュ垹闄ょ浉鍏崇殑cache錛屽緩璁笂闈㈢殑閭g鍙戝箍鎾殑鏂瑰紡銆?img src ="http://www.tkk7.com/miaoyachun/aggbug/392078.html" width = "1" height = "1" />

]]>
linux紓佺洏raid鐩稿叧http://www.tkk7.com/miaoyachun/archive/2012/11/07/390939.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 07 Nov 2012 05:23:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/11/07/390939.htmlhttp://www.tkk7.com/miaoyachun/comments/390939.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/11/07/390939.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/390939.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/390939.html媯(gè)嫻嬬鐩樼浉鍏充俊鎭?nbsp;  
    smartctl -a /dev/sda
(smartctl宸ュ叿鏉ヨ嚜smartmontools, 鍙互apt-get install smartmontools鏉ュ畨瑁?

媯(gè)嫻嬫墍鏈塺aid璁懼
    mdadm -Ds

媯(gè)嫻嬪叿浣搑aid璁懼淇℃伅
    mdadm -D /dev/md0

鍒涘緩raid璁懼
   mdadm --create --verbose /dev/md0 --level=raid0 --raid-devices=8 /dev/sdd /dev/sdc /dev/sdf /dev/sde /dev/sdg /dev/sdh /dev/sdi /dev/sdj

鍋滄raid璁懼
    mdadm -S /dev/md0

鏍煎紡鍖杛aid璁懼
    mkfs -t xfs -f /dev/md0

鎸傝澆raid璁懼
   mount -t xfs /dev/md0 /raid

鍒囨崲raid妯″紡鐨勬楠?br />
    1. umount if mounted : umount /raid
    2. stop raid device:  mdadm -S /dev/md0
    3. create raid: mdadm --create ...
    4. update /etc/mdadm.conf with output of 'mdadm -Ds', 鐢ㄦ潵寮鏈鴻嚜鍔ㄧ粍raid
    5. update /etc/fstab, 濡傛灉闇瑕佸紑鏈鴻嚜鍔╩ount

Ref:
http://francs3.blog.163.com/blog/static/40576727201212145744783/
http://hi.baidu.com/powersaven/item/1da2dc147a8be2e25f53b19e


]]>
Ubuntu涓婄殑alternativeshttp://www.tkk7.com/miaoyachun/archive/2012/10/26/390260.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Fri, 26 Oct 2012 05:31:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/10/26/390260.htmlhttp://www.tkk7.com/miaoyachun/comments/390260.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/10/26/390260.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/390260.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/390260.html鍏充簬alternatives鐨勭敤娉?br />

alternatives --install /usr/bin/java java /opt/jdk1
.5.0_22/bin/java 15000
alternatives --install /usr/bin/javac javac /opt/jdk1
.5.0_22/bin/javac 15000
alternatives --config java
alternatives --config javac
鏈榪戝垏鎹㈡闈㈢幆澧冨埌ubuntu, 鍙戠幇alternatives榪欎釜宸ュ叿鏀瑰悕浜?update-alternatives
鐢ㄦ硶榪樻槸涓鏍風(fēng)殑銆傘?br />

]]>
鐢↗NI浠嶤浼犻掔粨鏋勪綋鍒癑AVAhttp://www.tkk7.com/miaoyachun/archive/2012/10/12/389473.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Fri, 12 Oct 2012 08:40:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/10/12/389473.htmlhttp://www.tkk7.com/miaoyachun/comments/389473.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/10/12/389473.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/389473.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/389473.html 鐩存帴涓奀鐨勫疄鐜?br />
typedef struct Foo {
    
int len;
    
char name[100];
} Foo_t;

JNIEXPORT jint JNICALL
Java_TestJNI_foo(JNIEnv 
*env, jobject obj, jobject fooObj) {

    Foo_t 
* bar = malloc(sizeof(Foo_t));
    jclass clazz;
    jfieldID fid;

    
//init the bar data of C
    strcpy(bar->name, "Yachun Miao");
    bar
->len = strlen(bar->name);

    
// mapping bar of C to foo
    clazz = (*env)->GetObjectClass(env, fooObj);
    
if (0 == clazz) {
        printf(
"GetObjectClass returned 0\n");
        
return (-1);
    }
    fid 
= (*env)->GetFieldID(env, clazz, "len""I");
    (
*env)->SetLongField(env, fooObj, fid, bar->len);

    fid 
= (*env)->GetFieldID(env, clazz, "name""Ljava/lang/String;");
    jstring name 
= (*env)->NewStringUTF(env, bar->name);
    (
*env)->SetObjectField(env, fooObj, fid, name);

    free(bar);
    
return 0;
}

瀵瑰簲鐨凧ava璋冪敤
public class Foo {
    
protected int len;
    
protected String name;
}


    
private static native int foo(Foo fooObj);

    
public static void main(String args[]) {
        System.loadLibrary(
"mylib");

        Foo foo 
= new Foo();
        foo(foo);
        System.out.println(foo.name);
        System.out.println(foo.len);

    }

鍙傝冮摼鎺?br />
http://www.steveolyo.com/JNI/JNI.html#CSTRCJ
http://docs.oracle.com/javase/6/docs/technotes/guides/jni/spec/types.html



]]>
鎵撻欳itrix Xenapp涓嶤itrix receiver涔嬮棿鐨刢lipboardhttp://www.tkk7.com/miaoyachun/archive/2012/09/10/387402.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 10 Sep 2012 07:55:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/09/10/387402.htmlhttp://www.tkk7.com/miaoyachun/comments/387402.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/09/10/387402.html#Feedback1http://www.tkk7.com/miaoyachun/comments/commentRss/387402.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/387402.html
騫蟲(chóng)椂瑕佺敤鎭跺績(jī)鐨刢itrix Xenapp & citrix receiver 宸ヤ綔鐜錛岃瀹屽悗鍙戠幇client绔笉鑳藉鍒跺唴瀹瑰埌server绔紝榪欐牱浼?xì)瀵瑰伐浣滈犳垚寰堝ぇ鐨勫洶鎵般?br />鍋剁劧鍙戠幇citrix receiver鐨勮繘紼嬩笂鏈変釜-file鐨勯夐」錛屼細(xì)鎸囧畾涓復(fù)鏃墮厤緗枃浠訛紝閲岄潰鎻愬強(qiáng)
ClipboardAllowed=off
浜庢槸grep涓嬭繖涓叧閿瓧錛屽彂鐜皛/ICAClient/linuxx86/config/All_Regions.ini 涔熸湁涓被浼肩殑
ClipboardAllowed=*
鏀逛負(fù)
ClipboardAllowed=true
鐒跺悗閲嶆柊寮Xenapp session涔嬪悗鍙戠幇宸茬粡鍙互榛忚創(chuàng)浜?jiǎn)銆?br />
鎸夌収榪欎釜鎬濊礬錛屼嬌鐢╳indows鐨勫悓浜嬩嬌鐢ㄥ涓嬬殑鏂瑰紡鎵撻氫袱绔痗lipboard
1. 鎵撳紑緋葷粺娉ㄥ唽琛ㄧ紪杈戝櫒
2. 瀹氫綅HKEY_CURRENT_USER\Software\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Clipboard
3. 淇敼ClipboardAllowed涓?
4. 娉ㄩ攢褰撳墠鐢ㄦ埛錛堟垨璁?dāng)R渶瑕侊級(jí)

濡傛灉Xenapp server涓婁嬌鐢╲nc viewer涔嬬被鐨刋client錛屽鏋滄兂鎵撻氬埌vnc server鐨刢lipboard錛岃繕闇瑕佸湪vnc server鎵鍦╨inux涓繪満寮鍚互涓嬭繘紼?br />
vncconfig -nowin &
榪欎釜鏈夌偣涓嶇悊瑙o紝浣嗙‘瀹炲彲琛屻傚緟鐪熺浉銆傘?br />


]]>
Ubuntu12.4涓婄殑skype涓嶈兘杈撳叆涓枃http://www.tkk7.com/miaoyachun/archive/2012/09/04/386978.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 04 Sep 2012 09:12:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/09/04/386978.htmlhttp://www.tkk7.com/miaoyachun/comments/386978.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/09/04/386978.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/386978.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/386978.html
miaoyachun@ymiao:~$ /usr/lib/i386-linux-gnu/ibus/ibus-x11 --kill-daemon
^Z
[1]+  Stopped                 /usr/lib/i386-linux-gnu/ibus/ibus-x11 --kill-daemon
miaoyachun@ymiao:~$ bg
[1]+ /usr/lib/i386-linux-gnu/ibus/ibus-x11 --kill-daemon &
miaoyachun@ymiao:~$
鐒跺悗灝卞彲浠ヤ簡(jiǎn)銆傘?img src ="http://www.tkk7.com/miaoyachun/aggbug/386978.html" width = "1" height = "1" />

]]>
Ubuntu12.4濡備綍璁劇疆firefox涓虹郴緇熼粯璁ゆ祻瑙堝櫒http://www.tkk7.com/miaoyachun/archive/2012/08/20/385822.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 20 Aug 2012 03:28:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/08/20/385822.htmlhttp://www.tkk7.com/miaoyachun/comments/385822.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/08/20/385822.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/385822.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/385822.html 浠婂ぉ鍙戠幇ubunto12.4娌℃湁榛樿鐨勬祻瑙堝櫒錛屽鑷存墍鏈夌殑閾炬帴鎵撳紑鐨勬椂鍊欎粠鐢╣edit銆俫oogle涓婃壘鍒頒簡(jiǎn)瑙e喅鏂規(guī)硶:
緙栬緫浠ヤ笅鍐呭錛?br />
[Desktop Entry]
Version
=14.0
Name
=Mozilla Firefox Web Browser
Comment
=Browse the World Wide Web
GenericName
=Web Browser
Keywords
=Internet;WWW;Browser;Web;Explorer
Exec=/opt/firefox/firefox %u
Terminal
=false
X-MultipleArgs
=false
Type
=Application
Icon
=firefox
Categories
=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
Actions
=NewWindow;
鍒版枃浠秪/.local/share/applications/firefox.desktop, 騫朵繚瀛橀鍑恒?br />鎵ц錛?br />
update-desktop-database ~/.local/share/applications/

閰嶅ソ浠ュ悗"System Settings -> Detail -> Default Applications -> Web" list閲屽氨浼?xì)鏈塮irefox浜?jiǎn)銆?br />
Ref: http://askubuntu.com/questions/166455/how-do-i-make-luakit-my-default-browser

]]>
eclim LocateFile not work if "invpaste" enabled in .vimrchttp://www.tkk7.com/miaoyachun/archive/2012/08/06/384914.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 06 Aug 2012 06:56:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/08/06/384914.htmlhttp://www.tkk7.com/miaoyachun/comments/384914.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/08/06/384914.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/384914.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/384914.htmlSolution is disable it by
" set invpaste


]]>
PHP curl CURLOPT_SSL_VERIFYPEERhttp://www.tkk7.com/miaoyachun/archive/2012/07/17/383328.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 17 Jul 2012 09:39:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/07/17/383328.htmlhttp://www.tkk7.com/miaoyachun/comments/383328.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/07/17/383328.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/383328.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/383328.html
ref: http://curl.haxx.se/docs/sslcerts.html

]]>
gprof call graph & memcachedhttp://www.tkk7.com/miaoyachun/archive/2012/07/16/383245.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 16 Jul 2012 10:03:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/07/16/383245.htmlhttp://www.tkk7.com/miaoyachun/comments/383245.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/07/16/383245.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/383245.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/383245.htmlassume gprof and gprof2dot.py, graphviz be installed.


1. checkout memcached src code from git server
2. sh autogen.sh & ./configure
3. modify Makefile about CFLAGS, append option '-pg', after that do make
4. run memcached & do some actions by telnet
5. terminate memcached process, a gmon.out file will be generated.
6. gprof memcached gmon.out | /usr/bin/gprof2dot.py -n0 -e0 -c bw | dot -Tpng -o memcached_callgraph.png


]]>
scriptlets of RPMhttp://www.tkk7.com/miaoyachun/archive/2012/07/06/382364.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Fri, 06 Jul 2012 05:41:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/07/06/382364.htmlhttp://www.tkk7.com/miaoyachun/comments/382364.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/07/06/382364.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/382364.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/382364.html
The scriptlets also take an argument, passed into them by the controlling rpmbuild process. This argument, accessed via $1 is the number of packages of this name which will be left on the system when the action completes, except for %pretrans and %posttrans which are always run with $1 as 0 (%pretrans and %posttrans are available in rpm 4.4 and later). So for the common case of install, upgrade, and uninstall we have:


install upgrade uninstall
 %pretrans $1 == 0 $1 == 0 (N/A)
 %pre $1 == 1 $1 == 2 (N/A)
 %post $1 == 1 $1 == 2 (N/A)
 %preun (N/A) $1 == 1 $1 == 0
 %postun (N/A) $1 == 1 $1 == 0
 %posttrans $1 == 0 $1 == 0 (N/A)

Scriptlets ordering

The scriptlets in %pre and %post are respectively run before and after a package is installed.
The scriptlets %preun and %postun are run before and after a package is uninstalled. The
scriptlets %pretrans and %posttrans are run at start and end of a transaction.

On upgrade
, the scripts are run in the following order:

     %pretrans of new package
     %pre of new package
    (package install)
     %post of new package
     %triggerin of other packages (set off by installing new package)
     %triggerin of new package (if any are true)
     %triggerun of old package (if it's set off by uninstalling the old package)
     %triggerun of other packages (set off by uninstalling old package)
     %preun of old package
    (removal of old package)
     %postun of old package
     %triggerpostun of old package (if it's set off by uninstalling the old package)
     %triggerpostun of other packages (if they're setu off by uninstalling the old package)
     %posttrans of new package

For detail, will ref:
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets



]]>
Linux logrotatehttp://www.tkk7.com/miaoyachun/archive/2012/06/26/381520.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 26 Jun 2012 08:07:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/06/26/381520.htmlhttp://www.tkk7.com/miaoyachun/comments/381520.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/06/26/381520.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/381520.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/381520.html

2. 鍛戒護(hù)琛岄夐」

閫夐」-d 鐢ㄦ潵鎵撳紑debug妯″紡
閫夐」-v 鐢ㄦ潵鎵撳紑verbose妯″紡
閫夐」-f 鐢ㄦ潵鎵撳紑寮哄埗閫夐」錛屼細(xì)寮哄埗鍙戠敓log rotate鍗充嬌涓嶆弧瓚蟲(chóng)潯浠?br />
debug妯″紡璺焩erbose鐨勫尯鍒氨鏄? debug妯″紡鏄痙ry-run鐗堟湰鐨剉erbose妯″紡錛屼竴鑸敤鏉ヨ皟璇曟柊鍔犵殑logroate閰嶇疆鏂囦歡, 姣斿錛?br />
 /usr/sbin/logrotate /etc/logrotate.d/NEWCONFIG -df
 /usr/sbin/logrotate /etc/logrotate.d/NEWCONFIG -vf


]]>
Perlvarhttp://www.tkk7.com/miaoyachun/archive/2012/06/21/381274.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Thu, 21 Jun 2012 09:10:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/06/21/381274.htmlhttp://www.tkk7.com/miaoyachun/comments/381274.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/06/21/381274.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/381274.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/381274.htmlPerl閲岄潰鐨刾redefined vars
perlvar


鐢╬erldoc perlvar 鍙互緇撳悎瀹炰緥鏉ヤ簡(jiǎn)瑙f洿璇︾粏鐨勪俊鎭?br />
涓嬮潰閽堝$@鍐欎簡(jiǎn)涓猵erl alarm鐨勪緥瀛?br />
#!/usr/bin/perl

my $timeout = 5;

$SIG{ALRM} = sub {
    
die "alarm\n";
};

eval {
    
alarm $timeout;
    
sleep(6);
    
alarm 0;
};

if ($@) {
    
print "timeout\n";
}
else {
    
print "not timeout\n";
}





]]>
split file to pieces and restore under linuxhttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379574.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 30 May 2012 09:38:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379574.htmlhttp://www.tkk7.com/miaoyachun/comments/379574.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379574.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/379574.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/379574.htmlSometime mailbox disallows u upload file exceed some limitation. you can split it before upload. here is one example:

create test file
touch file1 file2;
echo 1 > file1;
echo 2 > file2;
tar zvcf old.tar.gz file1 file2;

split file to segment with size as u wished
split -b 50 old.tar.gz;

restore file from segments
cat xa* > new.tar.gz;

verify the restore
md5sum old.tar.gz new.tar.gz

Generally, the check result should be same.




]]>
About cannot core dump after setuid on linux serverhttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379560.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 30 May 2012 07:32:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379560.htmlhttp://www.tkk7.com/miaoyachun/comments/379560.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/05/30/379560.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/379560.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/379560.html
In many cases, binaries can no longer dump core after calling setuid(). 
Under Linux it is possible to re-enable this with a system call.

e.g.

+#ifdef __linux__
+#include <sys/prctl.h>
+#endif
+
 #ifdef HAVE_purify
 
#define IF_PURIFY(A,B) (A)
 
#else
@@ 
-1362,6 +1366,10 @@
     sql_perror(
"setuid");
     unireg_abort(
1);
   }
+#ifdef __linux__
+  /* inform kernel that process is dumpable */
+  prctl(PR_SET_DUMPABLE,1,0,0,0);
+#endif /* __linux__ */
 
#endif
Manual of prctl
       PR_SET_DUMPABLE
              (Since Linux 
2.4) Set the state of the flag determining whether core dumps are produced for this process  upon  delivery  of  a
              signal  whose  default  behaviour  is  to  produce a core dump.  (Normally this flag is set for a process by default
, but it is
              cleared when a set-user-ID or set-group-ID program is executed and also by various system calls that  manipulate  process  UIDs
              and  GIDs).  In kernels up to and including 
2.6.12, arg2 must be either 0 (process is not dumpable) or 1 (process is dumpable).
              Since kernel 
2.6.13, the value 2 is also permitted; this causes any binary which normally would not  be  dumped  to  be  dumped
              readable by root only.  (See also the description of /proc/sys/fs/suid_dumpable in proc(5).)


Ref: http://bugs.mysql.com/bug.php?id=21723
Some files about linux core dump:
/proc/sys/fs/suid_dumpable
/etc/profile
/etc/security/limits.conf
/proc/sys/kernel/core_pattern



]]>
Use ssh-copy-id avoid inputing passwordhttp://www.tkk7.com/miaoyachun/archive/2012/05/11/377877.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Fri, 11 May 2012 01:58:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/05/11/377877.htmlhttp://www.tkk7.com/miaoyachun/comments/377877.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/05/11/377877.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/377877.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/377877.htmlssh-copy-id 閬垮厤ssh杈撳叆瀵嗙爜鐨勭敤娉曪細(xì)

[root@hengtiandesk118 .ssh]# ssh-copy-id -i id_rsa.pub 10.1.186.51
10
Warning: Permanently added '
10.1.186.51' (RSA) to the list of known hosts.
root@
10.1.186.51's password: 
Now try logging into the machine
, with "ssh '10.1.186.51'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@hengtiandesk118 .ssh]# ssh 10.1.186.51
Last login: Thu May 
10 18:33:55 2012 from 10.5.4.201
[root@xen186v01 ~]#

榪欎釜鑴氭湰鍙瑁呬簡(jiǎn)openssh-clients灝卞彲浠ョ敤浜?jiǎn)銆?br />
浠ュ墠閮芥槸鎵嬪姩澶嶅埗綺樿創(chuàng)鐨?..


]]>
鍑犱釜ssh綆¢亾鐢ㄦ硶http://www.tkk7.com/miaoyachun/archive/2012/05/09/377721.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 09 May 2012 09:13:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/05/09/377721.htmlhttp://www.tkk7.com/miaoyachun/comments/377721.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/05/09/377721.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/377721.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/377721.html
1. remote file copy
[root@xen74v01 ~]# cat test.pl
#!/usr/bin/perl
print 
"eth0.74"=~/(\w+)/;
print "\n";
[root@xen74v01 ~]# cat test.pl | ssh 10.1.74.76 'cat - > /tmp/test.pl'

鎷瘋礉鏂囦歡鏃訛紝濡傛灉鏂囦歡寰堝ぇ錛屽張涓嶆兂褰卞搷緗戠粶IO鍙互鐢╬v宸ュ叿榪涜嫻侀噺鎺у埗
pv -L10m test.pl | ssh 10.1.74.76 'cat - > /tmp/test.pl'
榪欓噷pv鐨勮涓鴻窡cat姣旇緝綾諱技錛屼絾鏄敮鎸両O嫻侀噺鎺у埗錛岃繖閲岃緗?0M/s.

2. local script remote execute
[root@xen74v01 ~]# cat test.pl
#!/usr/bin/perl
print 
"eth0.74"=~/(\w+)/;
print "\n";
[root@xen74v01 ~]# perl test.pl
eth0
[root@xen74v01 ~]# cat test.pl | ssh 10.1.74.76 'perl'
eth0
[root@xen74v01 ~]# ssh 10.1.74.76 'perl' < test.pl
eth0

榪欐牱灝變笉鐢ㄦ妸鑴氭湰鎷瘋礉鍒拌繙绔幓鎵ц浜?br />
鍙傝冿細(xì)
http://linux.icydog.net/ssh/piping.php
http://www.ivarch.com/programs/quickref/pv.shtml
http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/


]]>
Notes for SNMPhttp://www.tkk7.com/miaoyachun/archive/2012/05/07/377541.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Mon, 07 May 2012 08:57:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/05/07/377541.htmlhttp://www.tkk7.com/miaoyachun/comments/377541.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/05/07/377541.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/377541.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/377541.html1. Tutorial
http://net-snmp.sourceforge.net/wiki/index.php/Tutorials

2. Config & start agent
 snmpconf

3. snmpwalk example
 snmpwalk -v2c -c public 10.1.74.51

4. check MIB modules
 snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR

5. extending MIB Module
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module
    a. download net-snmp src code
    b. MIB definition
    c. mib2c (in net-snmp-perl)
    d. make & make install
    e. edit snmpd conf & restart agent
    f. snmpwalk to verify


]]>
Use iozone to test file system performance http://www.tkk7.com/miaoyachun/archive/2012/04/26/376660.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Thu, 26 Apr 2012 02:49:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/04/26/376660.htmlhttp://www.tkk7.com/miaoyachun/comments/376660.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/04/26/376660.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/376660.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/376660.html
http://www.iozone.org/

瀹夎
鍏堢‘淇漴pmforge repository婧愬凡緇忓畨瑁呫傚叿浣撳弬鑰冿細(xì)
http://www.tkk7.com/miaoyachun/archive/
2012/02/03/369319.html

鐒跺悗鐩存帴yum瀹夎

 yum install iozone

嫻嬭瘯
iozone  -i 0 -r 32 -s 2097152
        Iozone: Performance Test of File I/O
                Version $Revision: 
3.394 $
                Compiled for 
64 bit mode.
                Build: linux 

        Contributors:William Norcott
, Don Capps, Isom Crawford, Kirby Collins
                     Al Slater
, Scott Rhine, Mike Wisner, Ken Goss
                     Steve Landherr
, Brad Smith, Mark Kelly, Dr. Alain CYR,
                     Randy Dunlap
, Mark Montague, Dan Million, Gavin Brebner,
                     Jean-Marc Zucconi
, Jeff Blomberg, Benny Halevy, Dave Boone,
                     Erik Habbinga
, Kris Strecker, Walter Wong, Joshua Root,
                     Fabrice Bacchella
, Zhenghua Xue, Qin Li, Darren Sawyer.
                     Ben England.

        Run began: Wed Apr 
25 19:36:55 2012

        Record Size 
32 KB
        File size set to 
2097152 KB
        Command line used: iozone -i 
0 -r 32 -s 2097152
        Output is in Kbytes/sec
        Time Resolution 
= 0.000001 seconds.
        Processor cache size set to 
1024 Kbytes.
        Processor cache line size set to 
32 bytes.
        File stride size set to 
17 * record size.
                                                            random  random    bkwd   record   stride                                   
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         
2097152      32  844758 2001670                                                                                            

iozone test complete.


]]>
Maven + PHP + Jettyhttp://www.tkk7.com/miaoyachun/archive/2012/04/11/373804.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Wed, 11 Apr 2012 06:32:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/04/11/373804.htmlhttp://www.tkk7.com/miaoyachun/comments/373804.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/04/11/373804.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/373804.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/373804.htmlhttp://www.owengriffin.com/posts/2010/04/22/Writing_PHP_applications_with_Maven_and_Jetty.html
瀹為獙浜?jiǎn)涓嬪Q屾槸鍙互鐨勩備笉榪囩敤鐨刴aven3

]]>
Play VNC with 6 Stepshttp://www.tkk7.com/miaoyachun/archive/2012/03/20/372257.htmlMilo鐨勬搗鍩?/dc:creator>Milo鐨勬搗鍩?/author>Tue, 20 Mar 2012 03:06:00 GMThttp://www.tkk7.com/miaoyachun/archive/2012/03/20/372257.htmlhttp://www.tkk7.com/miaoyachun/comments/372257.htmlhttp://www.tkk7.com/miaoyachun/archive/2012/03/20/372257.html#Feedback0http://www.tkk7.com/miaoyachun/comments/commentRss/372257.htmlhttp://www.tkk7.com/miaoyachun/services/trackbacks/372257.html
1. install vncserver
sudo yum install vnc-server

2. set password for login user
  
vncpasswd
3. start one server to generate setting file ~/.vnc/xstartup
 
vncserver :1
4. edit ~/.vnc/xstartup as suggestion of comments to uncomment two lines:
  unset SESSION_MANAGER
  
exec /etc/X11/xinit/xinitrc

5. restart the server
 vncserver -kill :1
 vncserver -geometry 1200x900 -depth 16 :1
瀹藉睆鐨勮瘽
 vncserver -geometry 1366x768 -depth 16 :1, 濡傛灉涓嶉『鐪?鍙互寰皟錛屾垜褰撳墠鐨勬渶浣?jīng)_垎杈ㄧ巼鏄?br />
 vncserver -geometry 1346x680 -depth 16 :1

6. access by vncviewer
 vncviewer SERVER_IP:5901

Ref: VNC How TO



]]>
主站蜘蛛池模板: 9久热精品免费观看视频| 国内精品免费在线观看| 午夜精品射精入后重之免费观看 | 国产高清视频在线免费观看| 亚洲人成精品久久久久| 亚洲熟妇丰满xxxxx| 国产又黄又爽胸又大免费视频 | AA免费观看的1000部电影| 国产精品亚洲产品一区二区三区| 亚洲精品电影在线| 久久免费香蕉视频| 国产精品免费看久久久久| 久久夜色精品国产噜噜噜亚洲AV | av大片在线无码免费| 色噜噜AV亚洲色一区二区| 亚洲国产综合精品中文第一| 免费无码黄网站在线看| 国产无遮挡吃胸膜奶免费看 | 国产亚洲精品a在线观看| 亚洲精品美女网站| 无码专区AAAAAA免费视频| 亚洲精品高清一二区久久| 亚洲国产激情在线一区| 免费看搞黄视频网站| 亚洲精品tv久久久久久久久久| 亚洲五月综合缴情婷婷| 国产精品视频白浆免费视频| 男人的天堂亚洲一区二区三区| 亚洲综合久久综合激情久久| 和老外3p爽粗大免费视频 | 国产网站免费观看| 亚洲jjzzjjzz在线观看| 久久青草免费91线频观看不卡| 亚洲人成网站在线观看青青| 国产亚洲欧美日韩亚洲中文色| 和日本免费不卡在线v| 亚洲黄色高清视频| 中文字幕无线码中文字幕免费 | xvideos亚洲永久网址| 在线亚洲午夜片AV大片| 中文字幕免费视频一|