{"id":4072,"date":"2021-02-11T11:19:00","date_gmt":"2021-02-11T02:19:00","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=4072"},"modified":"2024-01-06T11:02:29","modified_gmt":"2024-01-06T02:02:29","slug":"systemd%e3%81%a7target%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/4072","title":{"rendered":"Systemd\u3067Target\u3092\u5207\u308a\u66ff\u3048\u308b\uff01\uff08systemctl\uff09"},"content":{"rendered":"<p>Systemd\u3067target\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002target\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u3067\u3001\u8d77\u52d5\u3057\u3066\u3044\u308bUnit\u3092\u5236\u5fa1\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u72b6\u614b\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u78ba\u8a8d<\/h2>\n<p>\u300c\/lib\/systemd\/system\u300d\u3067\u3001\u672b\u5c3e\u304ctaget\u3068\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u304c\u30b7\u30b9\u30c6\u30e0\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ls -l \/lib\/systemd\/system\r\n<\/pre>\n<p>\u30e6\u30fc\u30b6\u3067\u5b9a\u7fa9\u3059\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u3001\u300c\/etc\/systemd\/system\u300d\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ls -l \/etc\/systemd\/system\r\n<\/pre>\n<h2>\u57fa\u672c\u7684\u306a\u30bf\u30fc\u30b2\u30c3\u30c8<\/h2>\n<p>\u901a\u5e38\u4f7f\u7528\u3059\u308b\u57fa\u672c\u7684\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>multi-user.target\uff1aGUI\u3092\u8d77\u52d5\u3057\u307e\u305b\u3093\u3002\uff08\u30b5\u30fc\u30d0\u3067\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\uff09<\/li>\n<li>graphical.target\uff1aGUI\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\uff08\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\uff09<\/li>\n<li>rescue.target\uff1a\u30c8\u30e9\u30d6\u30eb\u6642\u306e\u5bfe\u5fdc\u7528\u3067\u6700\u5c0f\u9650\u306eUnit\u306e\u307f\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>poweroff.target\uff1a\u96fb\u6e90\u3092OFF\u3057\u307e\u3059\u3002<\/li>\n<li>reboot.target\uff1a\u30b7\u30b9\u30c6\u30e0\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>halt.target\uff1a\u30b7\u30b9\u30c6\u30e0\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\u96fb\u6e90OFF\u306f\u3057\u307e\u305b\u3093\u3002<\/li>\n<li>suspend.target\uff1a\u30b5\u30b9\u30da\u30f3\u30c9\u3057\u307e\u3059\u3002<\/li>\n<li>hibernate.target\uff1a\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d0\u30cd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/li>\n<li>hybrid-sleep.target\uff1a\u30b7\u30b9\u30c6\u30e0\u3092\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30b9\u30ea\u30fc\u30d7\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u8d77\u52d5\u6642\u306e\u72b6\u614b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u306f\u3001\u300cgraphical.target\u300d\u306b\u306a\u3063\u3066\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl get-default\r\ngraphical.target\r\n<\/pre>\n<h2>\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5207\u308a\u66ff\u3048\u308b\u3002<\/h2>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002GUI\u3092\u505c\u6b62\u3059\u308b\u305f\u3081\u3001multi-user.target\u306b\u7740\u66ff\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl isolate multi-user.target\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068GUI\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl isolate graphical.target\r\n<\/pre>\n<p>\u30c8\u30e9\u30d6\u30eb\u304c\u8d77\u304d\u305f\u3068\u304d\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ec\u30b9\u30ad\u30e5\u30fc\u30e2\u30fc\u30c9\u306b\u5909\u66f4\u3057\u3066\u969c\u5bb3\u5bfe\u5fdc\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl isolate rescue.target\r\n<\/pre>\n<h2>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5909\u66f4\u3059\u308b\u3002<\/h2>\n<p>GUI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u304c\u3001\u30b5\u30fc\u30d0\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u305f\u3081\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u300cgraphical.target\u300d\u304b\u3089\u300cmulti-user.taget\u300d\u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl set-default multi-user.target\r\nRemoved \/etc\/systemd\/system\/default.target.\r\nCreated symlink \/etc\/systemd\/system\/default.target \u2192 \/usr\/lib\/systemd\/system\/multi-user.target.\r\n<\/pre>\n<p>\u518d\u8d77\u52d5\u3057\u3066\u3001multi-user.target\u3067\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Systemd\u3067\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u5229\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u614b\u3092\u5b9a\u7fa9\u3057\u3066\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u96fb\u6e90\u5236\u5fa1\u306b\u3064\u3044\u3066\u3082\u30bf\u30fc\u30b2\u30c3\u30c8\u3067\u5236\u5fa1\u3057\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8621\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092Systemd\u3067\u5236\u5fa1\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092Systemd\u3067\u5236\u5fa1\u3059\u308b\uff01<\/div><div class=\"substr\">Systemd\u3067Linux\u306e\u8d77\u52d5\u3068\u505c\u6b62\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/48CJTzL\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41cVV6Rkp2L._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Systemd\u3067target\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002target\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u3067\u3001\u8d77\u52d5\u3057\u3066\u3044\u308bUnit\u3092\u5236\u5fa1\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u72b6\u614b\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[125],"tags":[282,285,283,284],"class_list":["post-4072","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-systemd","tag-linux","tag-systemctl","tag-systemd","tag-target"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=4072"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4072\/revisions"}],"predecessor-version":[{"id":15728,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/4072\/revisions\/15728"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=4072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=4072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=4072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}