{"id":1272,"date":"2023-09-07T15:00:01","date_gmt":"2023-09-07T06:00:01","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=1272"},"modified":"2025-08-20T16:22:42","modified_gmt":"2025-08-20T07:22:42","slug":"about_centos7-nginx","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_centos7-nginx\/","title":{"rendered":"CentOS7\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\uff01"},"content":{"rendered":"<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4753 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/CentOS7-\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5.webp\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/CentOS7-\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/CentOS7-\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5-300x167.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/CentOS7-\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5-640x356.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/CentOS7-\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5-768x427.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/>Nginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09<\/strong>\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3067\u3001Apache HTTP Server\u306b\u6b21\u3050\u4eba\u6c17\u3092\u8a87\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8efd\u91cf\u304b\u3064\u9ad8\u901f\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u4f4e\u9650\u306e\u6a5f\u80fd\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u672c\u8a18\u4e8b\u3067\u306f\u3001CentOS\u74b0\u5883\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3092\u884c\u3046\u307e\u3067\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059<\/span>\u3002<\/p>\n<p>Ngix\u306e\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u305c\u3072\u672c\u8a18\u4e8b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066CentOS7\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Nginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<p>CentOS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3070\u304b\u308a\u306e\u65b9\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_centos7-initialization\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/07\/CentOS-7-\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u884c\u3046\u521d\u671f\u8a2d\u5b9a\u3092\u7d39\u4ecb.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.07.06<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_centos7-initialization\/\">CentOS 7 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u884c\u3046\u521d\u671f\u8a2d\u5b9a\u3092\u7d39\u4ecb<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>CentOS Linux\uff08\u4ee5\u4e0b\u3001CentOS\uff09\u306f\u3001RHEL\uff08Red Hat Enterprise Linux\uff09\u3068\u5b8c\u5168\u4e92\u63db\u3092\u76ee\u6307\u3057\u3066\u958b\u767a\u3055\u308c\u305f...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><strong>CentOS Linux<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<\/span><strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/strong><br \/>\n<strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Nginx\"><span class=\"toc_number toc_depth_1\">1<\/span> Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306e\u4e8b\u524d\u6e96\u5099<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u524d\u63d0\u6761\u4ef6<\/a><\/li><li><a href=\"#wheel\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332<\/a><\/li><li><a href=\"#SELinux\"><span class=\"toc_number toc_depth_2\">1.3<\/span> SELinux\u306e\u7121\u52b9\u5316<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">1.4<\/span> \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f4<\/a><\/li><\/ul><\/li><li><a href=\"#Nginx-2\"><span class=\"toc_number toc_depth_1\">2<\/span> Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#Nginx-3\"><span class=\"toc_number toc_depth_2\">2.2<\/span> Nginx\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/a><\/li><\/ul><\/li><li><a href=\"#Nginx-4\"><span class=\"toc_number toc_depth_1\">3<\/span> Nginx\u306e\u8a2d\u5b9a<\/a><ul><li><a href=\"#nginxconf\"><span class=\"toc_number toc_depth_2\">3.1<\/span> nginx.conf\u306b\u3088\u308b\u8a2d\u5b9a\u5909\u66f4<\/a><\/li><\/ul><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">4<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#UnixLinuxVPS\"><span class=\"toc_number toc_depth_1\">5<\/span> Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"Nginx\">Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306e\u4e8b\u524d\u6e96\u5099<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i\">\u524d\u63d0\u6761\u4ef6<\/span><\/h3>\n<p>\u4eca\u56de\u306f\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bCentOS\u304a\u3088\u3073Nginx\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>CPU\uff1a2vCPU<\/li>\n<li>Memory\uff1a4GB<\/li>\n<li>Disk\uff1a50GB<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>CentOS\u304a\u3088\u3073Nginx\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aCentOS Linux release 7.9.2009\uff08Core\uff09<\/li>\n<li>Nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aNginx 1.24.0<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092<strong>\u592a\u5b57<\/strong>\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092<span style=\"color: #3366ff;\"><strong>\u9752\u5b57<\/strong><\/span>\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"wheel\">\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332<\/span><\/h3>\n<p>CentOS\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>root\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f7f\u7528\u3059\u308b\u306e\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3078\u306e\u5b9f\u884c\u3092\u8a31\u53ef\u3059\u308b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>usermod -G wheel testuser<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4eca\u5f8c\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066su\u30b3\u30de\u30f3\u30c9\u3067root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u305f\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u308b\u306b\u306f\u3001su\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>$ su &#8211;<\/strong><br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\u3000<span style=\"color: #3366ff;\"><strong>\u203broot\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b<\/strong><\/span><br \/>\n#\u3000\u3000<span style=\"color: #3366ff;\"><strong>\u203broot\u30e6\u30fc\u30b6\u30fc\u306b\u306a\u3063\u305f<\/strong><\/span><\/p>\n<h3 class=\"styled_h3\"><span id=\"SELinux\">SELinux\u306e\u7121\u52b9\u5316<\/span><\/h3>\n<p>CentOS\u306b\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u5fa1\u3059\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u300cSELinux\u300d\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001Nginx\u306b\u4e88\u671f\u305b\u306c\u5f71\u97ff\u3092\u53ca\u307c\u3057\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u4e8b\u524d\u306bSELinux\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>SELinux\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong># getenforce<br \/>\n<\/strong>Enforcing\u3000<strong><span style=\"color: #3366ff;\">\u203bSELinux\u6709\u52b9<\/span><\/strong><\/p>\n<p>\u3082\u3057\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>SELinux\u3092\u7121\u52b9\u5316\u3059\u308b\u306b\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/etc\/selinux\/config\u300d\u306e\u5185\u5bb9\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>vi \/etc\/selinux\/config<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u3010\u5909\u66f4\u524d\u3011<\/strong><\/span><\/p>\n<p><strong>SELINUX=enforcing<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u3010\u5909\u66f4\u5f8c\u3011<\/strong><\/span><\/p>\n<p><strong>SELINUX=disabled<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u5f8c\u3001\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u3001CentOS\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u203b\u6ce8\u610f<\/span><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u3053\u306e\u8a2d\u5b9a\u5909\u66f4\u306f\u30b9\u30da\u30eb\u30df\u30b9\u7b49\u304c\u306a\u3044\u3088\u3046\u3001\u5341\u5206\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u8a2d\u5b9a\u3092\u9593\u9055\u3048\u305f\u5834\u5408\u3001CentOS\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>CentOS\u304c\u8d77\u52d5\u3057\u305f\u3089\u3001SELinux\u304c\u7121\u52b9\u5316\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong># getenforce<\/strong><br \/>\nDisabled\u3000<span style=\"color: #3366ff;\"><strong>\u203bSELinux<\/strong><strong>\u7121\u52b9<\/strong><\/span><\/p>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f4<\/span><\/h3>\n<p>CentOS 7\u304b\u3089\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u6a5f\u80fd\u3068\u3057\u3066\u300cfirewalld\u300d\u304c\u6a19\u6e96\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u300cpublic\u300d\u30be\u30fc\u30f3\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001http\/https\u306f\u901a\u4fe1\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u307e\u307e\u3067\u306fNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u901a\u4fe1\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>public\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>firewall-cmd &#8211;(-\u306f2\u56de\u91cd\u306d\u308b)list-all<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4755\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf2-2.webp\" alt=\"\" width=\"502\" height=\"260\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf2-2.webp 502w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf2-2-300x155.webp 300w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>\u4e0a\u8a18\u4f8b\u3060\u3068\u3001\u300cdhcpv6-client\u300d\u300cssh\u300d\u306e2\u3064\u306e\u307f\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Nginx\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u3001\u4e8b\u524d\u306b\u300chttp\u300d\u3092\u958b\u304f\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>SSL\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u300chttps\u300d\u3082\u3042\u308f\u305b\u3066\u958b\u3051\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong># firewall-cmd &#8211;(-\u306f2\u56de\u91cd\u306d\u308b)add-service=http &#8211;(-\u306f2\u56de)zone=public &#8211;(-\u306f2\u56de)permanent<\/strong><br \/>\n# <strong>firewall-cmd &#8211;(-\u306f2\u56de\u91cd\u306d\u308b)add-service=https &#8211;(-\u306f2\u56de)zone=public &#8211;(-\u306f2\u56de)permanent<\/strong><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u5909\u66f4\u5185\u5bb9\u3092\u53cd\u6620\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>firewall-cmd &#8211;(-\u306f2\u56de\u91cd\u306d\u308b)reload<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u518d\u5ea6\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u300chttp\u300d\u300chttps\u300d\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4756\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf3-2.webp\" alt=\"\" width=\"554\" height=\"264\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf3-2.webp 554w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf3-2-300x143.webp 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u901a\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"Nginx-2\">Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h3>\n<p>Nginx\u306f\u516c\u5f0f\u306eyum\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>vi \/etc\/yum.repos.d\/nginx.repo<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u753b\u9762\u306b\u306a\u3063\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u305d\u306e\u307e\u307e\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">[nginx-stable]<\/p>\n<p>name=nginx stable repo<\/p>\n<p>baseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/<\/p>\n<p>gpgcheck=1<\/p>\n<p>enabled=1<\/p>\n<p>gpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key<\/p>\n<p>module_hotfixes=true<\/p>\n<p>&nbsp;<\/p>\n<p>[nginx-mainline]<\/p>\n<p>name=nginx mainline repo<\/p>\n<p>baseurl=http:\/\/nginx.org\/packages\/mainline\/centos\/$releasever\/$basearch\/<\/p>\n<p>gpgcheck=1<\/p>\n<p>enabled=0<\/p>\n<p>gpgkey=https:\/\/nginx.org\/keys\/nginx_signing.key<\/p>\n<p>module_hotfixes=true<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>yum -y install nginx<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u3001Nginx\u306f\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3057\u306a\u3044\u305f\u3081\u3001\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Nginx\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3001\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>service nginx status<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4757\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf4-2.webp\" alt=\"\" width=\"602\" height=\"85\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf4-2.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf4-2-300x42.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u203bNginx\u3092\u8d77\u52d5\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>service nginx start<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4758\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf5-2.webp\" alt=\"\" width=\"602\" height=\"196\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf5-2.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf5-2-300x98.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001Web\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068Nginx\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"well2\">\u203b\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9<br \/>\nhttp:\/\/[Web\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30db\u30b9\u30c8\u540d]<br \/>\n\u307e\u305f\u306f<br \/>\nWeb\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u4ee5\u4e0b\u306eURL\u3092\u5b9f\u884c<br \/>\nhttp:\/\/localhost<\/p>\n<p><strong> <img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4759\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf6-2.webp\" alt=\"\" width=\"606\" height=\"343\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf6-2.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf6-2-300x170.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/><br \/>\n<\/strong><\/p>\n<h3 class=\"styled_h3\"><span id=\"Nginx-3\">Nginx\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9<\/span><\/h3>\n<p>Nginx\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u76f4\u5f8c\u306f\u3059\u3067\u306bWeb\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u305f\u72b6\u614b\u3067\u3059\u304c\u3001\u505c\u6b62\u3084\u8d77\u52d5\u3001\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n<table id=\"tablepress-84\" class=\"tablepress tablepress-id-84\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">\u64cd\u4f5c<\/th><th class=\"column-2\">\u30b3\u30de\u30f3\u30c9<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">Nginx\u306e\u505c\u6b62<\/td><td class=\"column-2\"># systemctl stop nginx<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">Nginx\u306e\u8d77\u52d5<\/td><td class=\"column-2\"># systemctl start nginx<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">Nginx\u306e\u518d\u8d77\u52d5<\/td><td class=\"column-2\"># systemctl restart nginx<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">\u8a2d\u5b9a\u306e\u30ea\u30ed\u30fc\u30c9<\/td><td class=\"column-2\"># systemctl reload nginx<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u6709\u52b9\u5316<\/td><td class=\"column-2\"># systemctl enable nginx<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">\u81ea\u52d5\u8d77\u52d5\u306e\u7121\u52b9\u5316<\/td><td class=\"column-2\"># systemctl disable nginx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-84 from cache -->\n<p>\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001Web\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u3084\u505c\u6b62\u3001\u8a2d\u5b9a\u306e\u518d\u8aad\u307f\u8fbc\u307f\u306a\u3069\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p style=\"text-align: center;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"Nginx-4\">Nginx\u306e\u8a2d\u5b9a<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"nginxconf\">nginx.conf\u306b\u3088\u308b\u8a2d\u5b9a\u5909\u66f4<\/span><\/h3>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c\/etc\/nginx\/nginx.conf\u300d\u3067\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u8a2d\u5b9a\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4e00\u90e8\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u5909\u66f4\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u5fc5\u305a\u8a2d\u5b9a\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"well2\"><strong># cd \/etc\/nginx<\/strong><br \/>\n# <strong>cp -p nginx.conf nginx.conf.bak<\/strong><\/p>\n<p>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001vi\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"># <strong>vi nginx.conf<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0b\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u884c\u3048\u308b\u5909\u66f4\u306e\u4f8b\u3067\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4760\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf7-2-485x360.webp\" alt=\"\" width=\"485\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf7-2-485x360.webp 485w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf7-2-300x223.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf7-2.webp 602w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/p>\n<ul style=\"list-style-type: disc;\">\n<li>\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u96a0\u3059<\/li>\n<\/ul>\n<p>Nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u3057\u307e\u3046\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u306e\u8981\u56e0\u3068\u306a\u308b\u305f\u3081\u3001\u8868\u793a\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>http\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\uff08http { }\u5185\uff09\u306b\u3001\u4ee5\u4e0b\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong>server_tokens off;<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4761\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf8-2.webp\" alt=\"\" width=\"477\" height=\"92\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf8-2.webp 477w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf8-2-300x58.webp 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/p>\n<ul style=\"list-style-type: disc;\">\n<li>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<\/li>\n<\/ul>\n<p>Nginx\u306f\u3001\u8907\u6570\u306e\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3067\u304d\u308b\u300c\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u300d\u306e\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u8907\u6570\u306e\u30b5\u30a4\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u305e\u308c\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u30b5\u30a4\u30c8\u3092\u9589\u9396\u3059\u308b\u969b\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u524a\u9664\u3059\u308b\u3060\u3051\u3067\u3088\u3044\u306e\u3067\u3001\u7ba1\u7406\u304c\u697d\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300cwww.sample1.com\u300d\u300cwww.sample2.com\u300d\u306e2\u3064\u306e\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><span style=\"color: #3366ff;\"><strong>\u203b\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/strong><\/span><\/p>\n<p>#<strong> mkdir \/etc\/nginx\/sites-available<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><span style=\"color: #3366ff;\"><strong>\u203b\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u683c\u7d0d\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/strong><\/span><\/p>\n<p>#<strong> mkdir \/etc\/nginx\/sites-enabled<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b21\u306b\u3001\u5404\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u8a2d\u5b9a\u4f8b\u3067\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong># vi \/etc\/nginx\/sites-available\/www.sample1.com<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>server {<\/p>\n<p>listen 80;<\/p>\n<p>server_name\u00a0 www.sample1.com;<\/p>\n<p>&nbsp;<\/p>\n<p>root \/var\/www\/sample1\/html;<\/p>\n<p>index index.html index.htm index.nginx-debian.html;<\/p>\n<p>}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4762\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf9-1.webp\" alt=\"\" width=\"602\" height=\"127\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf9-1.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf9-1-300x63.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u540c\u69d8\u306b\u3001sample2\u7528\u3082\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\">#<strong> cd \/etc\/nginx\/sites-enabled<br \/>\n<\/strong>#<strong> ln -s \/etc\/nginx\/sites-available\/www.sample1.com \/etc\/nginx\/sites-enabled\/<\/strong><br \/>\n#<strong> ln -s \/etc\/nginx\/sites-available\/www.sample2.com \/etc\/nginx\/sites-enabled\/<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4763\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf10-1.webp\" alt=\"\" width=\"602\" height=\"100\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf10-1.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf10-1-300x50.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u5404\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong># mkdir -p \/var\/www\/sample1\/html<\/strong><br \/>\n#<strong> mkdir -p \/var\/www\/sample2\/html<\/strong><\/p>\n<p>\u6700\u5f8c\u306b\u3001\u4f5c\u6210\u3057\u305f\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3001\/etc\/nginx\/nginx.conf\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong>include sites-enabled\/*.conf;<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4764\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf11-1.webp\" alt=\"\" width=\"398\" height=\"107\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf11-1.webp 398w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/09\/\u753b\u50cf11-1-300x81.webp 300w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/p>\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Nginx\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\">#<strong> systemctl restart nginx<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3067\u3001Nginx\u306e\u8a2d\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3001\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u304c\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"i-4\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u4eca\u56de\u306fCentOS7\u3067\u306eNginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Nginx\u306fApache HTTP Server\u306b\u6b21\u3050\u4eba\u6c17\u306e\u9ad8\u3044Web\u30b5\u30fc\u30d0\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u3001\u8907\u6570\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u3082\u53ef\u80fd\u306a\u306e\u3067\u3001\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"UnixLinuxVPS\">Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30d7\u30e9\u30f3\u306e\u9078\u629e\u3067\u304a\u56f0\u308a\u306e\u5834\u5408\u306f\u3001\u305c\u3072\u4e00\u5ea6\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><strong>\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\uff1a<\/strong><a href=\"https:\/\/www.miraiserver.ne.jp\/formmail.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.miraiserver.ne.jp\/formmail.html<\/a><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/08\/VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011-2.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.08.03<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/miraiserver_vps\/\">VPS\u306b\u7533\u8fbc\u307f\u3001SSH\u63a5\u7d9a\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3010\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3011<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\u30aa\u30f3\u30e9\u30a4\u30f3\u30d3\u30b8\u30cd\u30b9\u3084Web\u30b5\u30a4\u30c8\u306e\u904b\u55b6\u3092\u59cb\u3081\u308b\u969b\u306b\u306f\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u304b\u3089\u81ea\u5206\u306e\u7528\u9014\u306b\u5408\u3063\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3059\u3002...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n","protected":false},"excerpt":{"rendered":"Nginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u306f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3067\u3001Apache HTTP Server\u306b\u6b21\u3050\u4eba\u6c17\u3092\u8a87\u3063\u3066\u3044\u307e\u3059\u3002 \u8efd\u91cf\u304b\u3064\u9ad8\u901f\u306b\u52d5\u4f5c\u3059\u308b\u3088\u3046\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u7279\u5316\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u4f4e\u9650\u306e\u6a5f\u80fd\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001CentOS\u74b0\u5883\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3092\u884c\u3046\u307e\u3067\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 Ngix\u306e\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u3066\u3044\u308b\u65b9\u306f\u3001\u305c\u3072\u672c\u8a18\u4e8b\u306e\u624b\u9806\u306b\u6cbf\u3063\u3066CentOS7\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 Nginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002 CentOS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3070\u304b\u308a\u306e\u65b9\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002 CentOS Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f VPS\u3092\u4f7f\u3063\u3066\u307f\u308b \u76ee\u6b211 Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306e\u4e8b\u524d\u6e96\u50991.1 \u524d\u63d0\u6761\u4ef61.2 \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u93321.3 SELinux\u306e\u7121\u52b9\u53161.4 \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u5909\u66f42 Nginx\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb2.1 \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb2.2 Nginx\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c93 Nginx\u306e\u8a2d\u5b9a3.1 nginx.conf\u306b\u3088\u308b\u8a2d\u5b9a\u5909\u66f44 \u307e\u3068\u30815 Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc Nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305f\u3081\u306e\u4e8b\u524d\u6e96\u5099 \u524d\u63d0\u6761\u4ef6 \u4eca\u56de\u306f\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bCentOS\u304a\u3088\u3073Nginx\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002 \u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002 CPU\uff1a2vCPU Memory\uff1a4GB Disk\uff1a50GB CentOS\u304a\u3088\u3073Nginx\u306f\u4ee5\u4e0b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aCentOS Linux release 7.9.2009\uff08Core\uff09 Nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff1aNginx 1.24.0 \u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u8a18\u306b\u3064\u3044\u3066\u306f\u3001\u5b9f\u969b\u306b\u5165\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u592a\u5b57\u3001\u88dc\u8db3\u306e\u5185\u5bb9\u3092\u9752\u5b57\u3067\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332 CentOS\u306bNginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u304c\u5fc5\u8981\u3067\u3059\u3002 root\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u76f4\u63a5\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u4f7f\u7528\u3059\u308b\u306e\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3078\u306e\u5b9f\u884c\u3092\u8a31\u53ef\u3059\u308b\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\uff08\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001testuser\uff09\u3092wheel\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002 # usermod -G wheel testuser \u4eca\u5f8c\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066su\u30b3\u30de\u30f3\u30c9\u3067root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u305f\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002 root\u30e6\u30fc\u30b6\u30fc\u306b\u5207\u308a\u66ff\u3048\u308b\u306b\u306f\u3001su\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 $ [&hellip;]","protected":false},"author":1,"featured_media":4745,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,192],"tags":[180,204,210,217],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1272"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=1272"}],"version-history":[{"count":15,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1272\/revisions"}],"predecessor-version":[{"id":4765,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1272\/revisions\/4765"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4745"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=1272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=1272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=1272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}