{"id":562,"date":"2018-12-15T11:46:34","date_gmt":"2018-12-15T11:46:34","guid":{"rendered":"http:\/\/nyacom.net\/?p=562"},"modified":"2018-12-15T12:45:06","modified_gmt":"2018-12-15T12:45:06","slug":"%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%81%aelinux%e3%81%a7%e3%83%8f%e3%83%b3%e3%82%b0%e3%82%a2%e3%83%83%e3%83%97%e3%81%97%e3%81%9f%e6%99%82%e3%81%ab%e5%bc%b7%e5%88%b6%e7%9a%84%e3%81%ab%e3%83%9b","status":"publish","type":"post","link":"https:\/\/nyacom.net\/?p=562","title":{"rendered":"\u30ea\u30e2\u30fc\u30c8\u306eLinux\u3067\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3057\u305f\u6642\u306b\u5f37\u5236\u7684\u306b\u30db\u30b9\u30c8\u3092\u518d\u8d77\u52d5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u30ea\u30e2\u30fc\u30c8\u306eLinux\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u6642\u306b\uff0c\u30db\u30b9\u30c8\u304c\u4e0d\u5b89\u5b9a\u3067reboot\u3082shutdown\u3082\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u306b\u5f37\u5236\u7684\u306b\u30ea\u30e2\u30fc\u30c8\u306e\u30db\u30b9\u30c8\u3092\u518d\u8d77\u52d5\u3067\u304d\u308b\u3088\u3068\u3044\u3046\u304a\u8a71\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u304a\u4f7f\u3044\u306ePC\u306b\u306f\u300cSysRq\u300d\u3068\u523b\u5370\u3055\u308c\u3066\u3044\u308b\u8b0e\u306e\u30ad\u30fc\u304c\u6709\u308b\u3060\u308d\u3046\u304b\uff1f<\/p>\n\n\n\n<p>Windows\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u307b\u3068\u3093\u3069\u5f79\u306b\u7acb\u305f\u306a\u3044\u30ad\u30fc\u3067\u3042\u308b\u305f\u3081\uff0c\u5927\u62b5\u306fPrintScreen\u30ad\u30fc\u306b\u5272\u308a\u5f53\u3066\u3066\u3042\u3063\u305f\u308a\u3059\u308b\u306e\u3060\u304c\uff0cLinux\u306e\u5834\u5408\u306f\u7d50\u69cb\u5f79\u7acb\u3064\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>SysRq\u3068\u306f\u305d\u306e\u540d\u524d\u306e\u901a\u308a\u300cSystem Request\u300d\u30ad\u30fc\u306e\u7701\u7565\u3067\u3042\u308a\uff0c<a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88\">Wikipedia<\/a>\u306b\u3088\u308c\u3070\uff0cIBM\u306ePC\/AT\u898f\u683c\u30de\u30b7\u30f3\u3067\u5c0e\u5165\u3055\u308c\u305fOS\u3088\u308a\u4f4e\u30ec\u30d9\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u5272\u308a\u8fbc\u307f\u3092\u767a\u751f\u3055\u305b\u308b\u30ad\u30fc\u3067\u3042\u308b\u3002<br><\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\uff0cSysRq\u30ad\u30fc\u3092\u7528\u3044\u308b\u3053\u3068\u3067\uff0cOS\u304c\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3067\u3082\u30b7\u30b9\u30c6\u30e0\u306e\u518d\u8d77\u52d5\u7b49\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3060\u304c\uff0c\u3044\u305a\u308c\u306b\u305b\u3088\u4f7f\u7528\u983b\u5ea6\u306e\u554f\u984c\u3067\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u308b\u306e\u3067\u5099\u5fd8\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linux\u3067SysRq\u30ad\u30fc\u3092\u6709\u52b9\u5316\u3059\u308b<\/h2>\n\n\n\n<p>Linux\u3067SysRq\u30ad\u30fc\u3092\u6709\u52b9\u5316\u3059\u308b\u306b\u306f \/etc\/sysctl.conf \u306b<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>kernel.sysrq=1<\/p><\/blockquote>\n\n\n\n<p>\u3092\u8ffd\u52a0\u3057\uff0csysctl -p \u3068\u304b\u3067\u518d\u8aad\u8fbc\u3055\u305b\u308b\u3068\u8a2d\u5b9a\u3067\u304d\u308b\u3002<br><\/p>\n\n\n\n<p>\u8a2d\u5b9a\u3057\u305f\u3089\uff0cSysRq\u30ad\u30fc(*1)\u3068Enter\u3092\u540c\u6642\u306b\u62bc\u3059\u3053\u3068\u3067\u30d8\u30eb\u30d7\u304c\u51fa\u308b(*2)\u306f\u305a\u3067\u3042\u308b\u3002<br><br>*1 &#8230; \u3061\u306a\u307f\u306b\uff0c\u666e\u901a\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u306fSysRq\u306fAlt+PrtSc\u306b\u5272\u308a\u5f53\u305f\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3002\u3002<br>*2 &#8230; X11\u4e0a\u3067\u3084\u308b\u3068\u666e\u901a\u306b\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u304c\u8d77\u52d5\u3057\u3066\u3057\u307e\u3046\u306e\u3067\uff0c\u30d5\u30ec\u30fc\u30e0\u30d0\u30c3\u30d5\u30a1\u306e\u7aef\u672b\u306b\u5207\u308a\u66ff\u3048\u3066\u3084\u308a\u307e\u3057\u3087\u3046\u3002(Ctrl+Alt+F2\u7b49)<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\uff0cLinux\u306e\u5834\u5408\u306eSysRq\u30b3\u30de\u30f3\u30c9\u306e\u5168\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>Key<\/td><td>Behavior<\/td><\/tr><tr><td>0-9<\/td><td>\u30ed\u30b0\u30ec\u30d9\u30eb\u306e\u64cd\u4f5c<\/td><\/tr><tr><td>b<\/td><td>\u30b7\u30b9\u30c6\u30e0\u30ea\u30d6\u30fc\u30c8<\/td><\/tr><tr><td>c<\/td><td>\u30b7\u30b9\u30c6\u30e0\u30af\u30e9\u30c3\u30b7\u30e5\uff08\u5f37\u5236\u7684\u30ab\u30fc\u30cd\u30eb\u30d1\u30cb\u30c3\u30af\u3092\u8d77\u3053\u3059\uff09<\/td><\/tr><tr><td>e, i<\/td><td>init\u4ee5\u5916\u306e\u5168\u30d7\u30ed\u30bb\u30b9\u306bSIGTERM\u3092\u9001\u4fe1\u3059\u308b<\/td><\/tr><tr><td>k<\/td><td>\u4eee\u60f3\u7aef\u672b\u4e0a\u306e\u5168\u30d7\u30ed\u30bb\u30b9\u306bSAK\u3092\u5b9f\u884c\u3002<br>(\u8981\u3059\u308b\u306b\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u623b\u308b\u30cf\u30ba\uff1f)<br><\/td><\/tr><tr><td>m<\/td><td>\u30e1\u30e2\u30ea\u60c5\u5831\u8868\u793a<\/td><\/tr><tr><td>p<\/td><td>\u30ab\u30ec\u30f3\u30c8\u30d7\u30ed\u30bb\u30b9\u60c5\u5831\u306e\u8868\u793a<\/td><\/tr><tr><td>r<\/td><td>\u30ad\u30fc\u30dc\u30fc\u30c9\u306eraw\u30e2\u30fc\u30c9\u3092XLATE\u306b\u8a2d\u5b9a<\/td><\/tr><tr><td>s<\/td><td>\u30de\u30a6\u30f3\u30c8\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306esync<\/td><\/tr><tr><td>t<\/td><td>\u5168\u30d7\u30ed\u30bb\u30b9\u60c5\u5831\u306e\u8868\u793a<\/td><\/tr><tr><td>u<\/td><td>readonly\u3067\u5168\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u518d\u30de\u30a6\u30f3\u30c8<\/td><\/tr><tr><td>w<\/td><td>\u5168CPU\u306e\u30c8\u30ec\u30fc\u30b9\u30b3\u30fc\u30eb\u60c5\u5831\u3092\u8868\u793a<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\uff08\u5b9f\u969b\u3084\u3063\u3066\u307f\u308b\u3068\u3061\u3083\u3093\u3068\u52d5\u304f\u3082\u306e\u3082\u3042\u308b\u304c\uff0c\u5b9f\u969b\u306b\u306f\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u4e8b\u3092\u793a\u3059\u30ab\u30fc\u30cd\u30eb\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u308b\u3060\u3051\u3067\uff0c\u591a\u5206\u306a\u3093\u304b\u30ab\u30fc\u30cd\u30eb\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6709\u52b9\u5316\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u52b9\u304b\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002\u3002\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ssh\u304b\u3089\u4f7f\u3046<\/h2>\n\n\n\n<p>\u3082\u3061\u308d\u3093\u4e0a\u8a18\u306e\u65b9\u6cd5\u306f\uff0c\u30db\u30b9\u30c8\u306b\u30ed\u30fc\u30ab\u30eb\u3067\u7e4b\u304c\u3063\u3066\u3044\u308b\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u304b\u3067\u306e\u307f\u6709\u52b9\u3067\u3042\u308a\uff0cssh\u7b49\u3067\u7e4b\u304c\u3063\u305f\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u306e\u5834\u5408\u306f&nbsp;\/proc\/sysrq-trigger \u306b\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092echo\u3067\u66f8\u304d\u8fbc\u3093\u3067\u3084\u308c\u3070\u826f\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\uff0c echo b &gt; \/proc\/sysrq-trigger \u3059\u308b\u3068\u9593\u9aea\u5165\u308c\u305a\u306b\u30db\u30b9\u30c8\u304c\u30ea\u30d6\u30fc\u30c8\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\uff0c\u3042\u304f\u307e\u3067\u3053\u308c\u306f\u96fb\u6e90\u3092\u3044\u304d\u306a\u308a\u843d\u3068\u3059\u306e\u3068\u4f55\u3089\u5909\u308f\u3089\u306a\u3044\u306e\u3067\uff0c\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30c7\u30a3\u30b9\u30af\u3092\u540c\u671f\u3057\u3066\u304b\u3089\u518d\u8d77\u52d5\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>$ echo s &gt; \/proc\/sysrq-trigger (\u30c7\u30a3\u30b9\u30af\u3092sync(\u540c\u671f)\u3059\u308b)<br>$ echo u &gt; \/proc\/sysrq-trigger (\u30c7\u30a3\u30b9\u30af\u3092readonly\u3067\u518d\u30de\u30a6\u30f3\u30c8\u3059\u308b)<br>$ echo b &gt; \/proc\/sysrq-trigger (reboot)<\/p><\/blockquote>\n\n\n\n<p>\u3042\u3068\uff0csysctl.conf\u3067kernel.sysrq=1\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u826f\u3044\u306e\u3060\u304c\uff0c\u4e00\u6642\u7684\u306b\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306fecho 1 &gt; \/proc\/sys\/kernel\/sysrq \u3067\u3082\u826f\u3044\u3089\u3057\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ea\u30e2\u30fc\u30c8\u306eLinux\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u6642\u306b\uff0c\u30db\u30b9\u30c8\u304c\u4e0d\u5b89\u5b9a\u3067reboot\u3082shutdown\u3082\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u306b\u5f37\u5236\u7684\u306b\u30ea\u30e2\u30fc\u30c8\u306e\u30db\u30b9\u30c8\u3092\u518d\u8d77\u52d5\u3067\u304d\u308b\u3088\u3068\u3044\u3046\u304a\u8a71\u3002<\/p>\n","protected":false},"author":1,"featured_media":252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[18],"class_list":["post-562","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/nyacom.net\/wp-content\/uploads\/2015\/08\/tux.png?fit=512%2C594&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6V68f-94","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562"}],"version-history":[{"count":6,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions\/573"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nyacom.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}