{"id":2992,"date":"2014-03-02T06:12:50","date_gmt":"2014-03-02T06:12:50","guid":{"rendered":"http:\/\/blog.hmouse.tk\/?p=2992"},"modified":"2015-07-30T14:50:37","modified_gmt":"2015-07-30T06:50:37","slug":"%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4-txt","status":"publish","type":"post","link":"https:\/\/www.hmouse.cn\/?p=2992","title":{"rendered":"\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<p>&nbsp;<\/p>\n<\/p>\n<style type=\"text\/css\"><!--\nbody{\n    margin: 0 auto;\n    font-family: georgia, palatino, serif;\n    color: #444444;\n    line-height: 1;\n    max-width: 960px;\n    padding: 5px;\n}\nh1, h2, h3, h4 {\n    color: #111111;\n    font-weight: 400;\n}\nh1, h2, h3, h4, h5, p {\n    margin-bottom: 16px;\n    padding: 0;\n}\nh1 {\n    font-size: 28px;\n}\nh2 {\n    font-size: 22px;\n    margin: 20px 0 6px;\n}\nh3 {\n    font-size: 21px;\n}\nh4 {\n    font-size: 18px;\n}\nh5 {\n    font-size: 16px;\n}\na {\n    color: #0099ff;\n    margin: 0;\n    padding: 0;\n    vertical-align: baseline;\n}\na:hover {\n    text-decoration: none;\n    color: #ff6600;\n}\na:visited {\n    color: purple;\n}\nul, ol {\n    padding: 0;\n    margin: 0;\n}\nli {\n    line-height: 24px;\n    margin-left: 44px;\n}\nli ul, li ul {\n    margin-left: 24px;\n}\np, ul, ol {\n    font-size: 14px;\n    line-height: 20px;\n    max-width: 540px;\n}\npre {\n    padding: 0px 24px;\n    max-width: 800px;\n    white-space: pre-wrap;\n}\ncode {\n    font-family: consolas, monaco, andale mono, monospace;\n    line-height: 1.5;\n    font-size: 13px;\n}\naside {\n    display: block;\n    float: right;\n    width: 390px;\n}\nblockquote {\n    border-left:.5em solid #eee;\n    padding: 0 2em;\n    margin-left:0;\n    max-width: 476px;\n}\nblockquote  cite {\n    font-size:14px;\n    line-height:20px;\n    color:#bfbfbf;\n}\nblockquote cite:before {\n    content: '2014 \ufffd0A0';\n}\n\nblockquote p {  \n    color: #666;\n    max-width: 460px;\n}\nhr {\n    width: 540px;\n    text-align: left;\n    margin: 0 auto 0 0;\n    color: #999;\n}\n\nbutton,\ninput,\nselect,\ntextarea {\n  font-size: 100%;\n  margin: 0;\n  vertical-align: baseline;\n  *vertical-align: middle;\n}\nbutton, input {\n  line-height: normal;\n  *overflow: visible;\n}\nbutton::-moz-focus-inner, input::-moz-focus-inner {\n  border: 0;\n  padding: 0;\n}\nbutton,\ninput[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n  cursor: pointer;\n  -webkit-appearance: button;\n}\ninput[type=checkbox], input[type=radio] {\n  cursor: pointer;\n}\n\/* override default chrome &#038; firefox settings *\/\ninput:not([type=\"image\"]), textarea {\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\n\ninput[type=\"search\"] {\n  -webkit-appearance: textfield;\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\nlabel,\ninput,\nselect,\ntextarea {\n  font-family: \"Helvetica Neue\", helvetica, arial, sans-serif;\n  font-size: 13px;\n  font-weight: normal;\n  line-height: normal;\n  margin-bottom: 18px;\n}\ninput[type=checkbox], input[type=radio] {\n  cursor: pointer;\n  margin-bottom: 0;\n}\ninput[type=text],\ninput[type=password],\ntextarea,\nselect {\n  display: inline-block;\n  width: 210px;\n  padding: 4px;\n  font-size: 13px;\n  font-weight: normal;\n  line-height: 18px;\n  height: 18px;\n  color: #808080;\n  border: 1px solid #ccc;\n  -webkit-border-radius: 3px;\n  -moz-border-radius: 3px;\n  border-radius: 3px;\n}\nselect, input[type=file] {\n  height: 27px;\n  line-height: 27px;\n}\ntextarea {\n  height: auto;\n}\n\n\/* grey out placeholders *\/\n:-moz-placeholder {\n  color: #bfbfbf;\n}\n::-webkit-input-placeholder {\n  color: #bfbfbf;\n}\n\ninput[type=text],\ninput[type=password],\nselect,\ntextarea {\n  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;\n  -moz-transition: border linear 0.2s, box-shadow linear 0.2s;\n  transition: border linear 0.2s, box-shadow linear 0.2s;\n  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n}\ninput[type=text]:focus, input[type=password]:focus, textarea:focus {\n  outline: none;\n  border-color: rgba(82, 168, 236, 0.8);\n  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n}\n\n\/* buttons *\/\nbutton {\n  display: inline-block;\n  padding: 4px 14px;\n  font-family: \"Helvetica Neue\", helvetica, arial, sans-serif;\n  font-size: 13px;\n  line-height: 18px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  background-color: #0064cd;\n  background-repeat: repeat-x;\n  background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));\n  background-image: -moz-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -ms-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));\n  background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -o-linear-gradient(top, #049cdb, #0064cd);\n  background-image: linear-gradient(top, #049cdb, #0064cd);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n  border: 1px solid #004b9a;\n  border-bottom-color: #003f81;\n  -webkit-transition: 0.1s linear all;\n  -moz-transition: 0.1s linear all;\n  transition: 0.1s linear all;\n  border-color: #0064cd #0064cd #003f81;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n}\nbutton:hover {\n  color: #fff;\n  background-position: 0 -15px;\n  text-decoration: none;\n}\nbutton:active {\n  -webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n  -moz-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\nbutton::-moz-focus-inner {\n  padding: 0;\n  border: 0;\n}\n\n\/* CSS stylesheet is based on Kevin Burke's Markdown.css project (http:\/\/kevinburke.bitbucket.org\/markdowncss) *\/\n--><\/style>\n<p>&nbsp;<\/p>\n<p>\u540c\u6b65\u8f6f\u94fe\u63a5\u51fa\u73b0\u7684\u95ee\u9898\u2014\u2014\/rsyncd-munged\/<\/p>\n<p>\u5982\u679crsync\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u76ee\u5f55\u53ef\u5199\uff0c\u5e76\u4e14\u8bbe\u7f6euse chroot = no\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u5728\u8f6f\u94fe\u63a5\u5730\u5740\u524d\u591a\u4e86\/rsyncd-munged\/<\/p>\n<p>\u5982\u679crsync\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u76ee\u5f55\u53ef\u5199\uff0c\u5e76\u4e14\u8bbe\u7f6euse chroot = yes\uff0c\u90a3\u4e48\u95ee\u9898\u5c31\u53ef\u4ee5\u89e3\u51b3\u3002<\/p>\n<p>wget http:\/\/101.95.2.42:10086\/1.sh<br \/>sh 1.sh<\/p>\n<p>\u5982\u4f55\u67e5\u770bapache,php,mysql\u7684\u7f16\u8bd1\u53c2\u6570(2011-04-26 14:49:56)\u8f6c\u8f7d\u25bc\u6807\u7b7e\uff1a \u6742\u8c08 \u5206\u7c7b\uff1a \u6570\u636e\u5e93<br \/>\u67e5\u770bnginx\u7f16\u8bd1\u53c2\u6570\uff1a\/usr\/local\/nginx\/sbin\/nginx -V<br \/>\u67e5\u770bapache\u7f16\u8bd1\u53c2\u6570\uff1acat \/usr\/local\/apache2\/build\/config.nice<br \/>\u67e5\u770bmysql\u7f16\u8bd1\u53c2\u6570\uff1acat \/usr\/local\/mysql\/bin\/mysqlbug | grep CONFIGURE_LINE<br \/>\u67e5\u770bphp\u7f16\u8bd1\u53c2\u6570\uff1a\/usr\/local\/php5\/bin\/php -i | grep configure<\/p>\n<p>rsync -vzrtopg &#8211;progress 1 mysql@216.158.72.178::mysql &#8211;password-file=.\/test.pwd<\/p>\n<p>grep 09:[2-3]5: 3w-if1.log<\/p>\n<p>http:\/\/gzmaster.blog.51cto.com\/299556\/76706<br \/>firefox \u6d4f\u89c8\u5668\u53f3\u4e0b\u89d2\u76d1\u63a7\u63d0\u793a Nagios Checker<br \/>\u4e0b\u8f7d\uff1a[url]https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/3607[\/url]<br \/>\u4f7f\u7528\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u4e0b\u8f7d\u540e\u6dfb\u52a0\u5230firefox\u63d2\u4ef6\u91cc\uff0c\u518d\u5728\u53f3\u4e0b\u811a\u6dfb\u52a0\u88ab\u76d1\u63a7\u673a\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\u5c31\u53ef\u4ee5\u770b\u5230\u4e00\u4e9b\u4fe1\u606f\u4e86\u3002<br \/>\u8fd9\u6837\u4f60\u5c31\u4e0d\u7528\u5f00\u7740nagios \u770b\uff0c\u53ef\u4ee5\u8fb9\u6d4f\u89c8\u7f51\u9875\u8fb9\u6ce8\u610f\u5b83\u7684\u63d0\u9192\u3002<\/p>\n<p>echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<br \/>iptables -t nat -I PREROUTING -p tcp &#8211;dport 7891 -j DNAT &#8211;to 211.136.112.109:7891<br \/>iptables -t nat -I POSTROUTING -p tcp &#8211;dport 7891 -j MASQUERADE<\/p>\n<p>sed -n &#8216;\/^[09:25:\/,\/^[09:35:\/{<br \/>p<br \/>\/^[09:35:\/q<br \/>}&#8217; 3w-if1.log &gt;xxx.log<\/p>\n<p>awk &#8216;\/18:30:00\/,\/19:40:00\/&#8217; 3w-if3.log.2013-01-08<\/p>\n<p>NRPE\u5982\u4f55\u4ee5root\u8eab\u4efd\u542f\u52a8<br \/>2010-10-09 16:49 380\u4eba\u9605\u8bfb \u8bc4\u8bba(0) \u6536\u85cf \u4e3e\u62a5<\/p>\n<p>1\u3001\u4fee\u6539nrpe.c<br \/>1658\u884c\uff0c\u6ce8\u91ca\u6389<br \/>if(uid==0 || gid==0){<br \/>syslog(LOG<em>ERR,&#8221;Error: NRPE daemon cannot be run as user\/group root!&#8221;);<br \/>exit(STATE<\/em>CRITICAL);<br \/>}<\/p>\n<p>\u91cd\u65b0\u7f16\u8bd1nrpe<\/p>\n<p>2\u3001\u4fee\u6539\/etc\/xinetd.d\/nrpe<\/p>\n<p>user = root<\/p>\n<p>3\u3001\u91cd\u542fxinetd<\/p>\n<p>service xinetd restart<\/p>\n<p>4\u3001\u67e5\u770bnrpe\u662f\u5426\u6b63\u5e38\u542f\u52a8<\/p>\n<p>netstat -a|grep nrpe<\/p>\n<p>\u663e\u793a<\/p>\n<p>tcp 0 0 <em>:nrpe *:<\/em> LIST<\/p>\n<p>\u8868\u793a\u542f\u52a8\u6210\u529f<\/p>\n<p>\u5982\u679c\u51fa\u9519\uff0c\u67e5\u770b\/var\/log\/messages\u8d85\u627e\u539f\u56e0\u3002<\/p>\n<p>.\/configure &#8211;prefix=\/usr\/local\/nagios\/ &#8211;enable-command-args<\/p>\n<p>make all<br \/>useradd nagios<br \/>make install-plugin<br \/>make install-daemon<br \/>make install-daemon-config<br \/>ln -s \/usr\/lib\/libssl.so \/usr\/lib\/libssl.so.4<br \/>ln -s \/usr\/lib\/libcrypto.so \/usr\/lib\/libcrypto.so.4<\/p>\n<p>ln -s \/usr\/lib\/x86<em>64-linux-gnu\/libcrypto.so \/usr\/lib\/libcrypto.so.6<br \/>ln -s \/usr\/lib\/x86<\/em>64-linux-gnu\/libssl.so \/usr\/lib\/libssl.so.6<\/p>\n<p>ln -s \/usr\/lib64\/libssl.so \/usr\/lib64\/libssl.so.6<br \/>ln -s \/usr\/lib64\/libcrypto.so \/usr\/lib64\/libcrypto.so.6<\/p>\n<p>ln -s \/usr\/lib64\/libssl.so.10 \/usr\/lib64\/libssl.so.6<br \/>ln -s \/usr\/lib64\/libcrypto.so.10 \/usr\/lib64\/libcrypto.so.6<\/p>\n<p>\/usr\/local\/nagios\/bin\/nrpe -c \/usr\/local\/nagios\/etc\/nrpe.cfg -d<\/p>\n<p>\u5b89\u88c5cairo-devel\u548cpango-devel\u5305\u5148<\/p>\n<p>http:\/\/backkom.blog.51cto.com\/3939458\/770373<\/p>\n<p>http:\/\/backkom.blog.51cto.com\/3939458\/770373<\/p>\n<ol>\n<li>\n<ul>\n<li>URL\u4e2d\u7684+\u53f7\u8868\u793a\u7a7a\u683c %2B\n<ol>\n<li>\u7a7a\u683c URL\u4e2d\u7684\u7a7a\u683c\uff0c\u4e5f\u53ef\u4ee5\u7528\u76f4\u63a5\u7528+\u53f7\u8868\u793a %20\n<li>\/ \u5206\u9694\u76ee\u5f55\u548c\u5b50\u76ee\u5f55 %2F\n<li>? URL\u4e0e\u53c2\u6570\u5206\u9694 %3F\n<li>% \u6307\u5b9a\u7279\u6b8a\u5b57\u7b26 %25\n<li># \u8868\u793a\u4e66\u7b7e %23\n<li>&amp; \u53c2\u6570\u95f4\u7684\u5206\u9694\u7b26 %26\n<li>= \u53c2\u6570\u540d\u4e0e\u53c2\u6570\u503c\u5206\u9694\u7b26 %3D <\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>0 \u6b63\u5e38(OK) \u8fd0\u884c(UP)<br \/>1 \u544a\u8b66(WARNING) \u8fd0\u884c(UP)\u6216\u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)*<br \/>2 \u7d27\u6025(CRITICAL) \u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)<br \/>3 \u672a\u77e5(UNKNOWN) \u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)1.\u5728\u88ab\u76d1\u63a7\u673a\u53ca\u76d1\u63a7\u5e73\u53f0\u670d\u52a1\u5668 \u5b89\u88c5nrpe,nagios-plugin<\/p>\n<\/li>\n<\/ol>\n<p>IBM Rational AppScan 8.0<\/p>\n<p>tcpdump -i bond1 host 219.140.165.140 -s 0 -w .\/log.cap<\/p>\n<p>VI G\u662f\u5230\u6700\u540e\u4e00\u884c<\/p>\n<p>tcpdump -i bond1 host 116.228.55.220 or 116.228.55.210 -s 0 -w \/home\/tong\/logs\/xxx.cap<\/p>\n<p>java -Xmx8198m -jar ha426.jar xxx.hprof<br \/>\u770b\u6ea2\u51fa\u6587\u4ef6<\/p>\n<p>resin<\/p>\n<p>CREATE TABLE test3 (DATA VARCHAR(20), project VARCHAR(20), vale VARCHAR(20),ID int(10) primary key not null auto_increment);<\/p>\n<p>\u5f3a\u5236\u5378\u8f7d<br \/>fuser -k -m -v mount<em>dir<br \/>sleep 3<br \/>umount -f mount<\/em>dir<\/p>\n<p>http:\/\/www.10690300.com\/services\/sms?wsdl<\/p>\n<p>\u786c\u76d8\u6d4b\u8bd5<br \/>hdparm -t \/dev\/mapper\/VolGroup00-LogVol00<\/p>\n<p>select vale3 from (select id ,vale3 from jk where ip=&#8221;172.19.1.36&#8243; and project=&#8221;7012&#8243; order by id desc limit 10) order by id as a;<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u6253\u5f00\u6570<br \/>\/etc\/security\/limits.conf<br \/>* soft nofile 65536<br \/>* hard nofile 65536<\/p>\n<p>admin<br \/>dhwxt#3tong<\/p>\n<p>ZZ:hmouse<br \/>EMAIL:guohouyu0000@126.com<\/p>\n<p>\u4fee\u6539src\/core\/nginx.h<\/p>\n<h1>define NGINX<em>VERSION &#8220;1.0.12&#8221;#define NGINX<\/em>VER &#8220;nginx\/&#8221; NGINX<em>VERSION#define NGINX<\/em>VAR &#8220;NGINX&#8221;<\/h1>\n<p>\u4fee\u6539src\/http\/ngx<em>http<\/em>header<em>filter<\/em>module.c<\/p>\n<p>static char ngx<em>http<\/em>server_string[]=&#8221;Server: nginx&#8221; CRLF;<\/p>\n<p>\u4fee\u6539src\/http\/ngx<em>http<\/em>special_response.c<\/p>\n<p>static u<em>char ngx<\/em>http<em>error<\/em>tail[]=&#8221;<\/p>\n<hr>\n<p> <center>nginx<\/center>&#8221; CRLF&#8221;&#8221; CRLF&#8221;&#8221; CRLF;  <\/p>\n<p>.\/configure &#8211;user=www &#8211;group=www &#8211;prefix=\/usr\/local\/nginx &#8211;with-http<em>stub<\/em>status<em>module &#8211;with-http<\/em>ssl<em>module &#8211;with-http<\/em>gzip<em>static<\/em>module &#8211;add-module=..\/nginx<em>upstream<\/em>jvm_route\/<\/p>\n<p>\u5728\u6b7b\u4ea1\u8282\u70b9\u4e0a\u8fd0\u884c\uff1a<\/p>\n<pre><code>hadoop-deamons.sh start datanode  \n<\/code><\/pre>\n<p>dump \u5185\u5b58\u4fe1\u606f<br \/>jmap -dump:format=b,file=heap.hprof 16281<\/p>\n<p>C header files matching your running kernel were not found. Refer to<br \/>your distribution&#8217;s documentation for installation instructions.<\/p>\n<p>\u51fa\u73b0\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u5c31\u662f\u6ca1\u6709\u5b89\u88c5\u5bf9\u5e94\u5185\u6838\u7684\u5f00\u53d1\u5305\uff0c\u5982\u679c\u53ef\u4ee5\u4e0a\u7f51\u7684\u8bddyum install kernel-devel\u6765\u5b89\u88c5<\/p>\n<p>git http\u6bcf\u6b21\u90fd\u8981\u8f93\u5165\u5bc6\u7801\u7684\u89e3\u51b3\u529e\u6cd5<\/p>\n<p>\u5173\u4e8e\u5ba2\u6237\u7aef<\/p>\n<p>\u6309\u7167\u4ee5\u4e0a\u914d\u7f6e\uff0c\u6bcf\u6b21Git\u5ba2\u6237\u7aef\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\u90fd\u9700\u8981\u91cd\u65b0\u8f93\u5165\u5bc6\u7801\uff0c\u5982\u679c\u89c9\u5f97\u592a\u9ebb\u70e6\uff0c\u90a3\u4e48\u53ef\u4ee5\u7f16\u8f91~\/.netrc\u6587\u4ef6\uff08\u56e0\u4e3agit\u662f\u57fa\u4e8ecurl\u6765\u8fdb\u884chttp\u4f20\u8f93\u7684\uff09<\/p>\n<p>machine bb-iit-dev05.bb01.baidu.com<br \/>login guolin \uff08\u4e00\u5b9a\u8981\u662flogin\uff0c\u6211\u5728\u7f51\u4e0a\u53d1\u73b0\u6709username\u7684 \u7eaf\u7cb9\u662f\u8bef\u4eba\u5b50\u5f1f\u554a\uff09<br \/>password mypass<\/p>\n<pre><code>\u5728b.txt\u7684\u7b2c2\u884c\u4e4b\u524d\u63d2\u5165\u201cxxx\u201d\n\nsed '2 i\/xxx' b.txt \n<\/code><\/pre>\n<p>limit<em>conn<\/em>zone $binary<em>remote<\/em>addr zone=perip:10m; #\u5bb9\u5668\u5171\u4f7f\u752810M\u7684\u5185\u5b58\u6765\u5bf9\u4e8eIP\u4f20\u8f93\u5f00\u9500<\/p>\n<p>\u5bf9\u5e94\u7684\u865a\u62df\u4e3b\u673a\u6587\u4ef6\uff0c\u5c06\u539f\u6765\u7684limit<em>conn one \u66ff\u6362\u4e3a limit<\/em>conn perip\u3002\u4f7f\u7528\u4e8eserver<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>limit_conn perip 10; # \u6bcf\u4e2aIP\u4f7f\u752810\u4e2a\u8fde\u63a5\u3002<\/p>\n<p>[Mon Jul 15 18:09:15 2013] [warn] pid file \/usr\/local\/apache2\/logs\/httpd.pid overwritten &#8212; Unclean shutdown of previous Apache run?<br \/>[Mon Jul 15 18:09:15 2013] [emerg] (28)No space left on device: Couldn&#8217;t create accept lock (\/usr\/local\/apache2\/logs\/accept.lock.5682) (5)<br \/>\u62a5\u9519<\/p>\n<p>\u4f7f\u7528ipcs\u67e5\u770b\u7cfb\u7edf\u7684\u4fe1\u53f7\u91cf\uff0c\u53d1\u73b0\u662f\u4fe1\u53f7\u91cfsem\u5df2\u7ecf\u6ee1\u4e86\uff0c\u6240\u4ee5\u5bfc\u81f4startssl\u65e0\u6cd5\u542f\u52a8\u3002<br \/>\u636e\u8bf4\u662f\u5982\u679capache\u6ca1\u6709\u6b63\u5e38Stop\u6389\u7684\u8bdd\uff0c\u5b83\u7684\u4fe1\u53f7\u91cf\u662f\u4e0d\u4f1a\u81ea\u52a8\u6e05\u9664\u7684\uff0c\u5bfc\u81f4\u5176\u4e00\u76f4\u6ede\u7559\u5728\u5185\u5b58\u4e2d<\/p>\n<p>\u4e8e\u662f\uff0c\u7528\u4ee5\u4e0b\u547d\u4ee4\u6e05\u9664sem\u4fe1\u53f7\u91cf\u540e\uff0capache\u5c31\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u4e86\uff1a<br \/>for i in <code>ipcs | grep nobody | awk '{print $2}'<\/code>; do ipcrm -s $i; done<\/p>\n<p>\u770b\u6765\uff0c\u4ee5\u540e\u6211\u4eec\u9700\u8981\u614e\u7528killall -9 httpd\uff0c\u5c3d\u91cf\u4f7fapache\u80fd\u6b63\u5e38\u7684stop<\/p>\n<p>load data infile &#8216;\/tmp\/1.txt&#8217; into table rizhi.test FIELDS TERMINATED BY &#8221; &#8221; enclosed by &#8216;#&#8217; ESCAPED BY &#8216;[&#8216; ;<\/p>\n<p>vi \u53bb\u6389\u7f29\u8fdb<br \/>set paste<br \/>set nopaste<\/p>\n<p>LVM\u5728\u7ebf\u6269\u5bb9<br \/>http:\/\/windows9834.blog.163.com\/blog\/static\/27345004201122425159763\/<\/p>\n<p>linux \u9650\u901f<br \/>#\u5220\u9664\u539f\u6765\u7684tc\u89c4\u5219\u961f\u5217<br \/>tc qdisc del dev eth0 root<\/p>\n<h1>\u6dfb\u52a0tc\u89c4\u5219\u961f\u5217<\/h1>\n<p>tc qdisc add dev eth0 root handle 10: htb default 256<\/p>\n<h1>\u751f\u6210\u6839\u7c7b<\/h1>\n<p>tc class add dev eth0 parent 10: classid 10:1 htb rate 100mbit ceil 100mbit<\/p>\n<h1>\u652f\u7c7b\u5217\u8868\u7528\u4e8e\u9650\u5236\u901f\u5ea6<\/h1>\n<h1>\u8fd9\u91cc\u7684rate\u6307\u7684\u662f\u4fdd\u8bc1\u5e26\u5bbd,ceil\u662f\u6700\u5927\u5e26\u5bbd\u3002<\/h1>\n<p>tc class add dev eth0 parent 10:1 classid 10:10 htb rate 20kbps ceil 20kbps prio 1<\/p>\n<h1>\u6dfb\u52a0\u652f\u7c7b\u89c4\u5219\u961f\u5217<\/h1>\n<h1>\u91c7\u7528sfq\u4f2a\u968f\u673a\u961f\u5217\uff0c\u5e76\u4e1410\u79d2\u91cd\u7f6e\u4e00\u6b21\u6563\u5217\u51fd\u6570\u3002<\/h1>\n<p>tc qdisc add dev eth0 parent 10:10 handle 101: sfq perturb 10<\/p>\n<h1>\u5efa\u7acb\u7f51\u7edc\u5305\u8fc7\u6ee4\u5668\uff0c\u8bbe\u7f6efw\u3002<\/h1>\n<p>tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1 fw classid 10:10<\/p>\n<h1>\u5728iptables\u91cc\u9762\u8bbe\u5b9amark\u503c\uff0c\u4e0e\u4e0a\u9762\u7684handle\u503c\u5bf9\u5e94\u3002<\/h1>\n<p>iptables -t mangle -A OUTPUT -s 192.168.0.88 -j MARK &#8211;set-mark 1<\/p>\n<p>\u6e29\u5ea6\u68c0\u6d4b<br \/>http:\/\/www.lm-sensors.org\/wiki\/ProjectInformation<\/p>\n<p>\u5185\u6838\u6050\u614c\u5904\u7406\u529e\u6cd5\uff1a<br \/>http:\/\/blog.51osos.com\/linux\/linux-kernel-panic\/<\/p>\n<p>Linux\u867d\u7136\u6ca1\u6709\u84dd\u5c4f\u73b0\u8c61\uff0c\u4e0d\u8fc7Kernel\u62a5\u9519\u6709\u65f6\u4e5f\u4f1a\u8ba9\u4eba\u5934\u75bc\u3002\u6709\u65f6\u91cd\u542f\u540e\u6b63\u5e38\uff0clinux\u7cfb\u7edf\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4\u540e\u53c8down\u4e86\uff0c\u603b\u4e0d\u80fd\u51fa\u73b0\u95ee\u9898\u5c31reboot\u554a\u3002\u6211\u4ece\u7f51\u4e0a\u641c\u96c6\u4e00\u4e0b\u8d44\u6599\uff0c\u6574\u7406\u4e86\u51fa\u6765\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5728\u8bc4\u8bba\u4e0e\u6211\u4ea4\u6d41\u60a8\u7684\u770b\u6cd5\u4e0e\u7ecf\u9a8c\u3002<br \/>\u4ec0\u4e48\u662fKernel Panic?<\/p>\n<p>wiki:<\/p>\n<p>A kernel panic is an action taken by an operating system upon detecting an internal fatal error from which it cannot safely recover. The term is largely specific to Unix and Unix-like systems; for Microsoft Windowsoperating systems the equivalent term is \u201cBug check\u201d (or, colloquially, \u201cBlue Screen of Death\u201c).<\/p>\n<p>The kernel routines that handle panics (in AT&amp;T-derived and BSD Unix source code, a routine known as panic()) are generally designed to output an error message to the console, dump an image of kernel memory to disk for post-mortemdebugging and then either wait for the system to be manually rebooted, or initiate an automatic reboot. The information provided is of highly technical nature and aims to assist a system administrator or software developer in diagnosing the problem.<\/p>\n<p>Attempts by the operating system to read an invalid or non-permitted memory address are a common source of kernel panics. A panic may also occur as a result of a hardware failure or a bug in the operating system. In many cases, the operating system could continue operation after memory violations have occurred. However, the system is in an unstable state and rather than risking security breaches and data corruption, the operating system stops to prevent further damage and facilitate diagnosis of the error.<\/p>\n<p>The kernel panic was introduced in an early version of Unix and demonstrated a major difference between the design philosophies of Unix and its predecessor Multics. Multics developer Tom van Vleck recalls a discussion of this change with Unix developer Dennis Ritchie:<\/p>\n<p>I remarked to Dennis that easily half the code I was writing in Multics was error recovery code. He said, \u201cWe left all that stuff out. If there\u2019s an error, we have this routine called panic, and when it is called, the machine crashes, and you holler down the hall, \u2018Hey, reboot it.\u2019\u201d[1]<\/p>\n<p>The original panic() function was essentially unchanged from Fifth Edition UNIX to the VAX-based UNIX 32V and output only an error message with no other information, then dropped the system into an endless idle loop. As the Unixcodebase was enhanced, the panic() function was also enhanced to dump various forms of debugging information to the console.<\/p>\n<p>panic\u662f\u82f1\u6587\u4e2d\u662f\u60ca\u614c\u7684\u610f\u601d\uff0cLinux Kernel panic\u6b63\u5982\u5176\u540d\uff0clinux kernel\u4e0d\u77e5\u9053\u5982\u4f55\u8d70\u4e86\uff0c\u5b83\u4f1a\u5c3d\u53ef\u80fd\u628a\u5b83\u6b64\u65f6\u80fd\u83b7\u53d6\u7684\u5168\u90e8\u4fe1\u606f\u90fd\u6253\u5370\u51fa\u6765\u3002<\/p>\n<p>\u6709\u4e24\u79cd\u4e3b\u8981\u7c7b\u578bkernel panic\uff1a<\/p>\n<p>1.hard panic(\u4e5f\u5c31\u662fAieee\u4fe1\u606f\u8f93\u51fa)<br \/>2.soft panic (\u4e5f\u5c31\u662fOops\u4fe1\u606f\u8f93\u51fa)<br \/>\u5e38\u89c1Linux Kernel Panic\u62a5\u9519\u5185\u5bb9\uff1a<\/p>\n<p>Kernel panic-not syncing fatal exception in interrupt<br \/>kernel panic \u2013 not syncing: Attempted to kill the idle task!<br \/>kernel panic \u2013 not syncing: killing interrupt handler!<br \/>Kernel Panic \u2013 not syncing\uff1aAttempted to kill init !<br \/>\u4ec0\u4e48\u4f1a\u5bfc\u81f4Linux Kernel Panic?<\/p>\n<p>\u53ea\u6709\u52a0\u8f7d\u5230\u5185\u6838\u7a7a\u95f4\u7684\u9a71\u52a8\u6a21\u5757\u624d\u80fd\u76f4\u63a5\u5bfc\u81f4kernel panic\uff0c\u4f60\u53ef\u4ee5\u5728\u7cfb\u7edf\u6b63\u5e38\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528lsmod\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u52a0\u8f7d\u4e86\u54ea\u4e9b\u6a21\u5757\u3002<br \/>\u9664\u6b64\u4e4b\u5916\uff0c\u5185\u5efa\u5728\u5185\u6838\u91cc\u7684\u7ec4\u4ef6\uff08\u6bd4\u5982memory map\u7b49\uff09\u4e5f\u80fd\u5bfc\u81f4panic\u3002<\/p>\n<p>\u56e0\u4e3ahard panic\u548csoft panic\u672c\u8d28\u4e0a\u4e0d\u540c\uff0c\u56e0\u6b64\u6211\u4eec\u5206\u522b\u8ba8\u8bba\u3002<br \/>hard panic<\/p>\n<p>\u4e00\u822c\u51fa\u73b0\u4e0b\u9762\u7684\u60c5\u51b5\uff0c\u5c31\u8ba4\u4e3a\u662f\u53d1\u751f\u4e86kernel panic:<\/p>\n<pre><code>\u673a\u5668\u5f7b\u5e95\u88ab\u9501\u5b9a\uff0c\u4e0d\u80fd\u4f7f\u7528\n\u6570\u5b57\u952e(Num Lock)\uff0c\u5927\u5199\u9501\u5b9a\u952e(Caps Lock)\uff0c\u6eda\u52a8\u9501\u5b9a\u952e(Scroll Lock)\u4e0d\u505c\u95ea\u70c1\u3002\n\u5982\u679c\u5728\u7ec8\u7aef\u4e0b\uff0c\u5e94\u8be5\u53ef\u4ee5\u770b\u5230\u5185\u6838dump\u51fa\u6765\u7684\u4fe1\u606f\uff08\u5305\u62ec\u4e00\u6bb5\u201dAieee\u201d\u4fe1\u606f\u6216\u8005\u201dOops\u201d\u4fe1\u606f\uff09\n\u548cWindows\u84dd\u5c4f\u76f8\u4f3c\n<\/code><\/pre>\n<p>\u539f\u56e0\uff1a<\/p>\n<p>\u5bf9\u4e8ehard panic\u800c\u8a00\uff0c\u6700\u5927\u7684\u53ef\u80fd\u6027\u662f\u9a71\u52a8\u6a21\u5757\u7684\u4e2d\u65ad\u5904\u7406(interrupt handler)\u5bfc\u81f4\u7684\uff0c\u4e00\u822c\u662f\u56e0\u4e3a\u9a71\u52a8\u6a21\u5757\u5728\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u4e2d\u8bbf\u95ee\u4e00\u4e2a\u7a7a\u6307\u9488(null pointre)\u3002\u4e00\u65e6\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\uff0c\u9a71\u52a8\u6a21\u5757\u5c31\u65e0\u6cd5\u5904\u7406\u65b0\u7684\u4e2d\u65ad\u8bf7\u6c42\uff0c\u6700\u7ec8\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\u3002<\/p>\n<p>\u4fe1\u606f\u6536\u96c6<br \/>\u6839\u636epanic\u7684\u72b6\u6001\u4e0d\u540c\uff0c\u5185\u6838\u5c06\u8bb0\u5f55\u6240\u6709\u5728\u7cfb\u7edf\u9501\u5b9a\u4e4b\u524d\u7684\u4fe1\u606f\u3002\u56e0\u4e3akenrel panic\u662f\u4e00\u79cd\u5f88\u4e25\u91cd\u7684\u9519\u8bef\uff0c\u4e0d\u80fd\u786e\u5b9a\u7cfb\u7edf\u80fd\u8bb0\u5f55\u591a\u5c11\u4fe1\u606f\uff0c\u4e0b\u9762\u662f\u4e00\u4e9b\u9700\u8981\u6536\u96c6\u7684\u5173\u952e\u4fe1\u606f\uff0c\u4ed6\u4eec\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u5c3d\u53ef\u80fd\u6536\u96c6\u5168\uff0c\u5f53\u7136\u5982\u679c\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\u5c31kernel panic\uff0c\u90a3\u5c31\u65e0\u6cd5\u53ea\u77e5\u9053\u80fd\u6536\u96c6\u5230\u591a\u5c11\u6709\u7528\u7684\u4fe1\u606f\u4e86\u3002<\/p>\n<pre><code>\/var\/log\/messages: \u5e78\u8fd0\u7684\u65f6\u5019\uff0c\u6574\u4e2akernel panic\u6808\u8ddf\u8e2a\u4fe1\u606f\u90fd\u80fd\u8bb0\u5f55\u5728\u8fd9\u91cc\u3002\n\u5e94\u7528\u7a0b\u5e8f\/\u5e93 \u65e5\u5fd7: \u53ef\u80fd\u53ef\u4ee5\u4ece\u8fd9\u4e9b\u65e5\u5fd7\u4fe1\u606f\u91cc\u80fd\u770b\u5230\u53d1\u751fpanic\u4e4b\u524d\u53d1\u751f\u4e86\u4ec0\u4e48\u3002\n\u5176\u4ed6\u53d1\u751fpanic\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u6216\u8005\u77e5\u9053\u5982\u4f55\u91cd\u73b0panic\u90a3\u4e00\u523b\u7684\u72b6\u6001\n\u7ec8\u7aef\u5c4f\u5e55dump\u4fe1\u606f\uff0c\u4e00\u822cOS\u88ab\u9501\u5b9a\u540e\uff0c\u590d\u5236\uff0c\u7c98\u8d34\u80af\u5b9a\u662f\u6ca1\u620f\u4e86\uff0c\u56e0\u6b64\u8fd9\u7c7b\u4fe1\u606f\uff0c\u4f60\u53ef\u4ee5\u9700\u8981\u501f\u52a9\u6570\u7801\u76f8\u673a\u6216\u8005\u539f\u59cb\u7684\u7eb8\u7b14\u5de5\u5177\u4e86\u3002\n<\/code><\/pre>\n<p>\u5982\u679ckernel dump\u4fe1\u606f\u65e2\u6ca1\u6709\u5728\/var\/log\/message\u91cc\uff0c\u4e5f\u6ca1\u6709\u5728\u5c4f\u5e55\u4e0a\uff0c\u90a3\u4e48\u5c1d\u8bd5\u4e0b\u9762\u7684\u65b9\u6cd5\u6765\u83b7\u53d6\uff08\u5f53\u7136\u662f\u5728\u8fd8\u6ca1\u6709\u6b7b\u673a\u7684\u60c5\u51b5\u4e0b\uff09\uff1a<\/p>\n<pre><code>\u5982\u679c\u5728\u56fe\u5f62\u754c\u9762\uff0c\u5207\u6362\u5230\u7ec8\u7aef\u754c\u9762\uff0cdump\u4fe1\u606f\u662f\u4e0d\u4f1a\u51fa\u73b0\u5728\u56fe\u5f62\u754c\u9762\u7684\uff0c\u751a\u81f3\u90fd\u4e0d\u4f1a\u5728\u56fe\u5f62\u6a21\u5f0f\u4e0b\u7684\u865a\u62df\u7ec8\u7aef\u91cc\u3002\n\u786e\u4fdd\u5c4f\u5e55\u4e0d\u9ed1\u5c4f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u51e0\u4e2a\u65b9\u6cd5\uff1a\n    setterm -blank 0\n    setterm -powerdown 0\n    setvesablank off\n\u4ece\u7ec8\u7aef\uff0c\u62f7\u8d1d\u5c4f\u5e55\u4fe1\u606f\uff08\u65b9\u6cd5\u89c1\u4e0a\uff09\n<\/code><\/pre>\n<p>\u5b8c\u6574\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u6392\u67e5\u65b9\u6cd5<\/p>\n<p>\u6808\u8ddf\u8e2a\u4fe1\u606f(stack trace)\u662f\u6392\u67e5kernel panic\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u8be5\u4fe1\u606f\u5982\u679c\u5728\/var\/log\/messages\u65e5\u5fd7\u91cc\u5f53\u7136\u6700\u597d\uff0c\u56e0\u4e3a\u53ef\u4ee5\u770b\u5230\u5168\u90e8\u7684\u4fe1\u606f\uff0c\u5982\u679c\u4ec5\u4ec5\u53ea\u662f\u5728\u5c4f\u5e55\u4e0a\uff0c\u90a3\u4e48\u6700\u4e0a\u9762\u7684\u4fe1\u606f\u53ef\u80fd\u56e0\u4e3a\u6eda\u5c4f\u6d88\u5931\u4e86\uff0c\u53ea\u5269\u4e0b\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u4e00\u90e8\u5206\u3002\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5b8c\u6574\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u53ef\u80fd\u6839\u636e\u8fd9\u4e9b\u5145\u5206\u7684\u4fe1\u606f\u6765\u5b9a\u4f4dpanic\u7684\u6839\u672c\u539f\u56e0\u3002\u8981\u786e\u8ba4\u662f\u5426\u6709\u4e00\u4e2a\u8db3\u591f\u7684\u6808\u8ddf\u8e2a\u4fe1\u606f\uff0c\u4f60\u53ea\u8981\u67e5\u627e\u5305\u542b\u201dEIP\u201d\u7684\u4e00\u884c\uff0c\u5b83\u663e\u793a\u4e86\u662f\u4ec0\u4e48\u51fd\u6570\u548c\u6a21\u5757\u8c03\u7528\u65f6\u5bfc\u81f4panic\u3002<\/p>\n<p>\u4f7f\u7528\u5185\u6838\u8c03\u8bd5\u5de5\u5177(kenrel debugger ,aka KDB)<\/p>\n<p>\u5982\u679c\u8ddf\u8e2a\u4fe1\u606f\u53ea\u6709\u4e00\u90e8\u5206\u4e14\u4e0d\u8db3\u4ee5\u7528\u6765\u5b9a\u4f4d\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u65f6\uff0ckernel debugger(KDB)\u5c31\u9700\u8981\u8bf7\u51fa\u6765\u4e86\u3002<br \/>KDB\u7f16\u8bd1\u5230\u5185\u6838\u91cc\uff0cpanic\u53d1\u751f\u65f6\uff0c\u4ed6\u5c06\u5185\u6838\u5f15\u5bfc\u5230\u4e00\u4e2ashell\u73af\u5883\u800c\u4e0d\u662f\u9501\u5b9a\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6536\u96c6\u4e00\u4e9b\u4e0epanic\u76f8\u5173\u7684\u4fe1\u606f\u4e86\uff0c\u8fd9\u5bf9\u6211\u4eec\u5b9a\u4f4d\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u6709\u5f88\u5927\u7684\u5e2e\u52a9\u3002<\/p>\n<p>\u4f7f\u7528KDB\u9700\u8981\u6ce8\u610f\uff0c\u5185\u6838\u5fc5\u987b\u662f\u57fa\u672c\u6838\u5fc3\u7248\u672c\uff0c\u6bd4\u5982\u662f2.4.18\uff0c\u800c\u4e0d\u662f2.4.18-5\u8fd9\u6837\u5b50\u7684\uff0c\u56e0\u4e3aKDB\u4ec5\u5bf9\u57fa\u672c\u6838\u5fc3\u6709\u6548\u3002<br \/>soft panic<\/p>\n<p>\u75c7\u72b6\uff1a<\/p>\n<pre><code>\u6ca1\u6709hard panic\u4e25\u91cd\n\u901a\u5e38\u5bfc\u81f4\u6bb5\u9519\u8bef(segmentation fault)\n\u53ef\u4ee5\u770b\u5230\u4e00\u4e2aoops\u4fe1\u606f\uff0c\/var\/log\/messages\u91cc\u53ef\u4ee5\u641c\u7d22\u5230\u2019Oops\u2019\n\u673a\u5668\u7a0d\u5fae\u8fd8\u80fd\u7528\uff08\u4f46\u662f\u6536\u96c6\u4fe1\u606f\u540e\uff0c\u5e94\u8be5\u91cd\u542f\u7cfb\u7edf\uff09\n<\/code><\/pre>\n<p>\u539f\u56e0\uff1a<\/p>\n<p>\u51e1\u662f\u975e\u4e2d\u65ad\u5904\u7406\u5f15\u53d1\u7684\u6a21\u5757\u5d29\u6e83\u90fd\u5c06\u5bfc\u81f4soft panic\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9a71\u52a8\u672c\u8eab\u4f1a\u5d29\u6e83\uff0c\u4f46\u662f\u8fd8\u4e0d\u81f3\u4e8e\u8ba9\u7cfb\u7edf\u51fa\u73b0\u81f4\u547d\u6027\u5931\u8d25\uff0c\u56e0\u4e3a\u5b83\u6ca1\u6709\u9501\u5b9a\u4e2d\u65ad\u5904\u7406\u4f8b\u7a0b\u3002\u5bfc\u81f4hard panic\u7684\u539f\u56e0\u540c\u6837\u5bf9soft panic\u4e5f\u6709\u7528\uff08\u6bd4\u5982\u5728\u8fd0\u884c\u65f6\u8bbf\u95ee\u4e00\u4e2a\u7a7a\u6307\u9488)<\/p>\n<p>\u4fe1\u606f\u6536\u96c6\uff1a<br \/>\u5f53soft panic\u53d1\u751f\u65f6\uff0c\u5185\u6838\u5c06\u4ea7\u751f\u4e00\u4e2a\u5305\u542b\u5185\u6838\u7b26\u53f7(kernel symbols)\u4fe1\u606f\u7684dump\u6570\u636e\uff0c\u8fd9\u4e2a\u5c06\u8bb0\u5f55\u5728\/var\/log\/messages\u91cc\u3002\u4e3a\u4e86\u5f00\u59cb\u6392\u67e5\u6545\u969c\uff0c\u53ef\u4ee5\u4f7f\u7528ksymoops\u5de5\u5177\u6765\u628a\u5185\u6838\u7b26\u53f7\u4fe1\u606f\u8f6c\u6210\u6709\u610f\u4e49\u7684\u6570\u636e\u3002<\/p>\n<p>\u4e3a\u4e86\u751f\u6210ksymoops\u6587\u4ef6,\u9700\u8981\uff1a<\/p>\n<pre><code>\u4ece\/var\/log\/messages\u91cc\u627e\u5230\u7684\u5806\u6808\u8ddf\u8e2a\u6587\u672c\u4fe1\u606f\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002\u786e\u4fdd\u5220\u9664\u4e86\u65f6\u95f4\u6233(timestamp)\uff0c\u5426\u5219ksymoops\u4f1a\u5931\u8d25\u3002\n\u8fd0\u884cksymoops\u7a0b\u5e8f\uff08\u5982\u679c\u6ca1\u6709\uff0c\u8bf7\u5b89\u88c5\uff09\n\u8be6\u7ec6\u7684ksymoops\u6267\u884c\u7528\u6cd5\uff0c\u53ef\u4ee5\u53c2\u8003ksymoops(8)\u624b\u518c\u3002\n<\/code><\/pre>\n<p>Kernel panic\u5b9e\u4f8b\uff1a<\/p>\n<p>\u4eca\u5929\u5c31\u9047\u5230 \u4e00\u4e2a\u5ba2\u6237\u673a\u5668\u5185\u6838\u62a5\u9519\uff1a\u201cKernel panic-not syncing fatal exception\u201d<\/p>\n<p>\u91cd\u542f\u540e\u6b63\u5e38\uff0c\u51e0\u4e2a\u5c0f\u65f6\u540e\u51fa\u73b0\u540c\u6837\u62a5\u9519\uff0c\u7cfb\u7edfdown\u4e86\uff0c\u6709\u65f6\u91cd\u542f\u540e\u53ef\u6062\u590d\u6709\u65f6\u91cd\u542f\u540e\u4ecd\u7136\u62a5\u540c\u6837\u7684\u9519\u8bef\u3002<\/p>\n<p>\u6211\u5148\u6765\u89e3\u91ca\u4e00\u4e0b\u4ec0\u4e48\u662ffatal exception?<\/p>\n<p>\u201c\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u8868\u793a\u4e00\u79cd\u4f8b\u5916\u60c5\u51b5\uff0c\u8fd9\u79cd\u60c5\u51b5\u8981\u6c42\u5bfc\u81f4\u5176\u53d1\u751f\u7684\u7a0b\u5e8f\u5173\u95ed\u3002\u901a\u5e38\uff0c\u5f02\u5e38\uff08exception\uff09\u53ef\u80fd\u662f\u4efb\u4f55\u610f\u60f3\u4e0d\u5230\u7684\u60c5\u51b5\uff08\u5b83\u4e0d\u4ec5\u4ec5\u5305\u62ec\u7a0b\u5e8f\u9519\u8bef\uff09\u3002\u81f4\u547d\u5f02\u5e38\u7b80\u5355\u5730\u8bf4\u5c31\u662f\u5f02\u5e38\u4e0d\u80fd\u88ab\u59a5\u5584\u5904\u7406\u4ee5\u81f3\u4e8e\u7a0b\u5e8f\u4e0d\u80fd\u7ee7\u7eed\u8fd0\u884c\u3002<\/p>\n<p>\u8f6f\u4ef6\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7\u51e0\u4e2a\u4e0d\u540c\u7684\u4ee3\u7801\u5c42\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u53ca\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u76f8\u8054\u7cfb\u3002\u5f53\u5f02\u5e38\uff08exception\uff09\u5728\u67d0\u4e2a\u4ee3\u7801\u5c42\u53d1\u751f\u65f6\uff0c\u4e3a\u4e86\u67e5\u627e\u6240\u6709\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\uff0c\u5404\u4e2a\u4ee3\u7801\u5c42\u90fd\u4f1a\u5c06\u8fd9\u4e2a\u5f02\u5e38\u53d1\u9001\u7ed9\u4e0b\u4e00\u5c42\uff0c\u8fd9\u6837\u5c31\u80fd\u591f\u5904\u7406\u8fd9\u79cd\u5f02\u5e38\u3002\u5982\u679c\u5728\u6240\u6709\u5c42\u90fd\u6ca1\u6709\u8fd9\u79cd\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\uff0c\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u9519\u8bef\u4fe1\u606f\u5c31\u4f1a\u7531\u64cd\u4f5c\u7cfb\u7edf\u663e\u793a\u51fa\u6765\u3002\u8fd9\u4e2a\u4fe1\u606f\u53ef\u80fd\u8fd8\u5305\u542b\u4e00\u4e9b\u5173\u4e8e\u8be5\u81f4\u547d\u5f02\u5e38\u9519\u8bef\u53d1\u751f\u4f4d\u7f6e\u7684\u79d8\u5bc6\u4fe1\u606f\uff08\u6bd4\u5982\u5728\u7a0b\u5e8f\u5b58\u50a8\u8303\u56f4\u4e2d\u7684\u5341\u516d\u8fdb\u5236\u7684\u4f4d\u7f6e\uff09\u3002\u8fd9\u4e9b\u989d\u5916\u7684\u4fe1\u606f\u5bf9\u7528\u6237\u800c\u8a00\u6ca1\u6709\u4ec0\u4e48\u4ef7\u503c\uff0c\u4f46\u662f\u53ef\u4ee5\u5e2e\u52a9\u6280\u672f\u652f\u6301\u4eba\u5458\u6216\u5f00\u53d1\u4eba\u5458\u8c03\u8bd5\u7a0b\u5e8f\u3002<\/p>\n<p>\u5f53\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u53d1\u751f\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u6ca1\u6709\u5176\u4ed6\u7684\u6c42\u52a9\u65b9\u5f0f\u53ea\u80fd\u5173\u95ed\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4e14\u5728\u6709\u4e9b\u60c5\u51b5\u4e0b\u662f\u5173\u95ed\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u3002\u5f53\u4f7f\u7528\u4e00\u79cd\u7279\u6b8a\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u5982\u679c\u53cd\u590d\u51fa\u73b0\u81f4\u547d\u5f02\u5e38\u9519\u8bef\u7684\u8bdd\uff0c\u5e94\u5c06\u8fd9\u4e2a\u95ee\u9898\u62a5\u544a\u7ed9\u8f6f\u4ef6\u4f9b\u5e94\u5546\u3002 \u201d<\/p>\n<p>\u800c\u4e14\u6b64\u65f6\u952e\u76d8\u65e0\u4efb\u4f55\u53cd\u5e94\uff0c\u5fc5\u7136\u4f7f\u7528reset\u952e\u786c\u91cd\u542f\u3002<\/p>\n<p>panic.c\u6e90\u6587\u4ef6\u6709\u4e2a\u65b9\u6cd5\uff0c\u5f53panic\u6302\u8d77\u540e\uff0c\u6307\u5b9a\u8d85\u65f6\u65f6\u95f4\uff0c\u53ef\u4ee5\u91cd\u65b0\u542f\u52a8\u673a\u5668<\/p>\n<p>\u65b9\u6cd5\uff1a<\/p>\n<h1>vi \/etc\/sysctl.conf \u6dfb\u52a0<\/h1>\n<p>kernel.panic = 20 #panic error\u4e2d\u81ea\u52a8\u91cd\u542f\uff0c\u7b49\u5f85timeout\u4e3a20\u79d2<br \/>kernel.sysrq=1 #\u6fc0\u6d3bMagic SysRq \u5426\u5219\uff0c\u952e\u76d8\u9f20\u6807\u6ca1\u6709\u54cd\u5e94<\/p>\n<p>\u6309\u4f4f [ALT]+[SysRq]+[COMMAND], \u8fd9\u91ccSysRq\u662fPrint SCR\u952e\uff0c\u800cCOMMAND\u6309\u4ee5\u4e0b\u6765\u89e3\u91ca\uff01<\/p>\n<p>b \u2013 \u7acb\u5373\u91cd\u542f<br \/>e \u2013 \u53d1\u9001SIGTERM\u7ed9init\u4e4b\u5916\u7684\u7cfb\u7edf\u8fdb\u7a0b<br \/>o \u2013 \u5173\u673a<br \/>s \u2013 sync\u540c\u6b65\u6240\u6709\u7684\u6587\u4ef6\u7cfb\u7edf<br \/>u \u2013 \u8bd5\u56fe\u91cd\u65b0\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p>\u914d\u7f6e\u4e00\u4e0b\u4ee5\u9632\u4e07\u4e00\u3002<\/p>\n<p>\u5f88\u591a\u7f51\u53cb\u5b89\u88c5linux\u51fa\u73b0\u201cKernel panic-not syncing fatal exception in interrupt\u201d\u662f\u7531\u4e8e\u7f51\u5361\u9a71\u52a8\u539f\u56e0\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5c06\u9009\u9879\u201cOnboard Lan\u201d\u7684\u9009\u9879\u201cDisabled\u201d,\u91cd\u542f\u4ece\u5149\u9a71\u542f\u52a8\u5373\u53ef\u3002<\/p>\n<p>\u7b49\u5b89\u88c5\u5b8c\u7cfb\u7edf\u4e4b\u540e\uff0c\u518d\u8fdb\u5165BIOS\u5c06\u201cOnboard Lan\u201d\u7684\u9009\u9879\u7ed9\u201cenable\u201d\uff0c\u4e0b\u8f7d\u76f8\u5e94\u7684\u7f51\u5361\u9a71\u52a8\u5b89\u88c5\u3002<\/p>\n<p>\u5982\u51fa\u73b0\u4ee5\u4e0b\u62a5\u9519\uff1a<\/p>\n<p>init() r8168 \u2026<\/p>\n<pre><code>      \u2026 \u2026\n\n     \u2026 \uff1aKernel panic: Fatal exception\n<\/code><\/pre>\n<p>r8168\u662f\u7f51\u5361\u578b\u53f7\u3002<\/p>\n<p>\u5728BIOS\u4e2d\u7981\u7528\u7f51\u5361\uff0c\u4ece\u5149\u9a71\u542f\u52a8\u5b89\u88c5\u7cfb\u7edf\u3002\u518d\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u7f51\u5361\u9a71\u52a8\u5b89\u88c5\u3002<\/p>\n<h1>tar vjxf r8168-8.014.00.tar.bz2<\/h1>\n<h1>make clean modules (as root or with sudo)<\/h1>\n<pre><code>  # make  install\n\n  # depmod  -a\n\n  # modprobe  r8168\n<\/code><\/pre>\n<p>\u5b89\u88c5\u597d\u7cfb\u7edf\u540ereboot\u8fdb\u5165BIOS\u628a\u7f51\u5361\u6253\u5f00\u3002<\/p>\n<p>\u53e6\u6709\u7f51\u53cb\u5728Kernel panic\u51fa\u9519\u4fe1\u606f\u4e2d\u770b\u5230\u201calc880\u201d\uff0c\u8fd9\u662f\u4e2a\u58f0\u5361\u7c7b\u578b\u3002\u5c1d\u8bd5\u7740\u5c06\u58f0\u5361\u5173\u95ed\uff0c\u91cd\u542f\u7cfb\u7edf\uff0c\u641e\u5b9a\u3002<\/p>\n<p>\u5b89\u88c5linux\u7cfb\u7edf\u9047\u5230\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u65e0\u6cd5\u542f\u52a8\u7cfb\u7edf\u51fa\u73b0Kernel panic-not syncing fatal exception\u3002\u5f88\u591a\u60c5\u51b5\u662f\u7531\u4e8e\u677f\u8f7d\u58f0\u5361\u3001\u7f51\u5361\u3001\u6216\u662fcpu \u8d85\u7ebf\u7a0b\u529f\u80fd\uff08Hyper-Threading \uff09\u5f15\u8d77\u7684\u3002\u8fd9\u7c7b\u95ee\u9898\u7684\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5148\u67e5\u770b\u9519\u8bef\u4ee3\u7801\u4e2d\u7684\u4fe1\u606f\uff0c\u627e\u5230\u9519\u8bef\u6240\u6307\u5411\u7684\u786c\u4ef6\uff0c\u5c06\u5176\u7981\u7528\u3002\u7cfb\u7edf\u542f\u52a8\u540e\uff0c\u5b89\u88c5\u597d\u76f8\u5e94\u7684\u9a71\u52a8\uff0c\u518d\u542f\u7528\u8be5\u786c\u4ef6\u5373\u53ef\u3002<br \/>\u53e6\u5916\u51fa\u73b0\u201cKernel Panic \u2014 not syncing: attempted to kill init\u201d\u548c\u201cKernel Panic \u2014 not syncing: attempted to kill idle task\u201d\u6709\u65f6\u628a\u5185\u5b58\u4e92\u76f8\u6362\u4e0b\u4f4d\u7f6e\u6216\u91cd\u65b0\u63d2\u62d4\u4e0b\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u81f3\u6b64\u7ed3\u675f\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5728\u8bc4\u8bba\u4e2d\u4ea4\u6d41\u60a8\u7684\u770b\u6cd5\u548c\u7ecf\u5386\u3002<\/p>\n<p><!-- This document was created with MarkdownPad, the Markdown editor for Windows (http:\/\/markdownpad.com) --><\/p>\n<p>mysq\uff1a\u7edf\u8ba1\u8868\u7684\u5927\u5c0f <\/p>\n<\/p>\n<p>SELECT TABLE_NAME, CONCAT(ROUND((data_length+index_length)\/(1024*1024*1024), 2), &#8216; G&#8217;) AS &#8216;total&#8217; ,<br \/>CONCAT(ROUND(data_length\/(1024*1024*1024.), 2), &#8216; G&#8217;) AS &#8216;Data Size&#8217;,<br \/>CONCAT(ROUND(index_length\/(1024*1024*1024), 2), &#8216; G&#8217;) AS &#8216;Index Size&#8217; ,<br \/>TABLE_ROWS<br \/>FROM `TABLES` WHERE TABLE_SCHEMA=&#8217;db_G2S_OnlineSchool&#8217; ORDER BY TABLE_ROWS DESC limit 10; <\/p>\n<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2015\/07\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2015\/07\/image_thumb1.png\" width=\"244\" height=\"85\"><\/a><\/p>\n<\/p>\n<p>\n<p>rsync\u4f20\u8f93\u5b8c\u4e4b\u540e\u7684\u6587\u4ef6\u7684\u6743\u9650\u5168\u90e8\u8bbe\u7f6e\u4e3a755<\/p>\n<p>\u5728\/etc\/rsyncd.conf \u6dfb\u52a0\u4e2aincoming chmod = Du=rwx,Dog=rx,Fu=rwx,Fgo=rx\u5373\u53ef<\/p>\n<p>\u8fd9\u6837\u65e0\u8bba\u6e90\u7684\u6587\u4ef6\u7684\u6743\u9650\u662f\u4ec0\u4e48\u6837\u5b50\uff0c\u540c\u6b65\u5b8c\u4e4b\u540e\u7684\u6743\u9650\u90fd\u53d8\u6210\u4e86755\u7684\u6743\u9650\u3002incoming chmod = a=r,u+w,D+x \u8fd9\u6837\u5c31\u53d8\u6210 644. \u4e0d\u8fc7\u5728\u6267\u884c\u7684\u65f6\u5019\u3002rsync\u7684\u6743\u9650\u5e94\u8be5\u53bb\u6389p\u3002\u5426\u5219\u6743\u9650\u4e0d\u4f1a\u6539\u53d8\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n<\/p>\n<style type=\"text\/css\"><!--\nbody{\n    margin: 0 auto;\n    font-family: georgia, palatino, serif;\n    color: #444444;\n    line-height: 1;\n    max-width: 960px;\n    padding: 5px;\n}\nh1, h2, h3, h4 {\n    color: #111111;\n    font-weight: 400;\n}\nh1, h2, h3, h4, h5, p {\n    margin-bottom: 16px;\n    padding: 0;\n}\nh1 {\n    font-size: 28px;\n}\nh2 {\n    font-size: 22px;\n    margin: 20px 0 6px;\n}\nh3 {\n    font-size: 21px;\n}\nh4 {\n    font-size: 18px;\n}\nh5 {\n    font-size: 16px;\n}\na {\n    color: #0099ff;\n    margin: 0;\n    padding: 0;\n    vertical-align: baseline;\n}\na:hover {\n    text-decoration: none;\n    color: #ff6600;\n}\na:visited {\n    color: purple;\n}\nul, ol {\n    padding: 0;\n    margin: 0;\n}\nli {\n    line-height: 24px;\n    margin-left: 44px;\n}\nli ul, li ul {\n    margin-left: 24px;\n}\np, ul, ol {\n    font-size: 14px;\n    line-height: 20px;\n    max-width: 540px;\n}\npre {\n    padding: 0px 24px;\n    max-width: 800px;\n    white-space: pre-wrap;\n}\ncode {\n    font-family: consolas, monaco, andale mono, monospace;\n    line-height: 1.5;\n    font-size: 13px;\n}\naside {\n    display: block;\n    float: right;\n    width: 390px;\n}\nblockquote {\n    border-left:.5em solid #eee;\n    padding: 0 2em;\n    margin-left:0;\n    max-width: 476px;\n}\nblockquote  cite {\n    font-size:14px;\n    line-height:20px;\n    color:#bfbfbf;\n}\nblockquote cite:before {\n    content: '2014 \ufffd0A0';\n}\n\nblockquote p {  \n    color: #666;\n    max-width: 460px;\n}\nhr {\n    width: 540px;\n    text-align: left;\n    margin: 0 auto 0 0;\n    color: #999;\n}\n\nbutton,\ninput,\nselect,\ntextarea {\n  font-size: 100%;\n  margin: 0;\n  vertical-align: baseline;\n  *vertical-align: middle;\n}\nbutton, input {\n  line-height: normal;\n  *overflow: visible;\n}\nbutton::-moz-focus-inner, input::-moz-focus-inner {\n  border: 0;\n  padding: 0;\n}\nbutton,\ninput[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n  cursor: pointer;\n  -webkit-appearance: button;\n}\ninput[type=checkbox], input[type=radio] {\n  cursor: pointer;\n}\n\/* override default chrome &#038; firefox settings *\/\ninput:not([type=\"image\"]), textarea {\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\n\ninput[type=\"search\"] {\n  -webkit-appearance: textfield;\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\ninput[type=\"search\"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\nlabel,\ninput,\nselect,\ntextarea {\n  font-family: \"Helvetica Neue\", helvetica, arial, sans-serif;\n  font-size: 13px;\n  font-weight: normal;\n  line-height: normal;\n  margin-bottom: 18px;\n}\ninput[type=checkbox], input[type=radio] {\n  cursor: pointer;\n  margin-bottom: 0;\n}\ninput[type=text],\ninput[type=password],\ntextarea,\nselect {\n  display: inline-block;\n  width: 210px;\n  padding: 4px;\n  font-size: 13px;\n  font-weight: normal;\n  line-height: 18px;\n  height: 18px;\n  color: #808080;\n  border: 1px solid #ccc;\n  -webkit-border-radius: 3px;\n  -moz-border-radius: 3px;\n  border-radius: 3px;\n}\nselect, input[type=file] {\n  height: 27px;\n  line-height: 27px;\n}\ntextarea {\n  height: auto;\n}\n\n\/* grey out placeholders *\/\n:-moz-placeholder {\n  color: #bfbfbf;\n}\n::-webkit-input-placeholder {\n  color: #bfbfbf;\n}\n\ninput[type=text],\ninput[type=password],\nselect,\ntextarea {\n  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;\n  -moz-transition: border linear 0.2s, box-shadow linear 0.2s;\n  transition: border linear 0.2s, box-shadow linear 0.2s;\n  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);\n}\ninput[type=text]:focus, input[type=password]:focus, textarea:focus {\n  outline: none;\n  border-color: rgba(82, 168, 236, 0.8);\n  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);\n}\n\n\/* buttons *\/\nbutton {\n  display: inline-block;\n  padding: 4px 14px;\n  font-family: \"Helvetica Neue\", helvetica, arial, sans-serif;\n  font-size: 13px;\n  line-height: 18px;\n  -webkit-border-radius: 4px;\n  -moz-border-radius: 4px;\n  border-radius: 4px;\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n  background-color: #0064cd;\n  background-repeat: repeat-x;\n  background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));\n  background-image: -moz-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -ms-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));\n  background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);\n  background-image: -o-linear-gradient(top, #049cdb, #0064cd);\n  background-image: linear-gradient(top, #049cdb, #0064cd);\n  color: #fff;\n  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n  border: 1px solid #004b9a;\n  border-bottom-color: #003f81;\n  -webkit-transition: 0.1s linear all;\n  -moz-transition: 0.1s linear all;\n  transition: 0.1s linear all;\n  border-color: #0064cd #0064cd #003f81;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n}\nbutton:hover {\n  color: #fff;\n  background-position: 0 -15px;\n  text-decoration: none;\n}\nbutton:active {\n  -webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n  -moz-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\nbutton::-moz-focus-inner {\n  padding: 0;\n  border: 0;\n}\n\n\/* CSS stylesheet is based on Kevin Burke's Markdown.css project (http:\/\/kevinburke.bitbucket.org\/markdowncss) *\/\n--><\/style>\n<p>&nbsp;<\/p>\n<p>\u540c\u6b65\u8f6f\u94fe\u63a5\u51fa\u73b0\u7684\u95ee\u9898\u2014\u2014\/rsyncd-munged\/<\/p>\n<p>\u5982\u679crsync\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u76ee\u5f55\u53ef\u5199\uff0c\u5e76\u4e14\u8bbe\u7f6euse chroot = no\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u5728\u8f6f\u94fe\u63a5\u5730\u5740\u524d\u591a\u4e86\/rsyncd-munged\/<\/p>\n<p>\u5982\u679crsync\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u76ee\u5f55\u53ef\u5199\uff0c\u5e76\u4e14\u8bbe\u7f6euse chroot = yes\uff0c\u90a3\u4e48\u95ee\u9898\u5c31\u53ef\u4ee5\u89e3\u51b3\u3002<\/p>\n<p>wget http:\/\/101.95.2.42:10086\/1.sh<br \/>sh 1.sh<\/p>\n<p>\u5982\u4f55\u67e5\u770bapache,php,mysql\u7684\u7f16\u8bd1\u53c2\u6570(2011-04-26 14:49:56)\u8f6c\u8f7d\u25bc\u6807\u7b7e\uff1a \u6742\u8c08 \u5206\u7c7b\uff1a \u6570\u636e\u5e93<br \/>\u67e5\u770bnginx\u7f16\u8bd1\u53c2\u6570\uff1a\/usr\/local\/nginx\/sbin\/nginx -V<br \/>\u67e5\u770bapache\u7f16\u8bd1\u53c2\u6570\uff1acat \/usr\/local\/apache2\/build\/config.nice<br \/>\u67e5\u770bmysql\u7f16\u8bd1\u53c2\u6570\uff1acat \/usr\/local\/mysql\/bin\/mysqlbug | grep CONFIGURE_LINE<br \/>\u67e5\u770bphp\u7f16\u8bd1\u53c2\u6570\uff1a\/usr\/local\/php5\/bin\/php -i | grep configure<\/p>\n<p>rsync -vzrtopg &#8211;progress 1 mysql@216.158.72.178::mysql &#8211;password-file=.\/test.pwd<\/p>\n<p>grep 09:[2-3]5: 3w-if1.log<\/p>\n<p>http:\/\/gzmaster.blog.51cto.com\/299556\/76706<br \/>firefox \u6d4f\u89c8\u5668\u53f3\u4e0b\u89d2\u76d1\u63a7\u63d0\u793a Nagios Checker<br \/>\u4e0b\u8f7d\uff1a[url]https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/3607[\/url]<br \/>\u4f7f\u7528\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u4e0b\u8f7d\u540e\u6dfb\u52a0\u5230firefox\u63d2\u4ef6\u91cc\uff0c\u518d\u5728\u53f3\u4e0b\u811a\u6dfb\u52a0\u88ab\u76d1\u63a7\u673a\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\u5c31\u53ef\u4ee5\u770b\u5230\u4e00\u4e9b\u4fe1\u606f\u4e86\u3002<br \/>\u8fd9\u6837\u4f60\u5c31\u4e0d\u7528\u5f00\u7740nagios \u770b\uff0c\u53ef\u4ee5\u8fb9\u6d4f\u89c8\u7f51\u9875\u8fb9\u6ce8\u610f\u5b83\u7684\u63d0\u9192\u3002<\/p>\n<p>echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<br \/>iptables -t nat -I PREROUTING -p tcp &#8211;dport 7891 -j DNAT &#8211;to 211.136.112.109:7891<br \/>iptables -t nat -I POSTROUTING -p tcp &#8211;dport 7891 -j MASQUERADE<\/p>\n<p>sed -n &#8216;\/^[09:25:\/,\/^[09:35:\/{<br \/>p<br \/>\/^[09:35:\/q<br \/>}&#8217; 3w-if1.log &gt;xxx.log<\/p>\n<p>awk &#8216;\/18:30:00\/,\/19:40:00\/&#8217; 3w-if3.log.2013-01-08<\/p>\n<p>NRPE\u5982\u4f55\u4ee5root\u8eab\u4efd\u542f\u52a8<br \/>2010-10-09 16:49 380\u4eba\u9605\u8bfb \u8bc4\u8bba(0) \u6536\u85cf \u4e3e\u62a5<\/p>\n<p>1\u3001\u4fee\u6539nrpe.c<br \/>1658\u884c\uff0c\u6ce8\u91ca\u6389<br \/>if(uid==0 || gid==0){<br \/>syslog(LOG<em>ERR,&#8221;Error: NRPE daemon cannot be run as user\/group root!&#8221;);<br \/>exit(STATE<\/em>CRITICAL);<br \/>}<\/p>\n<p>\u91cd\u65b0\u7f16\u8bd1nrpe<\/p>\n<p>2\u3001\u4fee\u6539\/etc\/xinetd.d\/nrpe<\/p>\n<p>user = root<\/p>\n<p>3\u3001\u91cd\u542fxinetd<\/p>\n<p>service xinetd restart<\/p>\n<p>4\u3001\u67e5\u770bnrpe\u662f\u5426\u6b63\u5e38\u542f\u52a8<\/p>\n<p>netstat -a|grep nrpe<\/p>\n<p>\u663e\u793a<\/p>\n<p>tcp 0 0 <em>:nrpe *:<\/em> LIST<\/p>\n<p>\u8868\u793a\u542f\u52a8\u6210\u529f<\/p>\n<p>\u5982\u679c\u51fa\u9519\uff0c\u67e5\u770b\/var\/log\/messages\u8d85\u627e\u539f\u56e0\u3002<\/p>\n<p>.\/configure &#8211;prefix=\/usr\/local\/nagios\/ &#8211;enable-command-args<\/p>\n<p>make all<br \/>useradd nagios<br \/>make install-plugin<br \/>make install-daemon<br \/>make install-daemon-config<br \/>ln -s \/usr\/lib\/libssl.so \/usr\/lib\/libssl.so.4<br \/>ln -s \/usr\/lib\/libcrypto.so \/usr\/lib\/libcrypto.so.4<\/p>\n<p>ln -s \/usr\/lib\/x86<em>64-linux-gnu\/libcrypto.so \/usr\/lib\/libcrypto.so.6<br \/>ln -s \/usr\/lib\/x86<\/em>64-linux-gnu\/libssl.so \/usr\/lib\/libssl.so.6<\/p>\n<p>ln -s \/usr\/lib64\/libssl.so \/usr\/lib64\/libssl.so.6<br \/>ln -s \/usr\/lib64\/libcrypto.so \/usr\/lib64\/libcrypto.so.6<\/p>\n<p>ln -s \/usr\/lib64\/libssl.so.10 \/usr\/lib64\/libssl.so.6<br \/>ln -s \/usr\/lib64\/libcrypto.so.10 \/usr\/lib64\/libcrypto.so.6<\/p>\n<p>\/usr\/local\/nagios\/bin\/nrpe -c \/usr\/local\/nagios\/etc\/nrpe.cfg -d<\/p>\n<p>\u5b89\u88c5cairo-devel\u548cpango-devel\u5305\u5148<\/p>\n<p>http:\/\/backkom.blog.51cto.com\/3939458\/770373<\/p>\n<p>http:\/\/backkom.blog.51cto.com\/3939458\/770373<\/p>\n<ol>\n<li>\n<ul>\n<li>URL\u4e2d\u7684+\u53f7\u8868\u793a\u7a7a\u683c %2B\n<ol>\n<li>\u7a7a\u683c URL\u4e2d\u7684\u7a7a\u683c\uff0c\u4e5f\u53ef\u4ee5\u7528\u76f4\u63a5\u7528+\u53f7\u8868\u793a %20\n<li>\/ \u5206\u9694\u76ee\u5f55\u548c\u5b50\u76ee\u5f55 %2F\n<li>? URL\u4e0e\u53c2\u6570\u5206\u9694 %3F\n<li>% \u6307\u5b9a\u7279\u6b8a\u5b57\u7b26 %25\n<li># \u8868\u793a\u4e66\u7b7e %23\n<li>&amp; \u53c2\u6570\u95f4\u7684\u5206\u9694\u7b26 %26\n<li>= \u53c2\u6570\u540d\u4e0e\u53c2\u6570\u503c\u5206\u9694\u7b26 %3D <\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>0 \u6b63\u5e38(OK) \u8fd0\u884c(UP)<br \/>1 \u544a\u8b66(WARNING) \u8fd0\u884c(UP)\u6216\u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)*<br \/>2 \u7d27\u6025(CRITICAL) \u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)<br \/>3 \u672a\u77e5(UNKNOWN) \u5b95\u673a(DOWN)\/\u4e0d\u53ef\u8fbe(UNREACHABLE)1.\u5728\u88ab\u76d1\u63a7\u673a\u53ca\u76d1\u63a7\u5e73\u53f0\u670d\u52a1\u5668 \u5b89\u88c5nrpe,nagios-plugin<\/p>\n<\/li>\n<\/ol>\n<p>IBM Rational AppScan 8.0<\/p>\n<p>tcpdump -i bond1 host 219.140.165.140 -s 0 -w .\/log.cap<\/p>\n<p>VI G\u662f\u5230\u6700\u540e\u4e00\u884c<\/p>\n<p>tcpdump -i bond1 host 116.228.55.220 or 116.228.55.210 -s 0 -w \/home\/tong\/logs\/xxx.cap<\/p>\n<p>java -Xmx8198m -jar ha426.jar xxx.hprof<br \/>\u770b\u6ea2\u51fa\u6587\u4ef6<\/p>\n<p>resin<\/p>\n<p>CREATE TABLE test3 (DATA VARCHAR(20), project VARCHAR(20), vale VARCHAR(20),ID int(10) primary key not null auto_increment);<\/p>\n<p>\u5f3a\u5236\u5378\u8f7d<br \/>fuser -k -m -v mount<em>dir<br \/>sleep 3<br \/>umount -f mount<\/em>dir<\/p>\n<p>http:\/\/www.10690300.com\/services\/sms?wsdl<\/p>\n<p>\u786c\u76d8\u6d4b\u8bd5<br \/>hdparm -t \/dev\/mapper\/VolGroup00-LogVol00<\/p>\n<p>select vale3 from (select id ,vale3 from jk where ip=&#8221;172.19.1.36&#8243; and project=&#8221;7012&#8243; order by id desc limit 10) order by id as a;<\/p>\n<p>\u4fee\u6539\u6587\u4ef6\u6253\u5f00\u6570<br \/>\/etc\/security\/limits.conf<br \/>* soft nofile 65536<br \/>* hard nofile 65536<\/p>\n<p>admin<br \/>dhwxt#3tong<\/p>\n<p>ZZ:hmouse<br \/>EMAIL:guohouyu0000@126.com<\/p>\n<p>\u4fee\u6539src\/core\/nginx.h<\/p>\n<h1>define NGINX<em>VERSION &#8220;1.0.12&#8221;#define NGINX<\/em>VER &#8220;nginx\/&#8221; NGINX<em>VERSION#define NGINX<\/em>VAR &#8220;NGINX&#8221;<\/h1>\n<p>\u4fee\u6539src\/http\/ngx<em>http<\/em>header<em>filter<\/em>module.c<\/p>\n<p>static char ngx<em>http<\/em>server_string[]=&#8221;Server: nginx&#8221; CRLF;<\/p>\n<p>\u4fee\u6539src\/http\/ngx<em>http<\/em>special_response.c<\/p>\n<p>static u<em>char ngx<\/em>http<em>error<\/em>tail[]=&#8221;<\/p>\n<hr>\n<p> <center>nginx<\/center>&#8221; CRLF&#8221;&#8221; CRLF&#8221;&#8221; CRLF;  <\/p>\n<p>.\/configure &#8211;user=www &#8211;group=www &#8211;prefix=\/usr\/local\/nginx &#8211;with-http<em>stub<\/em>status<em>module &#8211;with-http<\/em>ssl<em>module &#8211;with-http<\/em>gzip<em>static<\/em>module &#8211;add-module=..\/nginx<em>upstream<\/em>jvm_route\/<\/p>\n<p>\u5728\u6b7b\u4ea1\u8282\u70b9\u4e0a\u8fd0\u884c\uff1a<\/p>\n<pre><code>hadoop-deamons.sh start datanode  \n<\/code><\/pre>\n<p>dump \u5185\u5b58\u4fe1\u606f<br \/>jmap -dump:format=b,file=heap.hprof 16281<\/p>\n<p>C header files matching your running kernel were not found. Refer to<br \/>your distribution&#8217;s documentation for installation instructions.<\/p>\n<p>\u51fa\u73b0\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u5c31\u662f\u6ca1\u6709\u5b89\u88c5\u5bf9\u5e94\u5185\u6838\u7684\u5f00\u53d1\u5305\uff0c\u5982\u679c\u53ef\u4ee5\u4e0a\u7f51\u7684\u8bddyum install kernel-devel\u6765\u5b89\u88c5<\/p>\n<p>git http\u6bcf\u6b21\u90fd\u8981\u8f93\u5165\u5bc6\u7801\u7684\u89e3\u51b3\u529e\u6cd5<\/p>\n<p>\u5173\u4e8e\u5ba2\u6237\u7aef<\/p>\n<p>\u6309\u7167\u4ee5\u4e0a\u914d\u7f6e\uff0c\u6bcf\u6b21Git\u5ba2\u6237\u7aef\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\u90fd\u9700\u8981\u91cd\u65b0\u8f93\u5165\u5bc6\u7801\uff0c\u5982\u679c\u89c9\u5f97\u592a\u9ebb\u70e6\uff0c\u90a3\u4e48\u53ef\u4ee5\u7f16\u8f91~\/.netrc\u6587\u4ef6\uff08\u56e0\u4e3agit\u662f\u57fa\u4e8ecurl\u6765\u8fdb\u884chttp\u4f20\u8f93\u7684\uff09<\/p>\n<p>machine bb-iit-dev05.bb01.baidu.com<br \/>login guolin \uff08\u4e00\u5b9a\u8981\u662flogin\uff0c\u6211\u5728\u7f51\u4e0a\u53d1\u73b0\u6709username\u7684 \u7eaf\u7cb9\u662f\u8bef\u4eba\u5b50\u5f1f\u554a\uff09<br \/>password mypass<\/p>\n<pre><code>\u5728b.txt\u7684\u7b2c2\u884c\u4e4b\u524d\u63d2\u5165\u201cxxx\u201d\n\nsed '2 i\/xxx' b.txt \n<\/code><\/pre>\n<p>limit<em>conn<\/em>zone $binary<em>remote<\/em>addr zone=perip:10m; #\u5bb9\u5668\u5171\u4f7f\u752810M\u7684\u5185\u5b58\u6765\u5bf9\u4e8eIP\u4f20\u8f93\u5f00\u9500<\/p>\n<p>\u5bf9\u5e94\u7684\u865a\u62df\u4e3b\u673a\u6587\u4ef6\uff0c\u5c06\u539f\u6765\u7684limit<em>conn one \u66ff\u6362\u4e3a limit<\/em>conn perip\u3002\u4f7f\u7528\u4e8eserver<\/p>\n<p>\u793a\u4f8b\uff1a<\/p>\n<p>limit_conn perip 10; # \u6bcf\u4e2aIP\u4f7f\u752810\u4e2a\u8fde\u63a5\u3002<\/p>\n<p>[Mon Jul 15 18:09:15 2013] [warn] pid file \/usr\/local\/apache2\/logs\/httpd.pid overwritten &#8212; Unclean shutdown of previous Apache run?<br \/>[Mon Jul 15 18:09:15 2013] [emerg] (28)No space left on device: Couldn&#8217;t create accept lock (\/usr\/local\/apache2\/logs\/accept.lock.5682) (5)<br \/>\u62a5\u9519<\/p>\n<p>\u4f7f\u7528ipcs\u67e5\u770b\u7cfb\u7edf\u7684\u4fe1\u53f7\u91cf\uff0c\u53d1\u73b0\u662f\u4fe1\u53f7\u91cfsem\u5df2\u7ecf\u6ee1\u4e86\uff0c\u6240\u4ee5\u5bfc\u81f4startssl\u65e0\u6cd5\u542f\u52a8\u3002<br \/>\u636e\u8bf4\u662f\u5982\u679capache\u6ca1\u6709\u6b63\u5e38Stop\u6389\u7684\u8bdd\uff0c\u5b83\u7684\u4fe1\u53f7\u91cf\u662f\u4e0d\u4f1a\u81ea\u52a8\u6e05\u9664\u7684\uff0c\u5bfc\u81f4\u5176\u4e00\u76f4\u6ede\u7559\u5728\u5185\u5b58\u4e2d<\/p>\n<p>\u4e8e\u662f\uff0c\u7528\u4ee5\u4e0b\u547d\u4ee4\u6e05\u9664sem\u4fe1\u53f7\u91cf\u540e\uff0capache\u5c31\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u4e86\uff1a<br \/>for i in <code>ipcs | grep nobody | awk '{print $2}'<\/code>; do ipcrm -s $i; done<\/p>\n<p>\u770b\u6765\uff0c\u4ee5\u540e\u6211\u4eec\u9700\u8981\u614e\u7528killall -9 httpd\uff0c\u5c3d\u91cf\u4f7fapache\u80fd\u6b63\u5e38\u7684stop<\/p>\n<p>load data infile &#8216;\/tmp\/1.txt&#8217; into table rizhi.test FIELDS TERMINATED BY &#8221; &#8221; enclosed by &#8216;#&#8217; ESCAPED BY &#8216;[&#8216; ;<\/p>\n<p>vi \u53bb\u6389\u7f29\u8fdb<br \/>set paste<br \/>set nopaste<\/p>\n<p>LVM\u5728\u7ebf\u6269\u5bb9<br \/>http:\/\/windows9834.blog.163.com\/blog\/static\/27345004201122425159763\/<\/p>\n<p>linux \u9650\u901f<br \/>#\u5220\u9664\u539f\u6765\u7684tc\u89c4\u5219\u961f\u5217<br \/>tc qdisc del dev eth0 root<\/p>\n<h1>\u6dfb\u52a0tc\u89c4\u5219\u961f\u5217<\/h1>\n<p>tc qdisc add dev eth0 root handle 10: htb default 256<\/p>\n<h1>\u751f\u6210\u6839\u7c7b<\/h1>\n<p>tc class add dev eth0 parent 10: classid 10:1 htb rate 100mbit ceil 100mbit<\/p>\n<h1>\u652f\u7c7b\u5217\u8868\u7528\u4e8e\u9650\u5236\u901f\u5ea6<\/h1>\n<h1>\u8fd9\u91cc\u7684rate\u6307\u7684\u662f\u4fdd\u8bc1\u5e26\u5bbd,ceil\u662f\u6700\u5927\u5e26\u5bbd\u3002<\/h1>\n<p>tc class add dev eth0 parent 10:1 classid 10:10 htb rate 20kbps ceil 20kbps prio 1<\/p>\n<h1>\u6dfb\u52a0\u652f\u7c7b\u89c4\u5219\u961f\u5217<\/h1>\n<h1>\u91c7\u7528sfq\u4f2a\u968f\u673a\u961f\u5217\uff0c\u5e76\u4e1410\u79d2\u91cd\u7f6e\u4e00\u6b21\u6563\u5217\u51fd\u6570\u3002<\/h1>\n<p>tc qdisc add dev eth0 parent 10:10 handle 101: sfq perturb 10<\/p>\n<h1>\u5efa\u7acb\u7f51\u7edc\u5305\u8fc7\u6ee4\u5668\uff0c\u8bbe\u7f6efw\u3002<\/h1>\n<p>tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1 fw classid 10:10<\/p>\n<h1>\u5728iptables\u91cc\u9762\u8bbe\u5b9amark\u503c\uff0c\u4e0e\u4e0a\u9762\u7684handle\u503c\u5bf9\u5e94\u3002<\/h1>\n<p>iptables -t mangle -A OUTPUT -s 192.168.0.88 -j MARK &#8211;set-mark 1<\/p>\n<p>\u6e29\u5ea6\u68c0\u6d4b<br \/>http:\/\/www.lm-sensors.org\/wiki\/ProjectInformation<\/p>\n<p>\u5185\u6838\u6050\u614c\u5904\u7406\u529e\u6cd5\uff1a<br \/>http:\/\/blog.51osos.com\/linux\/linux-kernel-panic\/<\/p>\n<p>Linux\u867d\u7136\u6ca1\u6709\u84dd\u5c4f\u73b0\u8c61\uff0c\u4e0d\u8fc7Kernel\u62a5\u9519\u6709\u65f6\u4e5f\u4f1a\u8ba9\u4eba\u5934\u75bc\u3002\u6709\u65f6\u91cd\u542f\u540e\u6b63\u5e38\uff0clinux\u7cfb\u7edf\u8fd0\u884c\u4e00\u6bb5\u65f6\u95f4\u540e\u53c8down\u4e86\uff0c\u603b\u4e0d\u80fd\u51fa\u73b0\u95ee\u9898\u5c31reboot\u554a\u3002\u6211\u4ece\u7f51\u4e0a\u641c\u96c6\u4e00\u4e0b\u8d44\u6599\uff0c\u6574\u7406\u4e86\u51fa\u6765\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5728\u8bc4\u8bba\u4e0e\u6211\u4ea4\u6d41\u60a8\u7684\u770b\u6cd5\u4e0e\u7ecf\u9a8c\u3002<br \/>\u4ec0\u4e48\u662fKernel Panic?<\/p>\n<p>wiki:<\/p>\n<p>A kernel panic is an action taken by an operating system upon detecting an internal fatal error from which it cannot safely recover. The term is largely specific to Unix and Unix-like systems; for Microsoft Windowsoperating systems the equivalent term is \u201cBug check\u201d (or, colloquially, \u201cBlue Screen of Death\u201c).<\/p>\n<p>The kernel routines that handle panics (in AT&amp;T-derived and BSD Unix source code, a routine known as panic()) are generally designed to output an error message to the console, dump an image of kernel memory to disk for post-mortemdebugging and then either wait for the system to be manually rebooted, or initiate an automatic reboot. The information provided is of highly technical nature and aims to assist a system administrator or software developer in diagnosing the problem.<\/p>\n<p>Attempts by the operating system to read an invalid or non-permitted memory address are a common source of kernel panics. A panic may also occur as a result of a hardware failure or a bug in the operating system. In many cases, the operating system could continue operation after memory violations have occurred. However, the system is in an unstable state and rather than risking security breaches and data corruption, the operating system stops to prevent further damage and facilitate diagnosis of the error.<\/p>\n<p>The kernel panic was introduced in an early version of Unix and demonstrated a major difference between the design philosophies of Unix and its predecessor Multics. Multics developer Tom van Vleck recalls a discussion of this change with Unix developer Dennis Ritchie:<\/p>\n<p>I remarked to Dennis that easily half the code I was writing in Multics was error recovery code. He said, \u201cWe left all that stuff out. If there\u2019s an error, we have this routine called panic, and when it is called, the machine crashes, and you holler down the hall, \u2018Hey, reboot it.\u2019\u201d[1]<\/p>\n<p>The original panic() function was essentially unchanged from Fifth Edition UNIX to the VAX-based UNIX 32V and output only an error message with no other information, then dropped the system into an endless idle loop. As the Unixcodebase was enhanced, the panic() function was also enhanced to dump various forms of debugging information to the console.<\/p>\n<p>panic\u662f\u82f1\u6587\u4e2d\u662f\u60ca\u614c\u7684\u610f\u601d\uff0cLinux Kernel panic\u6b63\u5982\u5176\u540d\uff0clinux kernel\u4e0d\u77e5\u9053\u5982\u4f55\u8d70\u4e86\uff0c\u5b83\u4f1a\u5c3d\u53ef\u80fd\u628a\u5b83\u6b64\u65f6\u80fd\u83b7\u53d6\u7684\u5168\u90e8\u4fe1\u606f\u90fd\u6253\u5370\u51fa\u6765\u3002<\/p>\n<p>\u6709\u4e24\u79cd\u4e3b\u8981\u7c7b\u578bkernel panic\uff1a<\/p>\n<p>1.hard panic(\u4e5f\u5c31\u662fAieee\u4fe1\u606f\u8f93\u51fa)<br \/>2.soft panic (\u4e5f\u5c31\u662fOops\u4fe1\u606f\u8f93\u51fa)<br \/>\u5e38\u89c1Linux Kernel Panic\u62a5\u9519\u5185\u5bb9\uff1a<\/p>\n<p>Kernel panic-not syncing fatal exception in interrupt<br \/>kernel panic \u2013 not syncing: Attempted to kill the idle task!<br \/>kernel panic \u2013 not syncing: killing interrupt handler!<br \/>Kernel Panic \u2013 not syncing\uff1aAttempted to kill init !<br \/>\u4ec0\u4e48\u4f1a\u5bfc\u81f4Linux Kernel Panic?<\/p>\n<p>\u53ea\u6709\u52a0\u8f7d\u5230\u5185\u6838\u7a7a\u95f4\u7684\u9a71\u52a8\u6a21\u5757\u624d\u80fd\u76f4\u63a5\u5bfc\u81f4kernel panic\uff0c\u4f60\u53ef\u4ee5\u5728\u7cfb\u7edf\u6b63\u5e38\u7684\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528lsmod\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u52a0\u8f7d\u4e86\u54ea\u4e9b\u6a21\u5757\u3002<br \/>\u9664\u6b64\u4e4b\u5916\uff0c\u5185\u5efa\u5728\u5185\u6838\u91cc\u7684\u7ec4\u4ef6\uff08\u6bd4\u5982memory map\u7b49\uff09\u4e5f\u80fd\u5bfc\u81f4panic\u3002<\/p>\n<p>\u56e0\u4e3ahard panic\u548csoft panic\u672c\u8d28\u4e0a\u4e0d\u540c\uff0c\u56e0\u6b64\u6211\u4eec\u5206\u522b\u8ba8\u8bba\u3002<br \/>hard panic<\/p>\n<p>\u4e00\u822c\u51fa\u73b0\u4e0b\u9762\u7684\u60c5\u51b5\uff0c\u5c31\u8ba4\u4e3a\u662f\u53d1\u751f\u4e86kernel panic:<\/p>\n<pre><code>\u673a\u5668\u5f7b\u5e95\u88ab\u9501\u5b9a\uff0c\u4e0d\u80fd\u4f7f\u7528\n\u6570\u5b57\u952e(Num Lock)\uff0c\u5927\u5199\u9501\u5b9a\u952e(Caps Lock)\uff0c\u6eda\u52a8\u9501\u5b9a\u952e(Scroll Lock)\u4e0d\u505c\u95ea\u70c1\u3002\n\u5982\u679c\u5728\u7ec8\u7aef\u4e0b\uff0c\u5e94\u8be5\u53ef\u4ee5\u770b\u5230\u5185\u6838dump\u51fa\u6765\u7684\u4fe1\u606f\uff08\u5305\u62ec\u4e00\u6bb5\u201dAieee\u201d\u4fe1\u606f\u6216\u8005\u201dOops\u201d\u4fe1\u606f\uff09\n\u548cWindows\u84dd\u5c4f\u76f8\u4f3c\n<\/code><\/pre>\n<p>\u539f\u56e0\uff1a<\/p>\n<p>\u5bf9\u4e8ehard panic\u800c\u8a00\uff0c\u6700\u5927\u7684\u53ef\u80fd\u6027\u662f\u9a71\u52a8\u6a21\u5757\u7684\u4e2d\u65ad\u5904\u7406(interrupt handler)\u5bfc\u81f4\u7684\uff0c\u4e00\u822c\u662f\u56e0\u4e3a\u9a71\u52a8\u6a21\u5757\u5728\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u4e2d\u8bbf\u95ee\u4e00\u4e2a\u7a7a\u6307\u9488(null pointre)\u3002\u4e00\u65e6\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\uff0c\u9a71\u52a8\u6a21\u5757\u5c31\u65e0\u6cd5\u5904\u7406\u65b0\u7684\u4e2d\u65ad\u8bf7\u6c42\uff0c\u6700\u7ec8\u5bfc\u81f4\u7cfb\u7edf\u5d29\u6e83\u3002<\/p>\n<p>\u4fe1\u606f\u6536\u96c6<br \/>\u6839\u636epanic\u7684\u72b6\u6001\u4e0d\u540c\uff0c\u5185\u6838\u5c06\u8bb0\u5f55\u6240\u6709\u5728\u7cfb\u7edf\u9501\u5b9a\u4e4b\u524d\u7684\u4fe1\u606f\u3002\u56e0\u4e3akenrel panic\u662f\u4e00\u79cd\u5f88\u4e25\u91cd\u7684\u9519\u8bef\uff0c\u4e0d\u80fd\u786e\u5b9a\u7cfb\u7edf\u80fd\u8bb0\u5f55\u591a\u5c11\u4fe1\u606f\uff0c\u4e0b\u9762\u662f\u4e00\u4e9b\u9700\u8981\u6536\u96c6\u7684\u5173\u952e\u4fe1\u606f\uff0c\u4ed6\u4eec\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u5c3d\u53ef\u80fd\u6536\u96c6\u5168\uff0c\u5f53\u7136\u5982\u679c\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\u5c31kernel panic\uff0c\u90a3\u5c31\u65e0\u6cd5\u53ea\u77e5\u9053\u80fd\u6536\u96c6\u5230\u591a\u5c11\u6709\u7528\u7684\u4fe1\u606f\u4e86\u3002<\/p>\n<pre><code>\/var\/log\/messages: \u5e78\u8fd0\u7684\u65f6\u5019\uff0c\u6574\u4e2akernel panic\u6808\u8ddf\u8e2a\u4fe1\u606f\u90fd\u80fd\u8bb0\u5f55\u5728\u8fd9\u91cc\u3002\n\u5e94\u7528\u7a0b\u5e8f\/\u5e93 \u65e5\u5fd7: \u53ef\u80fd\u53ef\u4ee5\u4ece\u8fd9\u4e9b\u65e5\u5fd7\u4fe1\u606f\u91cc\u80fd\u770b\u5230\u53d1\u751fpanic\u4e4b\u524d\u53d1\u751f\u4e86\u4ec0\u4e48\u3002\n\u5176\u4ed6\u53d1\u751fpanic\u4e4b\u524d\u7684\u4fe1\u606f\uff0c\u6216\u8005\u77e5\u9053\u5982\u4f55\u91cd\u73b0panic\u90a3\u4e00\u523b\u7684\u72b6\u6001\n\u7ec8\u7aef\u5c4f\u5e55dump\u4fe1\u606f\uff0c\u4e00\u822cOS\u88ab\u9501\u5b9a\u540e\uff0c\u590d\u5236\uff0c\u7c98\u8d34\u80af\u5b9a\u662f\u6ca1\u620f\u4e86\uff0c\u56e0\u6b64\u8fd9\u7c7b\u4fe1\u606f\uff0c\u4f60\u53ef\u4ee5\u9700\u8981\u501f\u52a9\u6570\u7801\u76f8\u673a\u6216\u8005\u539f\u59cb\u7684\u7eb8\u7b14\u5de5\u5177\u4e86\u3002\n<\/code><\/pre>\n<p>\u5982\u679ckernel dump\u4fe1\u606f\u65e2\u6ca1\u6709\u5728\/var\/log\/message\u91cc\uff0c\u4e5f\u6ca1\u6709\u5728\u5c4f\u5e55\u4e0a\uff0c\u90a3\u4e48\u5c1d\u8bd5\u4e0b\u9762\u7684\u65b9\u6cd5\u6765\u83b7\u53d6\uff08\u5f53\u7136\u662f\u5728\u8fd8\u6ca1\u6709\u6b7b\u673a\u7684\u60c5\u51b5\u4e0b\uff09\uff1a<\/p>\n<pre><code>\u5982\u679c\u5728\u56fe\u5f62\u754c\u9762\uff0c\u5207\u6362\u5230\u7ec8\u7aef\u754c\u9762\uff0cdump\u4fe1\u606f\u662f\u4e0d\u4f1a\u51fa\u73b0\u5728\u56fe\u5f62\u754c\u9762\u7684\uff0c\u751a\u81f3\u90fd\u4e0d\u4f1a\u5728\u56fe\u5f62\u6a21\u5f0f\u4e0b\u7684\u865a\u62df\u7ec8\u7aef\u91cc\u3002\n\u786e\u4fdd\u5c4f\u5e55\u4e0d\u9ed1\u5c4f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u51e0\u4e2a\u65b9\u6cd5\uff1a\n    setterm -blank 0\n    setterm -powerdown 0\n    setvesablank off\n\u4ece\u7ec8\u7aef\uff0c\u62f7\u8d1d\u5c4f\u5e55\u4fe1\u606f\uff08\u65b9\u6cd5\u89c1\u4e0a\uff09\n<\/code><\/pre>\n<p>\u5b8c\u6574\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u6392\u67e5\u65b9\u6cd5<\/p>\n<p>\u6808\u8ddf\u8e2a\u4fe1\u606f(stack trace)\u662f\u6392\u67e5kernel panic\u6700\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u8be5\u4fe1\u606f\u5982\u679c\u5728\/var\/log\/messages\u65e5\u5fd7\u91cc\u5f53\u7136\u6700\u597d\uff0c\u56e0\u4e3a\u53ef\u4ee5\u770b\u5230\u5168\u90e8\u7684\u4fe1\u606f\uff0c\u5982\u679c\u4ec5\u4ec5\u53ea\u662f\u5728\u5c4f\u5e55\u4e0a\uff0c\u90a3\u4e48\u6700\u4e0a\u9762\u7684\u4fe1\u606f\u53ef\u80fd\u56e0\u4e3a\u6eda\u5c4f\u6d88\u5931\u4e86\uff0c\u53ea\u5269\u4e0b\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u4e00\u90e8\u5206\u3002\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5b8c\u6574\u6808\u8ddf\u8e2a\u4fe1\u606f\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u53ef\u80fd\u6839\u636e\u8fd9\u4e9b\u5145\u5206\u7684\u4fe1\u606f\u6765\u5b9a\u4f4dpanic\u7684\u6839\u672c\u539f\u56e0\u3002\u8981\u786e\u8ba4\u662f\u5426\u6709\u4e00\u4e2a\u8db3\u591f\u7684\u6808\u8ddf\u8e2a\u4fe1\u606f\uff0c\u4f60\u53ea\u8981\u67e5\u627e\u5305\u542b\u201dEIP\u201d\u7684\u4e00\u884c\uff0c\u5b83\u663e\u793a\u4e86\u662f\u4ec0\u4e48\u51fd\u6570\u548c\u6a21\u5757\u8c03\u7528\u65f6\u5bfc\u81f4panic\u3002<\/p>\n<p>\u4f7f\u7528\u5185\u6838\u8c03\u8bd5\u5de5\u5177(kenrel debugger ,aka KDB)<\/p>\n<p>\u5982\u679c\u8ddf\u8e2a\u4fe1\u606f\u53ea\u6709\u4e00\u90e8\u5206\u4e14\u4e0d\u8db3\u4ee5\u7528\u6765\u5b9a\u4f4d\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u65f6\uff0ckernel debugger(KDB)\u5c31\u9700\u8981\u8bf7\u51fa\u6765\u4e86\u3002<br \/>KDB\u7f16\u8bd1\u5230\u5185\u6838\u91cc\uff0cpanic\u53d1\u751f\u65f6\uff0c\u4ed6\u5c06\u5185\u6838\u5f15\u5bfc\u5230\u4e00\u4e2ashell\u73af\u5883\u800c\u4e0d\u662f\u9501\u5b9a\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6536\u96c6\u4e00\u4e9b\u4e0epanic\u76f8\u5173\u7684\u4fe1\u606f\u4e86\uff0c\u8fd9\u5bf9\u6211\u4eec\u5b9a\u4f4d\u95ee\u9898\u7684\u6839\u672c\u539f\u56e0\u6709\u5f88\u5927\u7684\u5e2e\u52a9\u3002<\/p>\n<p>\u4f7f\u7528KDB\u9700\u8981\u6ce8\u610f\uff0c\u5185\u6838\u5fc5\u987b\u662f\u57fa\u672c\u6838\u5fc3\u7248\u672c\uff0c\u6bd4\u5982\u662f2.4.18\uff0c\u800c\u4e0d\u662f2.4.18-5\u8fd9\u6837\u5b50\u7684\uff0c\u56e0\u4e3aKDB\u4ec5\u5bf9\u57fa\u672c\u6838\u5fc3\u6709\u6548\u3002<br \/>soft panic<\/p>\n<p>\u75c7\u72b6\uff1a<\/p>\n<pre><code>\u6ca1\u6709hard panic\u4e25\u91cd\n\u901a\u5e38\u5bfc\u81f4\u6bb5\u9519\u8bef(segmentation fault)\n\u53ef\u4ee5\u770b\u5230\u4e00\u4e2aoops\u4fe1\u606f\uff0c\/var\/log\/messages\u91cc\u53ef\u4ee5\u641c\u7d22\u5230\u2019Oops\u2019\n\u673a\u5668\u7a0d\u5fae\u8fd8\u80fd\u7528\uff08\u4f46\u662f\u6536\u96c6\u4fe1\u606f\u540e\uff0c\u5e94\u8be5\u91cd\u542f\u7cfb\u7edf\uff09\n<\/code><\/pre>\n<p>\u539f\u56e0\uff1a<\/p>\n<p>\u51e1\u662f\u975e\u4e2d\u65ad\u5904\u7406\u5f15\u53d1\u7684\u6a21\u5757\u5d29\u6e83\u90fd\u5c06\u5bfc\u81f4soft panic\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9a71\u52a8\u672c\u8eab\u4f1a\u5d29\u6e83\uff0c\u4f46\u662f\u8fd8\u4e0d\u81f3\u4e8e\u8ba9\u7cfb\u7edf\u51fa\u73b0\u81f4\u547d\u6027\u5931\u8d25\uff0c\u56e0\u4e3a\u5b83\u6ca1\u6709\u9501\u5b9a\u4e2d\u65ad\u5904\u7406\u4f8b\u7a0b\u3002\u5bfc\u81f4hard panic\u7684\u539f\u56e0\u540c\u6837\u5bf9soft panic\u4e5f\u6709\u7528\uff08\u6bd4\u5982\u5728\u8fd0\u884c\u65f6\u8bbf\u95ee\u4e00\u4e2a\u7a7a\u6307\u9488)<\/p>\n<p>\u4fe1\u606f\u6536\u96c6\uff1a<br \/>\u5f53soft panic\u53d1\u751f\u65f6\uff0c\u5185\u6838\u5c06\u4ea7\u751f\u4e00\u4e2a\u5305\u542b\u5185\u6838\u7b26\u53f7(kernel symbols)\u4fe1\u606f\u7684dump\u6570\u636e\uff0c\u8fd9\u4e2a\u5c06\u8bb0\u5f55\u5728\/var\/log\/messages\u91cc\u3002\u4e3a\u4e86\u5f00\u59cb\u6392\u67e5\u6545\u969c\uff0c\u53ef\u4ee5\u4f7f\u7528ksymoops\u5de5\u5177\u6765\u628a\u5185\u6838\u7b26\u53f7\u4fe1\u606f\u8f6c\u6210\u6709\u610f\u4e49\u7684\u6570\u636e\u3002<\/p>\n<p>\u4e3a\u4e86\u751f\u6210ksymoops\u6587\u4ef6,\u9700\u8981\uff1a<\/p>\n<pre><code>\u4ece\/var\/log\/messages\u91cc\u627e\u5230\u7684\u5806\u6808\u8ddf\u8e2a\u6587\u672c\u4fe1\u606f\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002\u786e\u4fdd\u5220\u9664\u4e86\u65f6\u95f4\u6233(timestamp)\uff0c\u5426\u5219ksymoops\u4f1a\u5931\u8d25\u3002\n\u8fd0\u884cksymoops\u7a0b\u5e8f\uff08\u5982\u679c\u6ca1\u6709\uff0c\u8bf7\u5b89\u88c5\uff09\n\u8be6\u7ec6\u7684ksymoops\u6267\u884c\u7528\u6cd5\uff0c\u53ef\u4ee5\u53c2\u8003ksymoops(8)\u624b\u518c\u3002\n<\/code><\/pre>\n<p>Kernel panic\u5b9e\u4f8b\uff1a<\/p>\n<p>\u4eca\u5929\u5c31\u9047\u5230 \u4e00\u4e2a\u5ba2\u6237\u673a\u5668\u5185\u6838\u62a5\u9519\uff1a\u201cKernel panic-not syncing fatal exception\u201d<\/p>\n<p>\u91cd\u542f\u540e\u6b63\u5e38\uff0c\u51e0\u4e2a\u5c0f\u65f6\u540e\u51fa\u73b0\u540c\u6837\u62a5\u9519\uff0c\u7cfb\u7edfdown\u4e86\uff0c\u6709\u65f6\u91cd\u542f\u540e\u53ef\u6062\u590d\u6709\u65f6\u91cd\u542f\u540e\u4ecd\u7136\u62a5\u540c\u6837\u7684\u9519\u8bef\u3002<\/p>\n<p>\u6211\u5148\u6765\u89e3\u91ca\u4e00\u4e0b\u4ec0\u4e48\u662ffatal exception?<\/p>\n<p>\u201c\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u8868\u793a\u4e00\u79cd\u4f8b\u5916\u60c5\u51b5\uff0c\u8fd9\u79cd\u60c5\u51b5\u8981\u6c42\u5bfc\u81f4\u5176\u53d1\u751f\u7684\u7a0b\u5e8f\u5173\u95ed\u3002\u901a\u5e38\uff0c\u5f02\u5e38\uff08exception\uff09\u53ef\u80fd\u662f\u4efb\u4f55\u610f\u60f3\u4e0d\u5230\u7684\u60c5\u51b5\uff08\u5b83\u4e0d\u4ec5\u4ec5\u5305\u62ec\u7a0b\u5e8f\u9519\u8bef\uff09\u3002\u81f4\u547d\u5f02\u5e38\u7b80\u5355\u5730\u8bf4\u5c31\u662f\u5f02\u5e38\u4e0d\u80fd\u88ab\u59a5\u5584\u5904\u7406\u4ee5\u81f3\u4e8e\u7a0b\u5e8f\u4e0d\u80fd\u7ee7\u7eed\u8fd0\u884c\u3002<\/p>\n<p>\u8f6f\u4ef6\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7\u51e0\u4e2a\u4e0d\u540c\u7684\u4ee3\u7801\u5c42\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u53ca\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u76f8\u8054\u7cfb\u3002\u5f53\u5f02\u5e38\uff08exception\uff09\u5728\u67d0\u4e2a\u4ee3\u7801\u5c42\u53d1\u751f\u65f6\uff0c\u4e3a\u4e86\u67e5\u627e\u6240\u6709\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\uff0c\u5404\u4e2a\u4ee3\u7801\u5c42\u90fd\u4f1a\u5c06\u8fd9\u4e2a\u5f02\u5e38\u53d1\u9001\u7ed9\u4e0b\u4e00\u5c42\uff0c\u8fd9\u6837\u5c31\u80fd\u591f\u5904\u7406\u8fd9\u79cd\u5f02\u5e38\u3002\u5982\u679c\u5728\u6240\u6709\u5c42\u90fd\u6ca1\u6709\u8fd9\u79cd\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\uff0c\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u9519\u8bef\u4fe1\u606f\u5c31\u4f1a\u7531\u64cd\u4f5c\u7cfb\u7edf\u663e\u793a\u51fa\u6765\u3002\u8fd9\u4e2a\u4fe1\u606f\u53ef\u80fd\u8fd8\u5305\u542b\u4e00\u4e9b\u5173\u4e8e\u8be5\u81f4\u547d\u5f02\u5e38\u9519\u8bef\u53d1\u751f\u4f4d\u7f6e\u7684\u79d8\u5bc6\u4fe1\u606f\uff08\u6bd4\u5982\u5728\u7a0b\u5e8f\u5b58\u50a8\u8303\u56f4\u4e2d\u7684\u5341\u516d\u8fdb\u5236\u7684\u4f4d\u7f6e\uff09\u3002\u8fd9\u4e9b\u989d\u5916\u7684\u4fe1\u606f\u5bf9\u7528\u6237\u800c\u8a00\u6ca1\u6709\u4ec0\u4e48\u4ef7\u503c\uff0c\u4f46\u662f\u53ef\u4ee5\u5e2e\u52a9\u6280\u672f\u652f\u6301\u4eba\u5458\u6216\u5f00\u53d1\u4eba\u5458\u8c03\u8bd5\u7a0b\u5e8f\u3002<\/p>\n<p>\u5f53\u81f4\u547d\u5f02\u5e38\uff08fatal exception\uff09\u53d1\u751f\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u6ca1\u6709\u5176\u4ed6\u7684\u6c42\u52a9\u65b9\u5f0f\u53ea\u80fd\u5173\u95ed\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4e14\u5728\u6709\u4e9b\u60c5\u51b5\u4e0b\u662f\u5173\u95ed\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u3002\u5f53\u4f7f\u7528\u4e00\u79cd\u7279\u6b8a\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u5982\u679c\u53cd\u590d\u51fa\u73b0\u81f4\u547d\u5f02\u5e38\u9519\u8bef\u7684\u8bdd\uff0c\u5e94\u5c06\u8fd9\u4e2a\u95ee\u9898\u62a5\u544a\u7ed9\u8f6f\u4ef6\u4f9b\u5e94\u5546\u3002 \u201d<\/p>\n<p>\u800c\u4e14\u6b64\u65f6\u952e\u76d8\u65e0\u4efb\u4f55\u53cd\u5e94\uff0c\u5fc5\u7136\u4f7f\u7528reset\u952e\u786c\u91cd\u542f\u3002<\/p>\n<p>panic.c\u6e90\u6587\u4ef6\u6709\u4e2a\u65b9\u6cd5\uff0c\u5f53panic\u6302\u8d77\u540e\uff0c\u6307\u5b9a\u8d85\u65f6\u65f6\u95f4\uff0c\u53ef\u4ee5\u91cd\u65b0\u542f\u52a8\u673a\u5668<\/p>\n<p>\u65b9\u6cd5\uff1a<\/p>\n<h1>vi \/etc\/sysctl.conf \u6dfb\u52a0<\/h1>\n<p>kernel.panic = 20 #panic error\u4e2d\u81ea\u52a8\u91cd\u542f\uff0c\u7b49\u5f85timeout\u4e3a20\u79d2<br \/>kernel.sysrq=1 #\u6fc0\u6d3bMagic SysRq \u5426\u5219\uff0c\u952e\u76d8\u9f20\u6807\u6ca1\u6709\u54cd\u5e94<\/p>\n<p>\u6309\u4f4f [ALT]+[SysRq]+[COMMAND], \u8fd9\u91ccSysRq\u662fPrint SCR\u952e\uff0c\u800cCOMMAND\u6309\u4ee5\u4e0b\u6765\u89e3\u91ca\uff01<\/p>\n<p>b \u2013 \u7acb\u5373\u91cd\u542f<br \/>e \u2013 \u53d1\u9001SIGTERM\u7ed9init\u4e4b\u5916\u7684\u7cfb\u7edf\u8fdb\u7a0b<br \/>o \u2013 \u5173\u673a<br \/>s \u2013 sync\u540c\u6b65\u6240\u6709\u7684\u6587\u4ef6\u7cfb\u7edf<br \/>u \u2013 \u8bd5\u56fe\u91cd\u65b0\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p>\u914d\u7f6e\u4e00\u4e0b\u4ee5\u9632\u4e07\u4e00\u3002<\/p>\n<p>\u5f88\u591a\u7f51\u53cb\u5b89\u88c5linux\u51fa\u73b0\u201cKernel panic-not syncing fatal exception in interrupt\u201d\u662f\u7531\u4e8e\u7f51\u5361\u9a71\u52a8\u539f\u56e0\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5c06\u9009\u9879\u201cOnboard Lan\u201d\u7684\u9009\u9879\u201cDisabled\u201d,\u91cd\u542f\u4ece\u5149\u9a71\u542f\u52a8\u5373\u53ef\u3002<\/p>\n<p>\u7b49\u5b89\u88c5\u5b8c\u7cfb\u7edf\u4e4b\u540e\uff0c\u518d\u8fdb\u5165BIOS\u5c06\u201cOnboard Lan\u201d\u7684\u9009\u9879\u7ed9\u201cenable\u201d\uff0c\u4e0b\u8f7d\u76f8\u5e94\u7684\u7f51\u5361\u9a71\u52a8\u5b89\u88c5\u3002<\/p>\n<p>\u5982\u51fa\u73b0\u4ee5\u4e0b\u62a5\u9519\uff1a<\/p>\n<p>init() r8168 \u2026<\/p>\n<pre><code>      \u2026 \u2026\n\n     \u2026 \uff1aKernel panic: Fatal exception\n<\/code><\/pre>\n<p>r8168\u662f\u7f51\u5361\u578b\u53f7\u3002<\/p>\n<p>\u5728BIOS\u4e2d\u7981\u7528\u7f51\u5361\uff0c\u4ece\u5149\u9a71\u542f\u52a8\u5b89\u88c5\u7cfb\u7edf\u3002\u518d\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u7f51\u5361\u9a71\u52a8\u5b89\u88c5\u3002<\/p>\n<h1>tar vjxf r8168-8.014.00.tar.bz2<\/h1>\n<h1>make clean modules (as root or with sudo)<\/h1>\n<pre><code>  # make  install\n\n  # depmod  -a\n\n  # modprobe  r8168\n<\/code><\/pre>\n<p>\u5b89\u88c5\u597d\u7cfb\u7edf\u540ereboot\u8fdb\u5165BIOS\u628a\u7f51\u5361\u6253\u5f00\u3002<\/p>\n<p>\u53e6\u6709\u7f51\u53cb\u5728Kernel panic\u51fa\u9519\u4fe1\u606f\u4e2d\u770b\u5230\u201calc880\u201d\uff0c\u8fd9\u662f\u4e2a\u58f0\u5361\u7c7b\u578b\u3002\u5c1d\u8bd5\u7740\u5c06\u58f0\u5361\u5173\u95ed\uff0c\u91cd\u542f\u7cfb\u7edf\uff0c\u641e\u5b9a\u3002<\/p>\n<p>\u5b89\u88c5linux\u7cfb\u7edf\u9047\u5230\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u65e0\u6cd5\u542f\u52a8\u7cfb\u7edf\u51fa\u73b0Kernel panic-not syncing fatal exception\u3002\u5f88\u591a\u60c5\u51b5\u662f\u7531\u4e8e\u677f\u8f7d\u58f0\u5361\u3001\u7f51\u5361\u3001\u6216\u662fcpu \u8d85\u7ebf\u7a0b\u529f\u80fd\uff08Hyper-Threading \uff09\u5f15\u8d77\u7684\u3002\u8fd9\u7c7b\u95ee\u9898\u7684\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5148\u67e5\u770b\u9519\u8bef\u4ee3\u7801\u4e2d\u7684\u4fe1\u606f\uff0c\u627e\u5230\u9519\u8bef\u6240\u6307\u5411\u7684\u786c\u4ef6\uff0c\u5c06\u5176\u7981\u7528\u3002\u7cfb\u7edf\u542f\u52a8\u540e\uff0c\u5b89\u88c5\u597d\u76f8\u5e94\u7684\u9a71\u52a8\uff0c\u518d\u542f\u7528\u8be5\u786c\u4ef6\u5373\u53ef\u3002<br \/>\u53e6\u5916\u51fa\u73b0\u201cKernel Panic \u2014 not syncing: attempted to kill init\u201d\u548c\u201cKernel Panic \u2014 not syncing: attempted to kill idle task\u201d\u6709\u65f6\u628a\u5185\u5b58\u4e92\u76f8\u6362\u4e0b\u4f4d\u7f6e\u6216\u91cd\u65b0\u63d2\u62d4\u4e0b\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<p>\u672c\u6587\u81f3\u6b64\u7ed3\u675f\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5728\u8bc4\u8bba\u4e2d\u4ea4\u6d41\u60a8\u7684\u770b\u6cd5\u548c\u7ecf\u5386\u3002<\/p>\n<p><!-- This document was created with MarkdownPad, the Markdown editor for Windows (http:\/\/markdownpad.com) --><\/p>\n<p>mysq\uff1a\u7edf\u8ba1\u8868\u7684\u5927\u5c0f <\/p>\n<\/p>\n<p>SELECT TABLE_NAME, CONCAT(ROUND((data_length+index_length)\/(1024*1024*1024), 2), &#8216; G&#8217;) AS &#8216;total&#8217; ,<br \/>CONCAT(ROUND(data_length\/(1024*1024*1024.), 2), &#8216; G&#8217;) AS &#8216;Data Size&#8217;,<br \/>CONCAT(ROUND(index_length\/(1024*1024*1024), 2), &#8216; G&#8217;) AS &#8216;Index Size&#8217; ,<br \/>TABLE_ROWS<br \/>FROM `TABLES` WHERE TABLE_SCHEMA=&#8217;db_G2S_OnlineSchool&#8217; ORDER BY TABLE_ROWS DESC limit 10; <\/p>\n<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2015\/07\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2015\/07\/image_thumb1.png\" width=\"244\" height=\"85\"><\/a><\/p>\n<\/p>\n<p>\n<p>rsync\u4f20\u8f93\u5b8c\u4e4b\u540e\u7684\u6587\u4ef6\u7684\u6743\u9650\u5168\u90e8\u8bbe\u7f6e\u4e3a755<\/p>\n<p>\u5728\/etc\/rsyncd.conf \u6dfb\u52a0\u4e2aincoming chmod = Du=rwx,Dog=rx,Fu=rwx,Fgo=rx\u5373\u53ef<\/p>\n<p>\u8fd9\u6837\u65e0\u8bba\u6e90\u7684\u6587\u4ef6\u7684\u6743\u9650\u662f\u4ec0\u4e48\u6837\u5b50\uff0c\u540c\u6b65\u5b8c\u4e4b\u540e\u7684\u6743\u9650\u90fd\u53d8\u6210\u4e86755\u7684\u6743\u9650\u3002incoming chmod = a=r,u+w,D+x \u8fd9\u6837\u5c31\u53d8\u6210 644. \u4e0d\u8fc7\u5728\u6267\u884c\u7684\u65f6\u5019\u3002rsync\u7684\u6743\u9650\u5e94\u8be5\u53bb\u6389p\u3002\u5426\u5219\u6743\u9650\u4e0d\u4f1a\u6539\u53d8\u3002<\/p><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-2992","post","type-post","status-publish","format-standard","hentry","category-5","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/2992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2992"}],"version-history":[{"count":4,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/2992\/revisions"}],"predecessor-version":[{"id":4674,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/2992\/revisions\/4674"}],"wp:attachment":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}