{"id":333,"date":"2018-10-19T23:06:46","date_gmt":"2018-10-19T14:06:46","guid":{"rendered":"https:\/\/itport.cloud\/?p=333"},"modified":"2019-01-07T13:20:32","modified_gmt":"2019-01-07T04:20:32","slug":"post-333","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=333","title":{"rendered":"\uff08\u7b2c1\u56de\uff09Linux\u306bWordPress\u3092\u69cb\u7bc9\u3010CentOS7\u3011"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h1>\n\n\n\n<p><a href=\"#0\">\u306f\u3058\u3081\u306b<\/a><br><a href=\"#1\">CentOS7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><br><a href=\"#2\">SELinux\u306e\u8a2d\u5b9a<\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"0\">\u306f\u3058\u3081\u306b<\/h1>\n\n\n\n<p>\u6628\u4eca\u306f\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u7b49\u3067\u5bb9\u6613\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u53ef\u80fd\u306aWordPress\u3002<\/p>\n\n\n\n<p>\u3044\u3056\u3001\u30aa\u30f3\u30d7\u30ec\u74b0\u5883\u3067\u69cb\u7bc9\u3059\u308b\u969b\u306b\u3001\u300c\u3042\u308c\u3001\u3001\u3069\u3046\u3084\u308b\u3093\u3060\u3063\u3051\u3001\u3001\u300d\u3068\u3044\u3063\u305f\u3053\u3068\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b<br>\u4eca\u56de\u306f\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u74b0\u5883\u3067CentOS\u3092\u7acb\u3061\u4e0a\u3052\u3066WordPress\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"1\">CentOS7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n\n\n\n<p>\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bCentOS\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u30ab\u30fc\u30cd\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>OS\u30d0\u30fc\u30b8\u30e7\u30f3<\/td><td>3.10.0-862.el7.x86_64<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>Hyper-V\u4e0a\u306b\u4eee\u60f3\u74b0\u5883\u3067Cent-OS7\u3092\u69cb\u7bc9\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306fCentOS\u306e<a href=\"https:\/\/www.centos.org\/download\/\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3088\u308aiso\u5f62\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-1024x553.png\" alt=\"\" class=\"wp-image-394\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-1024x553.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-300x162.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-768x415.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-450x243.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos-900x486.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos.png 1206w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"200\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-300x200.png\" alt=\"\" class=\"wp-image-395\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-300x200.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-768x512.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-1024x683.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-450x300.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download-900x600.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/centos_download.png 1248w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u300cDVD ISO\u300d\u30dc\u30bf\u30f3\u304b\u3089CentOS7\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u3078\u79fb\u52d5\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u300cCentOS-7-x86_64-DVD-1804.iso\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br><\/p>\n\n\n\n<p>\u904e\u53bb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001<a href=\"http:\/\/vault.centos.org\/\" target=\"_blank\" rel=\"noopener\">http:\/\/vault.centos.org\/<\/a> \u304b\u3089iso\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u3059\u3002\uff082018\u5e7410\u6708\u73fe\u5728\uff09<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3055\u3063\u305d\u304fHyper-V\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<br>\u203b Hyper-V\u7b2c\uff12\u4e16\u4ee3\u3067Linux\u3092\u8d77\u52d5\u3059\u308b\u5834\u5408\u3001UEFI\u30bb\u30ad\u30e5\u30a2\u30d6\u30fc\u30c8\u3092\u7121\u52b9\u306b\u3057\u306a\u3044\u3068\u8d77\u52d5\u3057\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>Hyper-V\u304b\u3089CentOS7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u3092\u8d77\u52d5\u3057\u305f\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"267\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-01-300x267.png\" alt=\"\" class=\"wp-image-340\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-01-300x267.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-01-359x320.png 359w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-01.png 647w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u300cTab\u300d\u30ad\u30fc\u3092\u62bc\u3059\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br>\u300c\u30c6\u30ad\u30b9\u30c8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u5f62\u5f0f\u306b\u3057\u305f\u5834\u5408\u3001CUI\u3067\u5bfe\u8a71\u5f0f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u9032\u307f\u307e\u3059\u3002<br>\uff08\u305d\u306e\u307b\u304b\u306b\u89e3\u50cf\u5ea6\u5909\u66f4\u3084USB\u30b5\u30dd\u30fc\u30c8\u3001CPU\u81ea\u5df1\u8a3a\u65ad\u306e\u7121\u52b9\u5316\u306a\u3069\u53ef\u80fd\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u4eca\u56de\u306fGUI\u5f62\u5f0f\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u306e\u3067\u3001\u4f55\u3082\u5165\u529b\u305b\u305a\u306b\u5f85\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5f85\u3063\u3066\u3044\u308b\u3068\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u753b\u9762\u3078\u9077\u79fb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"248\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-300x248.png\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-300x248.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-768x634.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-1024x845.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-388x320.png 388w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02-775x640.png 775w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-02.png 1158w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u3092\u65e5\u672c\u8a9e\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u8a2d\u5b9a\u3067\u4ee5\u4e0b\u306e\uff12\u3064\u3092\u4e8b\u524d\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148<\/li><li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30db\u30b9\u30c8\u540d<\/li><\/ul>\n\n\n\n<p>\u307e\u305a\u3001\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u300d\u306f\u300c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u69cb\u6210\u300d\u3092\u300c\u81ea\u52d5\u69cb\u6210\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u69cb\u6210\u300d\uff08\u521d\u671f\u5024\uff09\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<br>\u7d9a\u3044\u3066\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30db\u30b9\u30c8\u540d\u300d\u306f\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>DHCP\u3060\u3068\u4e0d\u4fbf\u306a\u306e\u3067\u3001\u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>Eth0 IPv4\u306e\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0<\/td><td>IP\u30a2\u30c9\u30ec\u30b9<\/td><td>192.168.x.x \uff08\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u9069\u5b9c\u8a2d\u5b9a\uff09<\/td><\/tr><tr><td>\u30cd\u30c3\u30c8\u30de\u30b9\u30af<\/td><td>24 \uff08255.255.255.0\uff09<\/td><\/tr><tr><td>\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4<\/td><td>192.168.x.x&nbsp;\uff08\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u9069\u5b9c\u8a2d\u5b9a\uff09<\/td><\/tr><tr><td>DNS\u30b5\u30fc\u30d0\u30fc<\/td><td>8.8.8.8 \uff08\u4eca\u56de\u306fGoogle\u30d1\u30d6\u30ea\u30c3\u30afDNS\u3092\u6307\u5b9a\uff09<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u203b \u8a2d\u5b9a\u5185\u5bb9\u306f\u5f8c\u3067\u78ba\u8a8d\u3059\u308b\u3068 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \u306b\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\uff12\u3064\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u958b\u59cb\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"248\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-300x248.png\" alt=\"\" class=\"wp-image-349\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-300x248.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-768x636.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-1024x847.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-387x320.png 387w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03-773x640.png 773w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-03.png 1160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4f55\u5206\u304b\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u305d\u306e\u9593\u306b\u300croot\u300d\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"248\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-300x248.png\" alt=\"\" class=\"wp-image-354\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-300x248.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-768x636.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-1024x847.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-387x320.png 387w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04-773x640.png 773w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-04.png 1160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u306e\u3067\u518d\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"59\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2-300x59.png\" alt=\"\" class=\"wp-image-355\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2-300x59.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2-768x150.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2-450x88.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-05-2.png 894w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u300c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u9078\u629e\u300d\u3067\u6700\u5c0f\u9650\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u521d\u671f\u5024\uff09\u3092\u9078\u629e\u3057\u305f\u306e\u3067\u518d\u8d77\u52d5\u304c\u5b8c\u4e86\u3059\u308b\u3068CUI\u3067\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u300croot\u300d\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"133\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-300x133.png\" alt=\"\" class=\"wp-image-360\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-300x133.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-768x340.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-1024x454.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-450x199.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06-900x399.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2018\/10\/w-06.png 1160w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\u3001CentOS7\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u6a19\u6e96\u3067\u300cxfs\u300d\u3068\u306a\u308b<br>CentOS6\u307e\u3067\u306f\u300cext4\u300d\u304c\u6a19\u6e96\u3060\u3063\u305f\u305f\u3081\u3001\u300cext4\u300d\u306b\u3059\u308b\u5834\u5408\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u300c\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u300d\u3067\u5909\u66f4\u3059\u308b\u3068\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# df -T\n\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9            \u30bf\u30a4\u30d7   1K-\u30d6\u30ed\u30c3\u30af    \u4f7f\u7528   \u4f7f\u7528\u53ef \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e\n\/dev\/mapper\/centos-root xfs         52403200 1004360 51398840    2% \/\ndevtmpfs                devtmpfs      491548       0   491548    0% \/dev\ntmpfs                   tmpfs         503564       0   503564    0% \/dev\/shm\ntmpfs                   tmpfs         503564    6764   496800    2% \/run\ntmpfs                   tmpfs         503564       0   503564    0% \/sys\/fs\/cgroup\n\/dev\/mapper\/centos-home xfs         77548548   32944 77515604    1% \/home\n\/dev\/sda1               xfs          1038336  131960   906376   13% \/boot\ntmpfs                   tmpfs         100716       0   100716    0% \/run\/user\/0\n<\/pre><\/div>\n\n\n<h1 class=\"wp-block-heading\" id=\"2\">SELinux\u306e\u8a2d\u5b9a<\/h1>\n\n\n\n<p>\u6b21\u306f\u3001SELinux\u306e\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SELinux \u73fe\u5728\u306e\u72b6\u6cc1\u78ba\u8a8d<\/li><li>SELinux \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/li><li>SELinux \u8a2d\u5b9a\u306e\u5909\u66f4<\/li><\/ul>\n\n\n\n<p>SELinux\u3068\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u95a2\u9023\u306eLinux\u30ab\u30fc\u30cd\u30eb\u5236\u5fa1\u6a5f\u80fd\u3067\u3059\u3002<br>\u8a2d\u5b9a\u3057\u305f\u30dd\u30ea\u30b7\u30fc\u306b\u6cbf\u3063\u3066\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>SELinux\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u4ee5\u4e0b\u306e\uff13\u7a2e\u985e\u3067\u3059\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>enforcing<\/td><td>\u30dd\u30ea\u30b7\u30fc\u306e\u5185\u5bb9\u306b\u5f93\u3063\u3066\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u304c\u6709\u52b9\u306a\u72b6\u614b\u3002\u76e3\u67fb\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u3001\u30dd\u30ea\u30b7\u30fc\u306b\u9055\u53cd\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u906e\u65ad\u3002<\/td><\/tr><tr><td>permissive<\/td><td>\u30dd\u30ea\u30b7\u30fc\u306b\u9055\u53cd\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5bfe\u3057\u3066\u8b66\u544a\u3092\u51fa\u529b\u3002\u76e3\u67fb\u30ed\u30b0\u3078\u8a18\u9332\u3055\u308c\u308b\u304c\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306f\u7121\u52b9\u306a\u72b6\u614b\u3002<\/td><\/tr><tr><td>disabled<\/td><td>\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u304c\u7121\u52b9\u306a\u72b6\u614b\u3002\u76e3\u67fb\u30ed\u30b0\u306b\u3082\u8a18\u9332\u3055\u308c\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u521d\u671f\u69cb\u7bc9\u3059\u308b\u969b\u306f\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u30b1\u30fc\u30b9\u306a\u3069\u304c\u3042\u308b\u305f\u3081\u4eca\u56de\u306f\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<br>\u307e\u305a\u306f\u73fe\u5728\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# getenforce\nEnforcing\n<\/pre><\/div>\n\n\n<p>Enforcing&#8230;\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306f\u6709\u52b9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3059\u308b\u306e\u3067\u307e\u305a\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u3092cp\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# cp -piv \/etc\/selinux\/config \/etc\/selinux\/config.`date \"+%Y%m%d\"`\n`\/etc\/selinux\/config' -> `\/etc\/selinux\/config.20181015'\n<\/pre><\/div>\n\n\n<p>ls\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# ls -l \/etc\/selinux\/\n\u5408\u8a08 12\n-rw-r--r--. 1 root root  547 10\u6708 15 10:22 config\n-rw-r--r--. 1 root root  547 10\u6708 15 10:22 config.20181015\ndrwx------. 2 root root    6 10\u6708 15 10:22 final\n-rw-r--r--. 1 root root 2321  4\u6708 11  2018 semanage.conf\ndrwxr-xr-x. 7 root root  215 10\u6708 15 10:23 targeted\ndrwxr-xr-x. 2 root root    6  4\u6708 11  2018 tmp\n<\/pre><\/div>\n\n\n<p>SELinux\u3092\u7121\u52b9\u5316\u3059\u308b\u305f\u3081\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092vi\u30b3\u30de\u30f3\u30c9\u3067\u7de8\u96c6\u3057\u307e\u3059\u3002<br>\u300cSELINUX=enforcing\u300d\u3092\u300cSELINUX=disabled\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# vi \/etc\/selinux\/config\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; highlight: [6,7]; title: ; notranslate\" title=\"\">\n# This file controls the state of SELinux on the system.\n# SELINUX= can take one of these three values:\n#     enforcing - SELinux security policy is enforced.\n#     permissive - SELinux prints warnings instead of enforcing.\n#     disabled - No SELinux policy is loaded.\n# SELINUX=enforcing #\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\nSELINUX=disabled #\u8ffd\u8a18\n# SELINUXTYPE= can take one of three two values:\n#     targeted - Targeted processes are protected,\n#     minimum - Modification of targeted policy. Only selected processes are protected.\n#     mls - Multi Level Security protection.\nSELINUXTYPE=targeted\n<\/pre><\/div>\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# shutdown -r now\n<\/pre><\/div>\n\n\n<p>\u518d\u8d77\u52d5\u5f8c\u3001\u6539\u3081\u3066SELinux\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br>\u300cgetenforce\u300d\u30b3\u30de\u30f3\u30c9\u3067\u300cDisabled\u300d\u3068\u8fd4\u3063\u3066\u304f\u308c\u3070\u7121\u52b9\u5316\u3055\u308c\u305f\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\n&#x5B;root@localhost ~]# getenforce\nDisabled\n<\/pre><\/div>\n\n\n<p>\u300cDisabled\u300d\u304c\u8fd4\u3063\u3066\u304d\u305f\u306e\u3067\u7121\u4e8bSELinux\u304c\u7121\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067SELinux\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"e382a4e383b3e382b9e38388e383bce383abe4bd9ce6a5ade38292e7b582e38188e381a6-2\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4f5c\u696d\u3092\u7d42\u3048\u3066<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3072\u3068\u307e\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u304b\u3089\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3057\u305f\u3068\u3053\u308d\u307e\u3067\u3067\u3059\u3002<br>\u4eca\u5f8c\u3082\u6ce8\u610f\u3059\u3079\u304d\u70b9\u3092\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u306a\u304c\u3089\u9032\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306f\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u304a\u3053\u306a\u3046\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306bCentOS7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebSELinux\u306e\u8a2d\u5b9a \u306f\u3058\u3081\u306b \u6628\u4eca\u306f\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u7b49\u3067\u5bb9\u6613\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u53ef\u80fd\u306aWordPress\u3002 \u3044\u3056\u3001\u30aa\u30f3\u30d7\u30ec\u74b0\u5883\u3067\u69cb\u7bc9\u3059\u308b\u969b\u306b\u3001\u300c\u3042\u308c\u3001\u3001\u3069\u3046\u3084\u308b\u3093\u3060\u3063\u3051\u3001\u3001\u300d\u3068\u3044\u3063\u305f\u3053\u3068\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u4eca\u56de\u306f\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u74b0\u5883\u3067CentOS\u3092\u7acb\u3061\u4e0a\u3052\u3066WordPress\u3092\u69cb\u7bc9\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 CentOS7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bCentOS\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u30ab\u30fc\u30cd\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002 OS\u30d0\u30fc\u30b8\u30e7\u30f33.10.0-862.el7.x86_64 Hyper-V\u4e0a\u306b\u4eee\u60f3\u74b0\u5883\u3067Cent-OS7\u3092\u69cb\u7bc9\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u307e\u305a\u306fCentOS\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u3088\u308aiso\u5f62\u5f0f\u306e\u30a4&hellip;","protected":false},"author":3,"featured_media":346,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[15],"class_list":{"0":"post-333","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"tag-season3"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333"}],"version-history":[{"count":60,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":1196,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions\/1196"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/346"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}