{"id":44,"date":"2021-11-03T03:46:34","date_gmt":"2021-11-02T19:46:34","guid":{"rendered":"https:\/\/www.feeek.com\/?p=44"},"modified":"2022-03-23T04:26:43","modified_gmt":"2022-03-22T20:26:43","slug":"apache-httpd","status":"publish","type":"post","link":"https:\/\/www.feeek.com\/?p=44","title":{"rendered":"Apache-httpd"},"content":{"rendered":"\r\n<figure class=\"wp-block-table\">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>\u5b89\u88c5httpd<\/td>\r\n<td>#yum install httpd -y<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u521b\u5efa\u7f51\u7ad9\u4e0b\u8f7d\u76ee\u5f55 +\u8d4b\u6743<\/td>\r\n<td>#cd \/var\/www\/ #mkdir www #chmod -R 755 \/var\/www\/www\/ \u00a0<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u521b\u5efahttp\u6587\u4ef6\u8f6f\u94fe\u76ee\u5f55<\/td>\r\n<td>#nano \/etc\/httpd\/conf.d\/www.conf<br \/><br \/>\u6587\u4ef6www.conf\u5185\u5bb9\u5982\u4e0b: \u00a0 Alias \/ \/var\/www\/www\/ \u00a0 &lt;Directory \/var\/www\/www\/&gt; Options Indexes FollowSymLinks Order Deny,Allow Allow from all &lt;\/Directory&gt;<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u66f4\u65b0\u914d\u7f6e\u6587\u4ef6\u5916\u7f51\u8bbf\u95ee\u6743\u9650<\/td>\r\n<td>#nano \/etc\/httpd\/conf\/httpd.conf \u00a0 &lt;Directory &#8220;\/var\/www&#8221;&gt; \u00a0\u00a0\u00a0 AllowOverride None \u00a0\u00a0\u00a0 # Allow open access: \u00a0\u00a0\u00a0 Require all granted &lt;\/Directory&gt;<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u5f00\u542f\u5f00\u673a\u81ea\u542f\u52a8+\u9632\u706b\u5899\u7aef\u53e3<\/td>\r\n<td>#systemctl enable httpd #firewall-cmd &#8211;permanent &#8211;add-service=http #firewall-cmd &#8211;reload<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u5f00\u542f\u670d\u52a1<\/td>\r\n<td>#systemctl enable httpd #systemctl restart httpd #systemctl status httpd<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>\u6d4b\u8bd5\u9875\u9762<\/td>\r\n<td>#nano \/var\/www\/www\/index.html \u00a0 &gt;&gt; Hello World !<\/td>\r\n<td>\u00a0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5httpd #yum install httpd -y \u00a0 \u521b\u5efa\u7f51\u7ad9\u4e0b\u8f7d\u76ee\u5f55 +\u8d4b\u6743 #cd \/var\/w [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":2,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}