{"id":3775,"date":"2021-02-06T11:34:43","date_gmt":"2021-02-06T02:34:43","guid":{"rendered":"https:\/\/coeure.co.jp\/blog\/?p=3775"},"modified":"2026-04-03T13:22:35","modified_gmt":"2026-04-03T04:22:35","slug":"centos-apache-210206","status":"publish","type":"post","link":"https:\/\/coeure.co.jp\/blog\/infrastructure\/centos\/centos-apache-210206","title":{"rendered":"\u3010CentOS\u3011Apache\u3092\u8d77\u52d5\/\u505c\u6b62\/\u518d\u8d77\u52d5\/\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>CentOS\u3067Apache\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u8d77\u52d5\uff0f\u505c\u6b62\uff0f\u518d\u8d77\u52d5\uff0f\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u30026\u4ee5\u524d\u30687\u4ee5\u964d\u3068\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CentOS6\u4ee5\u524d<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u3092\u8d77\u52d5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd start<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;Apache\u3092\u505c\u6b62\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd stop<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd restart<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">PC\u8d77\u52d5\u6642\u306bApache\u3092\u81ea\u52d5\u8d77\u52d5&nbsp;\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u73fe\u5728\u306e\u8a2d\u5b9a\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>chkconfig --list | grep httpd\nhttpd \u3000\u3000\u3000\u30000:off 1:off 2:off 3:off 4:off 5:off 6:off<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u3059\u3079\u3066\u306e\u30e9\u30f3\u30ec\u30d9\u30eb\u3067off\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>chkconfig httpd on<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u5909\u66f4\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>chkconfig --list | grep httpd\nhttpd \u3000\u3000\u3000\u30000:off 1:off 2:on 3:on 4:on 5:on 6:off<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u30e9\u30f3\u30ec\u30d9\u30eb\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u6b21\u56dePC\u3092\u8d77\u52d5\u3059\u308b\u969b\u306b\u306f\u81ea\u52d5\u3067Apache\u3082\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u7121\u52b9\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>chkconfig httpd off<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">CentOS7\u4ee5\u964d<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;Apache\u3092\u8d77\u52d5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd start<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u3092\u505c\u6b62\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd stop<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>service httpd restart<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">PC\u8d77\u52d5\u6642\u306bApache\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u73fe\u5728\u306e\u8a2d\u5b9a\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl is-enabled httpd\ndisabled<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u300cdisabled\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u304c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl enable httpd.service<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl is-enabled httpd\nenabled<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<h3 class=\"wp-block-heading\">Apache\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u7121\u52b9\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl disable httpd.service<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>Linux\u306b\u4f55\u304b\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306a\u3069Apache\u95a2\u4fc2\u306e\u64cd\u4f5c\u3092\u3059\u308b\u3053\u3068\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS\u3067Apache\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u8d77\u52d5\uff0f\u505c\u6b62\uff0f\u518d\u8d77\u52d5\uff0f\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u30026\u4ee5\u524d\u30687\u4ee5\u964d\u3068\u3067\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u304c\u7570\u306a\u308a\u307e\u3059\u3002 CentOS6\u4ee5\u524d Apache\u3092\u8d77\u52d5\u3059\u308b\u65b9\u6cd5 &nbsp;Apache [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3773,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[44],"tags":[],"class_list":["post-3775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/3775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=3775"}],"version-history":[{"count":15,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/3775\/revisions"}],"predecessor-version":[{"id":6422,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/3775\/revisions\/6422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/media\/3773"}],"wp:attachment":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=3775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=3775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=3775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}