{"id":1177,"date":"2019-08-05T12:14:18","date_gmt":"2019-08-05T03:14:18","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=1177"},"modified":"2022-03-29T12:18:03","modified_gmt":"2022-03-29T03:18:03","slug":"apache-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=1177","title":{"rendered":"apache \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<p>CentOS7\u306bapache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n\n\n\n<p>yum\u3092\u4f7f\u7528\u3057\u3066apache2.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u60c5\u5831\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<p>yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aapache\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3092\u8abf\u3079\u307e\u3059\u3002<br>\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306fhttpd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>yum -y info httpd<\/code><\/pre><\/div>\n\n\n\n<p>\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002apache2.4\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>Available Packages\nName        : httpd\nArch        : x86_64\nVersion     : 2.4.6\nRelease     : 89.el7.centos.1\nSize        : 2.7 M\nRepo        : updates\/7\/x86_64\nSummary     : Apache HTTP Server\nURL         : http:\/\/httpd.apache.org\/\nLicense     : ASL 2.0\nDescription : The Apache HTTP Server is a powerful, efficient, and extensible\n            : web server.<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>apache2.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>yum -y install httpd<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h2>\n\n\n\n<p>apache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3001apache\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>httpd -version<\/code><\/pre><\/div>\n\n\n\n<p>\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>Server version: Apache\/2.4.6 (CentOS)\nServer built:   Jul 29 2019 17:18:49<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u72b6\u614b\u78ba\u8a8d<\/h1>\n\n\n\n<p>apache\u304c\u8d77\u52d5\u307e\u305f\u306f\u505c\u6b62\u3057\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 status httpd.service<\/code><\/pre><\/div>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001inactive (dead)\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u505c\u6b62\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u25cf httpd.service - The Apache HTTP Server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; disabled; vendor preset: disabled)\n   Active: inactive (dead)\n     Docs: man:httpd(8)\n           man:apachectl(8)<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u8d77\u52d5<\/h1>\n\n\n\n<p>apache\u3092\u8d77\u52d5\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u8d77\u52d5\u306b\u5931\u6557\u3059\u308b\u5834\u5408\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u4f55\u3082\u306a\u3051\u308c\u3070\u8d77\u52d5\u306f\u6210\u529f\u3057\u3066\u3044\u307e\u3059\u304c\u3001apache\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u78ba\u8a8d\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl start httpd.service<\/code><\/pre><\/div>\n\n\n\n<p>apache\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<br>\u4ee5\u4e0b\u306f\u3001active (running)\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8d77\u52d5\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u25cf httpd.service - The Apache HTTP Server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; disabled; vendor preset: disabled)\n   Active: active (running) since Mon 2019-08-05 06:02:33 UTC; 3s ago\n     Docs: man:httpd(8)\n           man:apachectl(8)\n Main PID: 1416 (httpd)\n   Status: &quot;Processing requests...&quot;\n   CGroup: \/docker\/7914e6424fd848aad94ec6c733b2f3c7aae311eebbd05ed7e9f89c4f6ffa3e7e\/system.slice\/httpd.service\n           \u251c\u25001416 \/usr\/sbin\/httpd -DFOREGROUND\n           \u251c\u25001417 \/usr\/sbin\/httpd -DFOREGROUND\n           \u251c\u25001418 \/usr\/sbin\/httpd -DFOREGROUND\n           \u251c\u25001419 \/usr\/sbin\/httpd -DFOREGROUND\n           \u251c\u25001420 \/usr\/sbin\/httpd -DFOREGROUND\n           \u2514\u25001421 \/usr\/sbin\/httpd -DFOREGROUND\n           \u2023 1416 \/usr\/sbin\/httpd -DFOREGROUND\n\nAug 05 06:02:33 7914e6424fd8 systemd[1]: Starting The Apache HTTP Server...\nAug 05 06:02:33 7914e6424fd8 httpd[1416]: AH00558: httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 172.17.0.2. Set the &#39;ServerName&#39; directive globally to s...s this message\nAug 05 06:02:33 7914e6424fd8 systemd[1]: Started The Apache HTTP Server.\nHint: Some lines were ellipsized, use -l to show in full.<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u505c\u6b62<\/h1>\n\n\n\n<p>apache\u3092\u505c\u6b62\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>systemctl stop httpd.service<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS7\u306bapache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":968,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1177"}],"version-history":[{"count":23,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1177\/revisions"}],"predecessor-version":[{"id":3200,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1177\/revisions\/3200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/968"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}