{"id":5351,"date":"2015-06-03T06:11:52","date_gmt":"2015-06-02T21:11:52","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=5351"},"modified":"2020-02-23T20:23:12","modified_gmt":"2020-02-23T11:23:12","slug":"debian8%e3%82%92cli%e3%81%a7%e7%ab%8b%e3%81%a1%e4%b8%8a%e3%81%92%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%80%81target%ef%bc%88%e6%97%a7%e3%83%a9%e3%83%b3%e3%83%ac%e3%83%99%e3%83%ab%e3%81%ae%e5%bd%b9","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5351","title":{"rendered":"Debian8\u3092CLI\u3067\u7acb\u3061\u4e0a\u3052\u305f\u3044\u306e\u3067\u3001Target\uff08\u65e7\u30e9\u30f3\u30ec\u30d9\u30eb\u306e\u5f79\u5272\u306e\u3068\u3053\uff09\u3092systemctl\u3067\u5909\u66f4\u3057\u305f"},"content":{"rendered":"<p>\u30da\u30cd\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u30c6\u30b9\u30c8\u306b\u4f7f\u3063\u3066\u3044\u308bDebian8\u306a\u306e\u3067\u3059\u304c\u3001OpenVAS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307b\u3084\u307b\u3084\u306e\u6642\u306f\u4f7f\u3063\u3066\u3044\u305fGUI\u3067\u3059\u304c\u3001\u6c17\u3065\u3044\u305f\u3089Cli\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u4e8b\u306b\u6c17\u3065\u3044\u305f\u306e\u3067\u3001\u305d\u3082\u305d\u3082\u3042\u307e\u308a\u30ea\u30bd\u30fc\u30b9\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u306a\u3044\u30b2\u30b9\u30c8OS\u306a\u306e\u3067\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u308f\u305b\u305f\u304f\u306a\u3044\uff01\u3063\u3066\u3053\u3068\u3067\u3001Cli\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Gdm\u306f\u5fc5\u8981\u306a\u6642\u3060\u3051\u301c\u3067\u3059\u306d\u301c\u3002<\/p>\n<p>\u73fe\u5728\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@deb:# systemctl get-default\r\ngraphical.target\r\n\r\n<\/pre>\n<p>GraphicalTarget\u3068\u51fa\u307e\u3057\u305f\uff01Systemd\u306b\u306frunlevel\u3068\u3044\u3046\u6982\u5ff5\u306f\u306a\u304fTarget\u3063\u3066\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3063\u3066\u306e\u304c\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u305f\u3089\u305d\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\nResque\u3063\u3066\u306e\u306f\u30ec\u30b9\u30ad\u30e5\u30fc\u30e2\u30fc\u30c9\u3002\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306bTarget\u306f\u3044\u304f\u3089\u3067\u3082\u4f5c\u308c\u308b\u305d\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@deb:~# ls -l \/lib\/systemd\/system\/runlevel&#x5B;0-6]*target\r\nlrwxrwxrwx 1 root root 15  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel0.target -&gt; poweroff.target\r\nlrwxrwxrwx 1 root root 13  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel1.target -&gt; rescue.target\r\nlrwxrwxrwx 1 root root 17  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel2.target -&gt; multi-user.target\r\nlrwxrwxrwx 1 root root 17  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel3.target -&gt; multi-user.target\r\nlrwxrwxrwx 1 root root 17  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel4.target -&gt; multi-user.target\r\nlrwxrwxrwx 1 root root 16  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel5.target -&gt; graphical.target\r\nlrwxrwxrwx 1 root root 13  4\u6708 17 00:53 \/lib\/systemd\/system\/runlevel6.target -&gt; reboot.target\r\n\r\n<\/pre>\n<p>get \u3068\u6765\u305f\u3089 set \u3068\u6765\u308b\u306e\u304c\u5b9a\u77f3\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@deb:~# systemctl set-default multi-user.target\r\nCreated symlink from \/etc\/systemd\/system\/default.target to \/lib\/systemd\/system\/multi-user.target.\r\n\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@deb:~# systemctl get-default\r\nmulti-user.target\r\n\r\n<\/pre>\n<p>\u30ea\u30d6\u30fc\u30c8\u3059\u308c\u3070Cli\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u51fa\u305f\u3089\u6210\u529f\u3067\u3059\u3002\u3068\u8a00\u3046\u304b\u5931\u6557\u3057\u3066\u305f\u3089\u30a2\u30a6\u30c8\u3060\u3002<\/p>\n<p><span style=\"font-size: 16pt;\">Systemd\u306eOS\u8d77\u52d5\u6642\u306e\u6319\u52d5\u306b\u3064\u3044\u3066<\/span><\/p>\n<p>\u305b\u3063\u304b\u304f\u306a\u3093\u3067\u5c11\u3057\u8abf\u3079\u3066\u307f\u3088\u3046\u3002<\/p>\n<p>BIOS > \u30d6\u30fc\u30c8\u30ed\u30fc\u30c0 > Kernel > Systed<\/p>\n<p>\u3068\u3044\u3046\u6d41\u308c\u3067\u4ee5\u524d\u3068\u540c\u3058\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<br \/>\n\u3082\u3063\u3068\u3082\u5909\u308f\u3063\u305f\u3068\u3053\u308d\u306f\u5f93\u6765\u306eInit\u306f\u30e9\u30f3\u30ec\u30d9\u30eb\u306b\u3088\u3063\u3066\u305d\u308c\u305e\u308c\u306e\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u6d41\u308c\u3067\u3057\u305f\u304c\u3001Systemd\u304c\u8d77\u52d5\u3055\u308c\u308b\u3068\u3001\u3055\u304d\u307b\u3069\u8a2d\u5b9a\u3057\u305fDefaultTarget\u3092\u78ba\u8a8d\u3001Unit\u306e\u95a2\u4fc2\u3092\u89e3\u6790\u3057\u3066\u6700\u9069\u306a\u9806\u5e8f\u3067\u30d7\u30ed\u30bb\u30b9\u8d77\u52d5\u3084Mount\u3092\u4e26\u5217\u306b\u5b9f\u884c\u3059\u308b\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>Systemd\u3092\u5c11\u3057\u89e6\u308a\u3060\u3059\u3068\u3001Service restart httpd \u3068\u304b\u3084\u3063\u3061\u3083\u3046\u304b\u3089\u6c17\u3092\u3064\u3051\u3088\u3046\u3002<br \/>\n\u3084\u3089\u306a\u3044\uff1f<\/p>\n<p>\u305d\u3046\u304b\u3043(\uff9f\u2200\uff9f)\uff1b<\/p>\n<p>\u3053\u308c\u6b32\u3057\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u3066<\/p>\n<p><a href=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060301.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060301.jpg\" alt=\"2015060301\" width=\"391\" height=\"500\" class=\"alignnone size-full wp-image-5352\" srcset=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060301.jpg 391w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060301-235x300.jpg 235w\" sizes=\"auto, (max-width: 391px) 85vw, 391px\" \/><\/a><\/p>\n<p>\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u3053\u3063\u3061\u8cb7\u3063\u3061\u3083\u3063\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060302.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060302.jpg\" alt=\"2015060302\" width=\"300\" height=\"383\" class=\"alignnone size-full wp-image-5353\" srcset=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060302.jpg 300w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/06\/2015060302-235x300.jpg 235w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5351\" data-text=\"Debian8\u3092CLI\u3067\u7acb\u3061\u4e0a\u3052\u305f\u3044\u306e\u3067\u3001Target\uff08\u65e7\u30e9\u30f3\u30ec\u30d9\u30eb\u306e\u5f79\u5272\u306e\u3068\u3053\uff09\u3092systemctl\u3067\u5909\u66f4\u3057\u305f\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30da\u30cd\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u30c6\u30b9\u30c8\u306b\u4f7f\u3063\u3066\u3044\u308bDebian8\u306a\u306e\u3067\u3059\u304c\u3001OpenVAS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307b\u3084\u307b\u3084\u306e\u6642\u306f\u4f7f\u3063\u3066\u3044\u305fGUI\u3067\u3059\u304c\u3001\u6c17\u3065\u3044\u305f\u3089Cli\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u4e8b\u306b\u6c17\u3065\u3044\u305f\u306e\u3067\u3001\u305d\u3082\u305d\u3082\u3042\u307e\u308a\u30ea\u30bd\u30fc\u30b9\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u306a\u3044\u30b2\u30b9 &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5351\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Debian8\u3092CLI\u3067\u7acb\u3061\u4e0a\u3052\u305f\u3044\u306e\u3067\u3001Target\uff08\u65e7\u30e9\u30f3\u30ec\u30d9\u30eb\u306e\u5f79\u5272\u306e\u3068\u3053\uff09\u3092systemctl\u3067\u5909\u66f4\u3057\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5351","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5351"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5351\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}