{"id":281,"date":"2023-02-04T13:24:14","date_gmt":"2023-02-04T05:24:14","guid":{"rendered":"http:\/\/39.104.58.144\/?p=281"},"modified":"2023-02-07T19:36:01","modified_gmt":"2023-02-07T11:36:01","slug":"httpd-2-4-54","status":"publish","type":"post","link":"http:\/\/www.algmain.com\/index.php\/2023\/02\/04\/httpd-2-4-54\/","title":{"rendered":"\u5347\u7ea7\u81f3Httpd-2.4.54"},"content":{"rendered":"\n<p>\u9996\u5148<a href=\"https:\/\/downloads.apache.org\/httpd\/httpd-2.4.54.tar.gz\">\u4e0b\u8f7dHttpd-2.4.54.tar.gz<\/a>\u6570\u636e\u5305\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#cd \/usr\/local\/src\n......\n#wget https:\/\/downloads.apache.org\/httpd\/httpd-2.4.54.tar.gz\n......\n<\/pre><\/div>\n\n\n<p>\u89e3\u538b\u7f29\u6570\u636e\u5305\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#tar xf httpd-2.4.54.tar.gz\n......\n<\/pre><\/div>\n\n\n<p>\u8bbe\u7f6e\u7f16\u8bd1\u73af\u5883\u548c\u9009\u9879\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#cd httpd-2.4.54\n......\n#.\/configure\n......\n<\/pre><\/div>\n\n\n<p><em>\u6ce8\u610f\uff1a\u8fd9\u91cc\u4f7f\u7528\u7684\u662f\u7f3a\u7701\u76ee\u5f55\u9879\u914d\u7f6e\u3002\u5982\u679c\u5bf9Linux\u4e0d\u719f\u6089\uff0c\u8bf7\u5c3d\u91cf\u4f7f\u7528\u7f3a\u7701\u914d\u7f6e\u3002<\/em><\/p>\n\n\n\n<p>\u5f00\u59cb\u7f16\u8bd1\u548c\u5b89\u88c5\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#make\n......\n#make install\n......\n<\/pre><\/div>\n\n\n<p>\u67e5\u770b\u6700\u7ec8\u5b89\u88c5\u7ed3\u679c\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# find \/ -name &quot;httpd*&quot;\n......\n\/usr\/local\/apache2\/conf\/original\/extra\/httpd-manual.conf\n\n......\n\/usr\/sbin\/httpd\n......\n\/usr\/lib\/systemd\/system\/httpd.service\n......\n\/etc\/httpd\/conf\/httpd.conf\n......\n\/var\/log\/httpd\n......\n<\/pre><\/div>\n\n\n<p>\u8bbe\u7f6eHttpd\u5f00\u673a\u542f\u52a8\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#vi \/usr\/lib\/systemd\/system\/httpd.service\n......\n&#x5B;Unit]\nDescription=The Apache HTTP Server\nAfter=network.target remote-fs.target nss-lookup.target\nDocumentation=man:httpd(8)\nDocumentation=man:apachectl(8)\n\n&#x5B;Service]\nType=notify\nEnvironmentFile=\/etc\/sysconfig\/httpd\nExecStart=\/usr\/sbin\/httpd $OPTIONS -DFOREGROUND\nExecReload=\/usr\/sbin\/httpd $OPTIONS -k graceful\nExecStop=\/bin\/kill -WINCH ${MAINPID}\n# We want systemd to give httpd some time to finish gracefully, but still want\n# it to kill httpd after TimeoutStopSec if something went wrong during the\n# graceful stop. Normally, Systemd sends SIGTERM signal right after the\n# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give\n# httpd time to finish.\nKillSignal=SIGCONT\nPrivateTmp=true\n\n&#x5B;Install]\nWantedBy=multi-user.target\n......\n#systemctl daemon reload\n......\n#systemctl start httpd\n......\n<\/pre><\/div>\n\n\n<p>\u68c0\u67e5\u7248\u672c\u53f7\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#httpd -v\nServer version: Apache\/2.4.6 (CentOS)\nServer built:   Jan 27 2023 17:36:29\n......\n<\/pre><\/div>\n\n\n<p>\u81f3\u6b64\uff0cHttpd\u5347\u7ea7\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u4e0b\u8f7dHttpd-2.4.54.tar.gz\u6570\u636e\u5305\uff1a \u89e3\u538b\u7f29\u6570\u636e\u5305\uff1a \u8bbe\u7f6e\u7f16\u8bd1\u73af\u5883\u548c\u9009\u9879\uff1a \u6ce8\u610f\uff1a\u8fd9\u91cc\u4f7f\u7528\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[27,11,26,10],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apache","tag-centos","tag-httpd","tag-linux"],"_links":{"self":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/posts\/281"}],"collection":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":2,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":735,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/posts\/281\/revisions\/735"}],"wp:attachment":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}