{"id":57,"date":"2019-02-09T19:00:16","date_gmt":"2019-02-09T11:00:16","guid":{"rendered":""},"modified":"2020-10-08T13:37:55","modified_gmt":"2020-10-08T05:37:55","slug":"%e5%88%86%e4%ba%ab%ef%bc%9a%e3%80%8alinux%e5%b0%b1%e8%af%a5%e8%bf%99%e4%b9%88%e5%ad%a6-%e3%80%8b%e7%ac%ac10%e7%ab%a0-%e4%bd%bf%e7%94%a8apache%e6%9c%8d%e5%8a%a1%e9%83%a8%e7%bd%b2%e9%9d%99%e6%80%81","status":"publish","type":"post","link":"https:\/\/www.fatesky.com\/?p=57","title":{"rendered":"\u5206\u4eab\uff1a\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66 \u300b\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9"},"content":{"rendered":"<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">\u63a8\u8350\u7b80\u8ff0\uff1a<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; text-indent: 2em; background-color: rgb(255, 255, 255);\"><span style=\"text-indent: 1em;\">\u8bf4\u5230Linux\u7cfb\u7edf\u4ece01\u5e74\u5f00\u59cb\u6211\u5c31\u4e00\u76f4\u5728\u63a5\u89e6\uff0c\u76f4\u523003\u5e74\u8fd8\u662f04\u5e74\u7684\u65f6\u5019\u5728\u60e0\u5dde\u65b0\u534e\u4e66\u5e97\u4e70\u4e86\u4e00\u672c\u300a<\/span><span style=\"font-size: 13.3333px; text-indent: 13.3333px;\">\u9e1f\u54e5\u7684\u79c1\u623f\u83dc<\/span><span style=\"text-indent: 1em;\">\u300b\uff0c\u81ea\u6b64\u6211\u7684LINUX\u8d77\u6b65\u624d\u7b97\u662f\u771f\u6b63\u7684\u5f00\u59cb\uff0c\u4eca\u5929\u5ffd\u7136\u5728\u7f51\u4e0a\u53d1\u73b0\u4e86\u4e00\u672c\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b<\/span><span style=\"font-size: 13.3333px; text-indent: 13.3333px;\">\u5fcd\u4e0d\u4f4f\u770b\u4e86\u4e8c\u7ae0\uff0c<\/span><span style=\"text-indent: 1em;\">\u89c9\u5f97\u8fd9\u672c\u4e66\u5728\u73b0\u65f6\u7684Linux\u73af\u5883\u4e0b\u66f4\u9002\u5408\u65b0\u624b\u5165\u95e8\uff0c\u4e0d\u7531\u5f3a\u70c8\u63a8\u8350\u4e00\u4e0b\uff0c\u5e76\u4e14\u81ea\u5df1\u4e5f\u51b3\u5b9a\u4e09\u6708\u4efd\u91cc\u6bcf\u5929\u5fc5\u770b\u4e00\u7ae0\u8282\uff0c\u5728\u770b\u7684\u540c\u65f6\u4e5f\u8f6c\u8f7d\u5728\u535a\u5ba2\u91cc\u3002<\/span><span style=\"text-indent: 1em; color: #FF0000;\">\u6e29\u6545\u77e5\u65b0\uff0c\u5b66\u4e60\u8fd9\u4e2a\u4e8b\u60c5\u6c38\u8fdc\u5e94\u8be5\u5728\u8def\u4e0a\uff01<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; white-space: normal; box-sizing: border-box; line-height: 23px; text-indent: 1em; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ss2.bdstatic.com\/70cFvnSh_Q1YnxGkpoWK1HF6hhy\/it\/u=246279818,2032250538&#038;fm=26&#038;gp=0.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/ss2.bdstatic.com\/70cFvnSh_Q1YnxGkpoWK1HF6hhy\/it\/u=246279818,2032250538&#038;fm=26&#038;gp=0.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\"\/><\/div><\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">\u672c\u4e66\u76f8\u6bd4\u300a\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u300b\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u5766\u767d\u6765\u8bb2\uff0c\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u4e5f\u662f\u6211\u7684linux\u5165\u95e8\u4e66\u7c4d\uff0c\u6211\u7edd\u5bf9\u7684\u8ba4\u53ef\u9e1f\u54e5\u4e3a\u8fd9\u672c\u4e66\u7684\u4ed8\u51fa\uff0c\u5176\u4e66\u53d1\u884c\u91cf\u5de8\u5927\uff0c\u966a\u4f34\u4e86\u4e00\u4ee3\u7684\u8fd0\u7ef4\u4eba\u5458\uff0c\u751a\u81f3\u88ab\u5c01\u4e3a\u201clinux\u5165\u95e8\u795e\u4e66\u201d\uff0c\u6e10\u6e10\u7684\u4ece\u4e00\u672clinux\u6280\u672f\u4e66\u7c4d\uff0c\u4e0a\u5347\u81f3\u7cbe\u795e\u7684\u9ad8\u5ea6\uff0c\u4e0d\u5141\u8bb8\u518d\u6709\u4e00\u70b9\u53cd\u9a73\u4e4b\u58f0\uff0c\u4f46\u601d\u7d22\u518d\u4e09\uff0c\u8fd8\u662f\u51b3\u5b9a\u9610\u660e\u6211\u7684\u89c2\u70b9\uff0c\u4e0e\u521d\u5b66\u8005\u5206\u4eab\u4e0b\u8fd9\u4e0d\u540c\u7684\u770b\u6cd5\uff1a<br style=\"margin: 0px; padding: 0px;\"\/>\u9996\u5148\u9e1f\u54e5\u5728\u5f00\u7bc7\u5373\u63d0\u5230\u4e86\u5199\u4e66\u7684\u7f18\u7531\u662f\u56e0\u4e3a\u8bb0\u6027\u4e0d\u597d\uff0c\u6240\u4ee5\u60f3\u5199\u51fa\u4e00\u672c\u80fd\u591f\u653e\u5728\u6848\u5934\u7684\u5907\u5fd8\u5f55\uff0c\u5bf9\u4e66\u7c4d\u7684\u5185\u5bb9\u81ea\u7136\u5c31\u6ca1\u6709\u4e86\u592a\u591a\u7684\u7b5b\u9009\uff0c\u53cd\u800c\u4e00\u518d\u7684\u6269\u5927\u77e5\u8bc6\u8303\u56f4\uff0c\u6700\u7ec8\u5199\u51fa\u7684\u4e24\u672c\u4e66\u539a\u5ea6\u8db3\u8db3\u8d85\u8fc7\u5341\u5398\u7c73\uff0c\u6562\u95ee\u8fd9\u79cd\u201c\u5907\u5fd8\u5f55\u5f0f\u7684\u5165\u95e8\u4e66\u7c4d\u201d\u771f\u7684\u9002\u5408\u65b0\u624b\u6765\u8bfb\uff1f\u6211\u8ba4\u4e3a\u4e66\u7c4d\u65e2\u7136\u53d1\u884c\u4e86\uff0c\u5c31\u4e0d\u80fd\u518d\u662f\u4e2a\u5907\u5fd8\u5f55\uff0c\u800c\u5e94\u8be5\u662f\u901a\u8fc7\u4f5c\u8005\u7684\u7ecf\u9a8c\u5c06\u77e5\u8bc6\u4e0d\u65ad\u63d0\u70bc\uff0c\u771f\u6b63\u8ba9\u6367\u8d77\u4e66\u7684\u8bfb\u8005\u770b\u5b8c\u6709\u6536\u83b7\u624d\u53ef\u4ee5\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u5176\u6b21\u662f\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u7684\u4e66\u7c4d\u66f4\u65b0\u5468\u671f\u8fc7\u957f\uff0c2014\u5e74\u672b\u65f6RHEL7\u4e0eCentos7\u5c31\u5df2\u7ecf\u516c\u5e03\uff0c\u7ecf\u8fc7\u4e86\u4e00\u5e74\u591a\u7684\u8fed\u4ee3\uff0c\u5df2\u7ecf\u5f88\u7a33\u5b9a\u5e76\u88ab\u5e7f\u6cdb\u4f7f\u7528\u4e86\uff0c\u5982\u679c\u5185\u5bb9\u6ca1\u6709\u5b9a\u671f\u66f4\u65b0\uff0c\u4f7f\u5f97\u6280\u672f\u8131\u79bb\u4e86\u751f\u4ea7\u73af\u5883\uff0c\u8fd8\u600e\u4e48\u79f0\u4f5c\u662f\u771f\u6b63\u5b9e\u7528\u7684linux\u6280\u672f\uff1f\u800c\u4e14\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u7f3a\u5c11\u4e86\u5bf9\u65b0\u624b\u975e\u5e38\u91cd\u8981\u7684\u7b54\u7591\u4e0e\u5e2e\u52a9\uff0c\u5982\u679c\u9047\u5230\u4e86\u5b9e\u9a8c\u51fa\u9519\uff0c\u6216\u8005\u6709\u77e5\u8bc6\u70b9\u609f\u4e0d\u900f\uff0c\u8fd9\u4e9b\u90fd\u53ef\u80fd\u8ba9\u521d\u5b66\u8005\u4e27\u5931\u6389\u5bf9linux\u6280\u672f\u7684\u5174\u8da3\u3002<\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\">RHEL\u4e0eCentos\u7cfb\u7edf\u533a\u522b\uff1a<\/h2>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u73b0\u5728\u56fd\u5185\u7684\u5f88\u591a\u4e66\u7c4d\u662f\u4ee5Centos\u7cfb\u7edf\u4e3a\u5e73\u53f0\u7f16\u5199\u7684\uff0c\u5f53\u7136\u4f5c\u8005\u5927\u591a\u4f1a\u5217\u51fa\u6765\u8bf8\u591a\u7684\u7406\u7531\uff0c\u4f46\u5f88\u591a\u90fd\u662f\u4ee5\u8bb9\u4f20\u8bb9\u7684\u6b6a\u66f2\u9053\u7406\uff0c\u6839\u672c\u6ca1\u6709\u5256\u6790\u5230RedHat\u516c\u53f8\u7684\u8fd0\u4f5c\u65b9\u6cd5\u548cCentos\u7cfb\u7edf\u7684\u672c\u8d28\uff0cCentos\u7cfb\u7edf\u662f\u901a\u8fc7\u5c06RHEL\u7cfb\u7edf\u91ca\u653e\u51fa\u7684\u6e90\u4ee3\u7801\u4e8c\u6b21\u7f16\u8bd1\u7684Linux\u7cfb\u7edf\u4e4b\u4e00\uff0c\u547d\u4ee4\u64cd\u4f5c\u548c\u670d\u52a1\u914d\u7f6e\u65b9\u6cd5\u81ea\u7136\u90fd\u662f\u5b8c\u5168\u76f8\u540c\uff0c\u53bb\u6389\u4e86\u5f88\u591a\u7ea2\u5e3d\u6536\u8d39\u7684\u670d\u52a1\u5957\u4ef6\u529f\u80fd\uff0c\u5e76\u4e14\u4e0d\u63d0\u4f9b\u4efb\u4f55\u5f62\u5f0f\u7684\u6280\u672f\u652f\u6301\uff0c\u90a3\u4e48\u9009\u62e9\u7684\u7406\u7531\u53ea\u6709\u4e00\u4e2a\u2014\u2014\u514d\u8d39\uff01\uff0c\u5f53\u201c\u9ad8\u624b\u4eec\u201d\u5927\u4e3e\u514d\u8d39\u3001\u5f00\u6e90\u3001\u6b63\u4e49\u7684\u65d7\u5e1c\u6765\u5ba3\u626cCentos\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u8bf8\u4e0d\u77e5Centos\u7cfb\u7edf\u5176\u5b9e\u65e9\u57282014\u5e74\u521d\u5c31\u5df2\u7ecf\u88ab\u7ea2\u5e3d\u516c\u53f8\u6536\u8d2d\uff0c\u53ea\u662f\u6218\u7565\u6027\u7684\u514d\u8d39\u800c\u5df2\uff0c\u800c\u6839\u636eGnu GPL\u8bb8\u53ef\u534f\u8bae\uff0c\u6211\u4eec\u540c\u6837\u4e5f\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528RHEL\u7cfb\u7edf\uff0c\u751a\u81f3\u662f\u4fee\u6539\u4ee3\u7801\u540e\u521b\u5efa\u51fa\u884d\u751f\u4ea7\u54c1\uff0c\u81ea\u7531\u7a0b\u5ea6\u662f\u6ca1\u6709\u4efb\u4f55\u7684\u5dee\u5f02\uff0c\u66f4\u65e0\u5173\u9053\u5fb7\u95ee\u9898\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; white-space: normal; padding: 5px 0px 14px; text-indent: 2em; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; font-size: 15px; line-height: 25px; background-color: rgb(255, 255, 255);\">\u60a8\u6b63\u5728\u9605\u8bfb\u7684\u8fd9\u672c\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u4fbf\u662f\u57fa\u4e8e\u6700\u65b0\u7684RHEL7\u7cfb\u7edf\u7f16\u5199\u7684\uff0c\u77e5\u8bc6\u53ca\u5b9e\u9a8c\u5b8c\u5168\u7684\u76f8\u901a\u4e8eCentos,fedora\u7b49\u7cfb\u7edf\uff0c\u56e0\u6b64\u5f53\u60a8\u5b66\u4e60\u5b8c\u672c\u5957\u8bfe\u7a0b\u540e\uff0c\u5373\u4fbf\u516c\u53f8\u5185\u7684\u751f\u4ea7\u73af\u5883\u662fCentos\u7cfb\u7edf\u4e5f\u4e00\u6837\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u5e76\u4e14\u672c\u4e66\u914d\u5957\u8d44\u6599\u4e2d\u7684iso\u955c\u50cf\u4e0e\u7ea2\u5e3dRHCSA\u53caRHCE\u8003\u8bd5\u7cfb\u7edf\u4e00\u81f4\uff0c\u5c24\u5176\u9002\u5408\u51c6\u5907\u8003\u53d6\u7ea2\u5e3d\u8ba4\u8bc1\u7684\u5b66\u5458\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 10px; text-indent: 0em; white-space: normal; box-sizing: border-box; line-height: 23px; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\"><span style=\"font-size: 18px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><\/span><\/p>\n<h2 style=\"white-space: normal; margin: 8px 0px; padding: 2px 0px; font-size: 1.3em; border-left-width: 4px; border-left-style: solid; border-left-color: rgb(252, 46, 46); text-indent: 16px; color: rgb(74, 74, 74); font-family: &quot;Microsoft YaHei&quot;; line-height: 25px; background-color: rgb(255, 255, 255);\"><strong style=\"color: rgb(61, 68, 80); font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; font-size: 18px; line-height: 23px;\">\u6b63\u6587\u5f00\u59cb\uff1a<\/strong><\/h2>\n<p><strong style=\"color: rgb(61, 68, 80); font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; font-size: 18px; line-height: 23px;\"><br \/><\/strong>\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9<\/p>\n<p><span style=\"color: #92D050;\">10.1 \u7f51\u7ad9\u670d\u52a1\u7a0b\u5e8f<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.2 \u914d\u7f6e\u670d\u52a1\u6587\u4ef6\u53c2\u6570<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.3 SELinux\u5b89\u5168\u5b50\u7cfb\u7edf<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.4 \u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.5 \u865a\u62df\u7f51\u7ad9\u4e3b\u673a\u529f\u80fd<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.5.1 \u57fa\u4e8eIP\u5730\u5740<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.5.2 \u57fa\u4e8e\u4e3b\u673a\u57df\u540d<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.5.3 \u57fa\u4e8e\u7aef\u53e3\u53f7<\/span><\/p>\n<p><span style=\"color: #92D050;\">10.6 Apache\u7684\u8bbf\u95ee\u63a7\u5236<\/span><\/p>\n<p><\/p>\n<h5 class=\"cnblogs_code\" style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"101\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">10.1 \u7f51\u7ad9\u670d\u52a1\u7a0b\u5e8f<\/span><\/strong><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">1970\u5e74\uff0c\u4f5c\u4e3a\u4e92\u8054\u7f51\u524d\u8eab\u7684ARPANET\uff08\u963f\u5e15\u7f51\uff09\u5df2\u521d\u5177\u96cf\u5f62\uff0c\u5e76\u5f00\u59cb\u5411\u975e\u519b\u7528\u90e8\u95e8\u5f00\u653e\uff0c\u8bb8\u591a\u5927\u5b66\u548c\u5546\u4e1a\u90e8\u95e8\u5f00\u59cb\u63a5\u5165\u3002\u867d\u7136\u5f7c\u65f6\u963f\u5e15\u7f51\u7684\u89c4\u6a21\uff08\u53ea\u67094\u53f0\u4e3b\u673a\u8054\u7f51\u8fd0\u884c\uff09\u8fd8\u4e0d\u5982\u73b0\u5728\u7684\u5c40\u57df\u7f51\u6210\u719f\uff0c\u4f46\u662f\u5b83\u4f9d\u7136\u4e3a\u7f51\u7edc\u6280\u672f\u7684\u8fdb\u6b65\u6253\u4e0b\u4e86\u624e\u5b9e\u7684\u57fa\u7840\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u60f3\u5fc5\u6211\u4eec\u5927\u591a\u6570\u4eba\u90fd\u662f\u901a\u8fc7\u8bbf\u95ee\u7f51\u7ad9\u800c\u5f00\u59cb\u63a5\u89e6\u4e92\u8054\u7f51\u7684\u5427\u3002\u6211\u4eec\u5e73\u65f6\u8bbf\u95ee\u7684\u7f51\u7ad9\u670d\u52a1\u5c31\u662fWeb\u7f51\u7edc\u670d\u52a1\uff0c\u4e00\u822c\u662f\u6307\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u5230\u4e92\u8054\u7f51\u4e2d\u5404\u79cd\u8d44\u6e90\u7684\u670d\u52a1\u3002\u5982\u56fe10-1\u6240\u793a\uff0cWeb\u7f51\u7edc\u670d\u52a1\u662f\u4e00\u79cd\u88ab\u52a8\u8bbf\u95ee\u7684\u670d\u52a1\u7a0b\u5e8f\uff0c\u5373\u53ea\u6709\u63a5\u6536\u5230\u4e92\u8054\u7f51\u4e2d\u5176\u4ed6\u4e3b\u673a\u53d1\u51fa\u7684\u8bf7\u6c42\u540e\u624d\u4f1a\u54cd\u5e94\uff0c\u6700\u7ec8\u7528\u4e8e\u63d0\u4f9b\u670d\u52a1\u7a0b\u5e8f\u7684Web\u670d\u52a1\u5668\u4f1a\u901a\u8fc7HTTP\uff08\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff09\u6216HTTPS\uff08\u5b89\u5168\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff09\u628a\u8bf7\u6c42\u7684\u5185\u5bb9\u4f20\u9001\u7ed9\u7528\u6237\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u76ee\u524d\u80fd\u591f\u63d0\u4f9bWeb\u7f51\u7edc\u670d\u52a1\u7684\u7a0b\u5e8f\u6709IIS\u3001Nginx\u548cApache\u7b49\u3002\u5176\u4e2d\uff0cIIS\uff08Internet Information Services\uff0c\u4e92\u8054\u7f51\u4fe1\u606f\u670d\u52a1\uff09\u662fWindows\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7684Web\u670d\u52a1\u7a0b\u5e8f\uff0c\u8fd9\u662f\u4e00\u6b3e\u56fe\u5f62\u5316\u7684\u7f51\u7ad9\u7ba1\u7406\u5de5\u5177\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u4f9bWeb\u7f51\u7ad9\u670d\u52a1\uff0c\u8fd8\u53ef\u4ee5\u63d0\u4f9bFTP\u3001NMTP\u3001SMTP\u7b49\u670d\u52a1\u3002\u4f46\u662f\uff0cIIS\u53ea\u80fd\u5728Windows\u7cfb\u7edf\u4e2d\u4f7f\u7528\uff0c\u800c\u6211\u4eec\u8fd9\u672c\u4e66\u7684\u540d\u5b57\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\uff0c\u6240\u4ee5\u5b83\u4e5f\u5c31\u4e0d\u5728\u6211\u4eec\u7684\u5b66\u4e60\u8303\u56f4\u4e4b\u5185\u4e86\u3002<\/p>\n<div class=\"lemma-picture text-pic layout-right\" style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%A1%B5%E9%9D%A2%E8%AF%B7%E6%B1%82%E8%BF%87%E7%A8%8B.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-1076 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%A1%B5%E9%9D%A2%E8%AF%B7%E6%B1%82%E8%BF%87%E7%A8%8B.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"575\" height=\"148\"  sizes=\"auto, (max-width: 575px) 100vw, 575px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center;\">\u56fe10-1&nbsp; \u4e3b\u673a\u4e0eWeb\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">2004\u5e7410\u67084\u65e5\uff0c\u4e3a\u4fc4\u7f57\u65af\u77e5\u540d\u95e8\u6237\u7ad9\u70b9\u800c\u5f00\u53d1\u7684Web\u670d\u52a1\u7a0b\u5e8fNginx\u6a2a\u7a7a\u51fa\u4e16\u3002Nginx\u7a0b\u5e8f\u4f5c\u4e3a\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684\u7f51\u7ad9\u670d\u52a1\u8f6f\u4ef6\uff0c\u56e0\u5176\u7a33\u5b9a\u6027\u548c\u4e30\u5bcc\u7684\u529f\u80fd\u800c\u5feb\u901f\u5360\u9886\u670d\u52a1\u5668\u5e02\u573a\uff0c\u4f46Nginx\u6700\u88ab\u8ba4\u53ef\u7684\u8fd8\u5f53\u662f\u7cfb\u7edf\u8d44\u6e90\u6d88\u8017\u4f4e\u4e14\u5e76\u53d1\u80fd\u529b\u5f3a\uff0c\u56e0\u6b64\u5f97\u5230\u4e86\u56fd\u5185\u8bf8\u5982\u65b0\u6d6a\u3001\u7f51\u6613\u3001\u817e\u8baf\u7b49\u95e8\u6237\u7ad9\u7684\u9752\u7750\u3002\u672c\u4e66\u5c06\u5728\u7b2c20\u7ae0\u8bb2\u89e3Nginx\u670d\u52a1\u7a0b\u5e8f\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">Apache\u7a0b\u5e8f\u662f\u76ee\u524d\u62e5\u6709\u5f88\u9ad8\u5e02\u573a\u5360\u6709\u7387\u7684Web\u670d\u52a1\u7a0b\u5e8f\u4e4b\u4e00\uff0c\u5176\u8de8\u5e73\u53f0\u548c\u5b89\u5168\u6027\u5e7f\u6cdb\u88ab\u8ba4\u53ef\u4e14\u62e5\u6709\u5feb\u901f\u3001\u53ef\u9760\u3001\u7b80\u5355\u7684API\u6269\u5c55\u3002\u56fe10-2\u6240\u793a\u4e3aApache\u670d\u52a1\u57fa\u91d1\u4f1a\u7684\u8457\u540dLogo\uff0c\u5b83\u7684\u540d\u5b57\u53d6\u81ea\u7f8e\u56fd\u5370\u7b2c\u5b89\u4eba\u7684\u571f\u8457\u8bed\uff0c\u5bd3\u610f\u7740\u62e5\u6709\u9ad8\u8d85\u7684\u4f5c\u6218\u7b56\u7565\u548c\u65e0\u7a77\u7684\u8010\u6027\u3002Apache\u670d\u52a1\u7a0b\u5e8f\u53ef\u4ee5\u8fd0\u884c\u5728<a href=\"https:\/\/www.linuxprobe.com\/\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">Linux\u7cfb\u7edf<\/a>\u3001UNIX\u7cfb\u7edf\u751a\u81f3\u662fWindows\u7cfb\u7edf\u4e2d\uff0c\u652f\u6301\u57fa\u4e8eIP\u3001\u57df\u540d\u53ca\u7aef\u53e3\u53f7\u7684\u865a\u62df\u4e3b\u673a\u529f\u80fd\uff0c\u652f\u6301\u591a\u79cd\u8ba4\u8bc1\u65b9\u5f0f\uff0c\u96c6\u6210\u6709\u4ee3\u7406\u670d\u52a1\u5668\u6a21\u5757\u3001\u5b89\u5168Socket\u5c42\uff08SSL\uff09\uff0c\u80fd\u591f\u5b9e\u65f6\u76d1\u89c6\u670d\u52a1\u72b6\u6001\u4e0e\u5b9a\u5236\u65e5\u5fd7\u6d88\u606f\uff0c\u5e76\u6709\u7740\u5404\u7c7b\u4e30\u5bcc\u7684\u6a21\u5757\u652f\u6301\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">Apache\u7a0b\u5e8f\u662f\u5728RHEL 5\u30016\u30017\u7cfb\u7edf\u7684\u9ed8\u8ba4Web\u670d\u52a1\u7a0b\u5e8f\uff0c\u5176\u76f8\u5173\u77e5\u8bc6\u70b9\u4e00\u76f4\u4e5f\u662fRHCSA\u548c<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"rhce\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">RHCE<\/a>\u8ba4\u8bc1\u8003\u8bd5\u7684\u91cd\u70b9\u5185\u5bb9\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-52558 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"600\" height=\"158\"  sizes=\"auto, (max-width: 600px) 100vw, 600px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center;\">\u56fe10-2&nbsp; Apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\u8457\u540d\u7684Logo<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u603b\u7ed3\u6765\u8bf4\uff0cNginx\u670d\u52a1\u7a0b\u5e8f\u4f5c\u4e3a\u540e\u8d77\u4e4b\u79c0\uff0c\u5df2\u7ecf\u901a\u8fc7\u81ea\u8eab\u7684\u4f18\u52bf\u4e0e\u52aa\u529b\u8d62\u5f97\u4e86\u5927\u6279\u7ad9\u957f\u7684\u4fe1\u8d56\u3002\u672c\u4e66\u914d\u5957\u7684\u5728\u7ebf\u5b66\u4e60\u7ad9\u70b9<a href=\"https:\/\/www.linuxprobe.com\/\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">https:\/\/www.linuxprobe.com<\/a>\u5c31\u662f\u57fa\u4e8eNginx\u670d\u52a1\u7a0b\u5e8f\u90e8\u7f72\u7684\uff0c\u4e0d\u5f97\u4e0d\u8bf4Nginx\u4e5f\u771f\u7684\u5f88\u68d2\uff01<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u4f46\u662f\uff0cApache\u7a0b\u5e8f\u4f5c\u4e3a\u8001\u724c\u7684Web\u670d\u52a1\u7a0b\u5e8f\uff0c\u4e00\u65b9\u9762\u5728Web\u670d\u52a1\u5668\u8f6f\u4ef6\u5e02\u573a\u5177\u6709\u76f8\u5f53\u9ad8\u7684\u5360\u6709\u7387\uff0c\u53e6\u4e00\u65b9\u9762Apache\u4e5f\u662fRHEL 7\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7684Web\u670d\u52a1\u7a0b\u5e8f\uff0c\u800c\u4e14\u8fd8\u662fRHCSA\u548c<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"rhce\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">RHCE<\/a>\u8ba4\u8bc1\u8003\u8bd5\u7684\u5fc5\u8003\u5185\u5bb9\uff0c\u56e0\u6b64\u65e0\u8bba\u4ece\u5b9e\u9645\u5e94\u7528\u89d2\u5ea6\u8fd8\u662f\u4ece\u5e94\u5bf9<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"\u7ea2\u5e3d\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">\u7ea2\u5e3d<\/a>\u8ba4\u8bc1\u8003\u8bd5\u7684\u89d2\u5ea6\uff0c\u6211\u4eec\u90fd\u6709\u5fc5\u8981\u597d\u597d\u5b66\u4e60Apache\u670d\u52a1\u7a0b\u5e8f\u7684\u90e8\u7f72\uff0c\u5e76\u6df1\u5165\u6316\u6398\u5176\u53ef\u7528\u7684\u4e30\u5bcc\u529f\u80fd\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u628a\u5149\u76d8\u8bbe\u5907\u4e2d\u7684\u7cfb\u7edf\u955c\u50cf\u6302\u8f7d\u5230\/media\/cdrom\u76ee\u5f55\u3002<\/p>\n<\/div>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/media\/cdrom\r\n[root@linuxprobe&nbsp;~]#&nbsp;mount&nbsp;\/dev\/cdrom&nbsp;\/media\/cdrom\r\nmount:&nbsp;\/dev\/sr0&nbsp;is&nbsp;write-protected,&nbsp;mounting&nbsp;read-only<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u4f7f\u7528Vim\u6587\u672c\u7f16\u8f91\u5668\u521b\u5efaYum\u4ed3\u5e93\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e0b\u8ff0\u547d\u4ee4\u4e2d\u5177\u4f53\u53c2\u6570\u7684\u542b\u4e49\u53ef\u53c2\u8003<a href=\"https:\/\/www.linuxprobe.com\/chapter-04.html#414_Yum\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">4.1.4\u5c0f\u8282<\/a>\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/yum.repos.d\/rhel7.repo\r\n[rhel7]\r\nname=rhel7\r\nbaseurl=file:\/\/\/media\/cdrom\r\nenabled=1\r\ngpgcheck=0<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u52a8\u624b\u5b89\u88c5Apache\u670d\u52a1\u7a0b\u5e8f\u3002\u6ce8\u610f\uff0c\u4f7f\u7528yum\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u65f6\uff0c\u8ddf\u5728\u547d\u4ee4\u540e\u9762\u7684Apache\u670d\u52a1\u7684\u8f6f\u4ef6\u5305\u540d\u79f0\u4e3ahttpd\u3002\u5982\u679c\u76f4\u63a5\u6267\u884cyum install apache\u547d\u4ee4\uff0c\u5219\u7cfb\u7edf\u4f1a\u62a5\u9519\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;yum&nbsp;install&nbsp;httpd\r\nLoaded&nbsp;plugins:&nbsp;langpacks,&nbsp;product-id,&nbsp;subscription-manager\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\nDependencies&nbsp;Resolved\r\n================================================================================\r\n&nbsp;Package&nbsp;Arch&nbsp;Version&nbsp;Repository&nbsp;Size\r\n================================================================================\r\nInstalling:\r\n&nbsp;httpd&nbsp;x86_64&nbsp;2.4.6-17.el7&nbsp;rhel&nbsp;1.2&nbsp;M\r\nInstalling&nbsp;for&nbsp;dependencies:\r\n&nbsp;apr&nbsp;x86_64&nbsp;1.4.8-3.el7&nbsp;rhel&nbsp;103&nbsp;k\r\n&nbsp;apr-util&nbsp;x86_64&nbsp;1.5.2-6.el7&nbsp;rhel&nbsp;92&nbsp;k\r\n&nbsp;httpd-tools&nbsp;x86_64&nbsp;2.4.6-17.el7&nbsp;rhel&nbsp;77&nbsp;k\r\n&nbsp;mailcap&nbsp;noarch&nbsp;2.1.41-2.el7&nbsp;rhel&nbsp;31&nbsp;k\r\nTransaction&nbsp;Summary\r\n================================================================================\r\nInstall&nbsp;1&nbsp;Package&nbsp;(+4&nbsp;Dependent&nbsp;packages)\r\nTotal&nbsp;download&nbsp;size:&nbsp;1.5&nbsp;M\r\nInstalled&nbsp;size:&nbsp;4.3&nbsp;M\r\nIs&nbsp;this&nbsp;ok&nbsp;[y\/d\/N]:&nbsp;yDownloading&nbsp;packages:\r\n--------------------------------------------------------------------------------\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\nComplete!<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c4\u6b65<\/strong>\uff1a\u542f\u7528httpd\u670d\u52a1\u7a0b\u5e8f\u5e76\u5c06\u5176\u52a0\u5165\u5230\u5f00\u673a\u542f\u52a8\u9879\u4e2d\uff0c\u4f7f\u5176\u80fd\u591f\u968f\u7cfb\u7edf\u5f00\u673a\u800c\u8fd0\u884c\uff0c\u4ece\u800c\u6301\u7eed\u4e3a\u7528\u6237\u63d0\u4f9bWeb\u670d\u52a1\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;start&nbsp;httpd\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;enable&nbsp;httpd\r\nln&nbsp;-s&nbsp;&#39;\/usr\/lib\/systemd\/system\/httpd.service&#39;&nbsp;&#39;\/etc\/systemd\/system\/multi-user.target.wants\/httpd.service&#39;<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u5728\u6d4f\u89c8\u5668\uff08\u8fd9\u91cc\u4ee5Firefox\u6d4f\u89c8\u5668\u4e3a\u4f8b\uff09\u7684\u5730\u5740\u680f\u4e2d\u8f93\u5165http:\/\/127.0.0.1\u5e76\u6309\u56de\u8f66\u952e\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u7528\u4e8e\u63d0\u4f9bWeb\u670d\u52a1\u7684httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9875\u9762\u4e86\uff0c\u5982\u56fe10-3\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%BB%98%E8%AE%A4%E9%A1%B5%E9%9D%A2.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-1102 alignnone\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%BB%98%E8%AE%A4%E9%A1%B5%E9%9D%A2.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"768\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-3&nbsp; httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9875\u9762<\/p>\n<h5 class=\"para\" style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"102\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">10.2&nbsp;\u914d\u7f6e\u670d\u52a1\u6587\u4ef6\u53c2\u6570<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9700\u8981\u63d0\u9192\u5927\u5bb6\u7684\u662f\uff0c\u524d\u6587\u4ecb\u7ecd\u7684httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u5b89\u88c5\u548c\u8fd0\u884c\uff0c\u4ec5\u4ec5\u662fhttpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e00\u4e9b\u76ae\u6bdb\uff0c\u6211\u4eec\u4f9d\u7136\u6709\u5f88\u957f\u7684\u9053\u8def\u8981\u8d70\u3002\u5728<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"linux\u7cfb\u7edf\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">Linux\u7cfb\u7edf<\/a>\u4e2d\u914d\u7f6e\u670d\u52a1\uff0c\u5176\u5b9e\u5c31\u662f\u4fee\u6539\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u56e0\u6b64\uff0c\u8fd8\u9700\u8981\u77e5\u9053\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u6240\u5728\u4f4d\u7f6e\u4ee5\u53ca\u7528\u9014\uff0chttpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u8981\u914d\u7f6e\u6587\u4ef6\u53ca\u5b58\u653e\u4f4d\u7f6e\u5982\u886810-1\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u886810-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Linux\u7cfb\u7edf\u4e2d\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<div class=\"para\" style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<table id=\"tablepress-60\" class=\"tablepress tablepress-id-60\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u670d\u52a1\u76ee\u5f55<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\/etc\/httpd<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u4e3b\u914d\u7f6e\u6587\u4ef6<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\/etc\/httpd\/conf\/httpd.conf<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u7f51\u7ad9\u6570\u636e\u76ee\u5f55<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\/var\/www\/html<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u8bbf\u95ee\u65e5\u5fd7<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\/var\/log\/httpd\/access_log<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u9519\u8bef\u65e5\u5fd7<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\/var\/log\/httpd\/error_log<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><\/p>\n<\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u5728\u9996\u6b21\u6253\u5f00httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u80fd\u4f1a\u5413\u4e00\u8df3\u2014\u7adf\u7136\u6709353\u884c\uff01\u8fd9\u5f97\u81f3\u5c11\u9700\u8981\u4e00\u5468\u7684\u65f6\u95f4\u624d\u80fd\u770b\u5b8c\u5427\uff1f\uff01\u4f46\u662f\uff0c\u5927\u5bb6\u53ea\u8981\u4ed4\u7ec6\u89c2\u770b\u5c31\u4f1a\u53d1\u73b0<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"\u5218\u9044\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">\u5218\u9044<\/a>\u8001\u5e08\u5728\u8fd9\u91cc\u8c03\u76ae\u4e86\u3002\u56e0\u4e3a\u5728\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u6240\u6709\u4ee5\u4e95\u53f7\uff08#\uff09\u5f00\u59cb\u7684\u884c\u90fd\u662f\u6ce8\u91ca\u884c\uff0c\u5176\u76ee\u7684\u662f\u5bf9httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u529f\u80fd\u6216\u67d0\u4e00\u884c\u53c2\u6570\u8fdb\u884c\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u9010\u884c\u7814\u7a76\u8fd9\u4e9b\u5185\u5bb9\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5b58\u5728\u4e09\u79cd\u7c7b\u578b\u7684\u4fe1\u606f\uff1a\u6ce8\u91ca\u884c\u4fe1\u606f\u3001\u5168\u5c40\u914d\u7f6e\u3001\u533a\u57df\u914d\u7f6e\uff0c\u5982\u56fe10-4\u6240\u793a\u3002<\/p>\n<div class=\"para\" style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/httpd%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-1113 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/httpd%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"626\" height=\"412\"  sizes=\"auto, (max-width: 626px) 100vw, 626px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-4&nbsp; httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u7684\u6784\u6210<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5404\u4f4d\u8bfb\u8005\u5728\u5b66\u4e60\u7b2c4\u7ae0\u65f6\u5df2\u7ecf\u63a5\u89e6\u8fc7\u6ce8\u91ca\u4fe1\u606f\uff0c\u56e0\u6b64\u8fd9\u91cc\u4e3b\u8981\u8bb2\u89e3\u5168\u5c40\u914d\u7f6e\u53c2\u6570\u4e0e\u533a\u57df\u914d\u7f6e\u53c2\u6570\u7684\u533a\u522b\u3002\u987e\u540d\u601d\u4e49\uff0c\u5168\u5c40\u914d\u7f6e\u53c2\u6570\u5c31\u662f\u4e00\u79cd\u5168\u5c40\u6027\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u53ef\u4f5c\u7528\u4e8e\u5bf9\u6240\u6709\u7684\u5b50\u7ad9\u70b9\uff0c\u65e2\u4fdd\u8bc1\u4e86\u5b50\u7ad9\u70b9\u7684\u6b63\u5e38\u8bbf\u95ee\uff0c\u4e5f\u6709\u6548\u51cf\u5c11\u4e86\u9891\u7e41\u5199\u5165\u91cd\u590d\u53c2\u6570\u7684\u5de5\u4f5c\u91cf\u3002\u533a\u57df\u914d\u7f6e\u53c2\u6570\u5219\u662f\u5355\u72ec\u9488\u5bf9\u4e8e\u6bcf\u4e2a\u72ec\u7acb\u7684\u5b50\u7ad9\u70b9\u8fdb\u884c\u8bbe\u7f6e\u7684\u3002\u5c31\u50cf\u5728\u5927\u5b66\u98df\u5802\u91cc\u9762\u6253\u996d\uff0c\u98df\u5802\u8d1f\u8d23\u6253\u996d\u7684\u963f\u59e8\u5148\u7ed9\u6bcf\u4f4d\u540c\u5b66\u6765\u4e00\u7897\u6807\u51c6\u5927\u5c0f\u7684\u767d\u996d\uff08\u5168\u5c40\u914d\u7f6e\uff09\uff0c\u7136\u540e\u518d\u6839\u636e\u6bcf\u4f4d\u540c\u5b66\u7684\u5177\u4f53\u8981\u6c42\u76db\u653e\u4ed6\u4eec\u60f3\u5403\u7684\u83dc\uff08\u533a\u57df\u914d\u7f6e\uff09\u3002\u5728httpd\u670d\u52a1\u7a0b\u5e8f\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u6700\u4e3a\u5e38\u7528\u7684\u53c2\u6570\u5982\u886810-2\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u886810-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u914d\u7f6ehttpd\u670d\u52a1\u7a0b\u5e8f\u65f6\u6700\u5e38\u7528\u7684\u53c2\u6570\u4ee5\u53ca\u7528\u9014\u63cf\u8ff0<\/p>\n<table id=\"tablepress-61\" class=\"tablepress tablepress-id-61\" width=\"712\">\n<tbody class=\"row-hover\" style=\"box-sizing: border-box;\">\n<tr class=\"row-1 odd firstRow\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">ServerRoot<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-top-width: 0px; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u670d\u52a1\u76ee\u5f55<\/td>\n<\/tr>\n<tr class=\"row-2 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">ServerAdmin<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u7ba1\u7406\u5458\u90ae\u7bb1<\/td>\n<\/tr>\n<tr class=\"row-3 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">User<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u8fd0\u884c\u670d\u52a1\u7684\u7528\u6237<\/td>\n<\/tr>\n<tr class=\"row-4 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">Group<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u8fd0\u884c\u670d\u52a1\u7684\u7528\u6237\u7ec4<\/td>\n<\/tr>\n<tr class=\"row-5 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">ServerName<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u7f51\u7ad9\u670d\u52a1\u5668\u7684\u57df\u540d<\/td>\n<\/tr>\n<tr class=\"row-6 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">DocumentRoot<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u7f51\u7ad9\u6570\u636e\u76ee\u5f55<\/td>\n<\/tr>\n<tr class=\"row-7 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">Listen<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u76d1\u542c\u7684IP\u5730\u5740\u4e0e\u7aef\u53e3\u53f7<\/td>\n<\/tr>\n<tr class=\"row-8 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">DirectoryIndex<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u9ed8\u8ba4\u7684\u7d22\u5f15\u9875\u9875\u9762<\/td>\n<\/tr>\n<tr class=\"row-9 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">ErrorLog<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6<\/td>\n<\/tr>\n<tr class=\"row-10 even\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">CustomLog<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: initial;\">\u8bbf\u95ee\u65e5\u5fd7\u6587\u4ef6<\/td>\n<\/tr>\n<tr class=\"row-11 odd\" style=\"box-sizing: border-box;\">\n<td class=\"column-1\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">Timeout<\/td>\n<td class=\"column-2\" style=\"box-sizing: border-box; padding: 8px; border-right-style: none; border-bottom-style: none; border-left-style: none; vertical-align: top; float: none !important; background: 0px 0px rgb(249, 249, 249);\">\u7f51\u9875\u8d85\u65f6\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e3a300\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4ece\u886810-2\u4e2d\u53ef\u77e5\uff0cDocumentRoot\u53c2\u6570\u7528\u4e8e\u5b9a\u4e49\u7f51\u7ad9\u6570\u636e\u7684\u4fdd\u5b58\u8def\u5f84\uff0c\u5176\u53c2\u6570\u7684\u9ed8\u8ba4\u503c\u662f\u628a\u7f51\u7ad9\u6570\u636e\u5b58\u653e\u5230\/var\/www\/html\u76ee\u5f55\u4e2d\uff1b\u800c\u5f53\u524d\u7f51\u7ad9\u666e\u904d\u7684\u9996\u9875\u9762\u540d\u79f0\u662findex.html\uff0c\u56e0\u6b64\u53ef\u4ee5\u5411\/var\/www\/html\u76ee\u5f55\u4e2d\u5199\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u66ff\u6362\u6389httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9996\u9875\u9762\uff0c\u8be5\u64cd\u4f5c\u4f1a\u7acb\u5373\u751f\u6548\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u6267\u884c\u4e0a\u8ff0\u64cd\u4f5c\u4e4b\u540e\uff0c\u518d\u5728Firefox\u6d4f\u89c8\u5668\u4e2d\u5237\u65b0httpd\u670d\u52a1\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u770b\u5230\u8be5\u7a0b\u5e8f\u7684\u9996\u9875\u9762\u5185\u5bb9\u5df2\u7ecf\u53d1\u751f\u4e86\u6539\u53d8\uff0c\u5982\u56fe10-5\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;Welcome&nbsp;To&nbsp;LinuxProbe.Com&quot;&nbsp;&gt;&nbsp;\/var\/www\/html\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<div class=\"para\" style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81apache%E6%9C%8D%E5%8A%A1%E5%AE%9E%E9%AA%8C%E6%95%88%E6%9E%9C.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2251 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81apache%E6%9C%8D%E5%8A%A1%E5%AE%9E%E9%AA%8C%E6%95%88%E6%9E%9C.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"962\" height=\"180\"  sizes=\"auto, (max-width: 962px) 100vw, 962px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-5&nbsp; httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9996\u9875\u9762\u5185\u5bb9\u5df2\u7ecf\u88ab\u4fee\u6539<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5927\u5bb6\u5728\u5b8c\u6210\u8fd9\u4e2a\u5b9e\u9a8c\u4e4b\u540e\uff0c\u662f\u4e0d\u662f\u4fe1\u5fc3\u7206\u68da\u4e86\u5462\uff1f\uff01\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7f51\u7ad9\u6570\u636e\u662f\u4fdd\u5b58\u5728\/var\/www\/html\u76ee\u5f55\u4e2d\uff0c\u800c\u5982\u679c\u60f3\u628a\u4fdd\u5b58\u7f51\u7ad9\u6570\u636e\u7684\u76ee\u5f55\u4fee\u6539\u4e3a\/home\/wwwroot\u76ee\u5f55\uff0c\u8be5\u600e\u4e48\u64cd\u4f5c\u5462\uff1f\u4e14\u770b\u4e0b\u6587\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5efa\u7acb\u7f51\u7ad9\u6570\u636e\u7684\u4fdd\u5b58\u76ee\u5f55\uff0c\u5e76\u521b\u5efa\u9996\u9875\u6587\u4ef6\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;\/home\/wwwroot\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;The&nbsp;New&nbsp;Web&nbsp;Directory&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/index.html<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u6253\u5f00httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\uff0c\u5c06\u7ea6\u7b2c119\u884c\u7528\u4e8e\u5b9a\u4e49\u7f51\u7ad9\u6570\u636e\u4fdd\u5b58\u8def\u5f84\u7684\u53c2\u6570DocumentRoot\u4fee\u6539\u4e3a\/home\/wwwroot\uff0c\u540c\u65f6\u8fd8\u9700\u8981\u5c06\u7ea6\u7b2c124\u884c\u7528\u4e8e\u5b9a\u4e49\u76ee\u5f55\u6743\u9650\u7684\u53c2\u6570Directory\u540e\u9762\u7684\u8def\u5f84\u4e5f\u4fee\u6539\u4e3a\/home\/wwwroot\u3002\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u5b8c\u6bd5\u540e\u5373\u53ef\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf&nbsp;\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n113&nbsp;\r\n114&nbsp;#\r\n115&nbsp;#&nbsp;DocumentRoot:&nbsp;The&nbsp;directory&nbsp;out&nbsp;of&nbsp;which&nbsp;you&nbsp;will&nbsp;serve&nbsp;your\r\n116&nbsp;#&nbsp;documents.&nbsp;By&nbsp;default,&nbsp;all&nbsp;requests&nbsp;are&nbsp;taken&nbsp;from&nbsp;this&nbsp;directory,&nbsp;bu&nbsp;t\r\n117&nbsp;#&nbsp;symbolic&nbsp;links&nbsp;and&nbsp;aliases&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;point&nbsp;to&nbsp;other&nbsp;locations.\r\n118&nbsp;#\r\n119&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot&quot;\r\n120&nbsp;\r\n121&nbsp;#\r\n122&nbsp;#&nbsp;Relax&nbsp;access&nbsp;to&nbsp;content&nbsp;within&nbsp;\/var\/www.\r\n123&nbsp;#\r\n124&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot&quot;&gt;\r\n125&nbsp;AllowOverride&nbsp;None\r\n126&nbsp;#&nbsp;Allow&nbsp;open&nbsp;access:\r\n127&nbsp;Require&nbsp;all&nbsp;granted\r\n128&nbsp;&lt;\/Directory&gt;\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n[root@linuxprobe&nbsp;~]#<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u91cd\u65b0\u542f\u52a8httpd\u670d\u52a1\u7a0b\u5e8f\u5e76\u9a8c\u8bc1\u6548\u679c\uff0c\u6d4f\u89c8\u5668\u5237\u65b0\u9875\u9762\u540e\u7684\u5185\u5bb9\u5982\u56fe10-6\u6240\u793a\u3002\u5947\u602a\uff01\u4e3a\u4ec0\u4e48\u770b\u5230\u4e86httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9996\u9875\u9762\uff1f\u6309\u7406\u6765\u8bf4\uff0c\u53ea\u6709\u5728\u7f51\u7ad9\u7684\u9996\u9875\u9762\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u8005\u7528\u6237\u6743\u9650\u4e0d\u8db3\u65f6\uff0c\u624d\u663e\u793ahttpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9996\u9875\u9762\u3002\u6211\u4eec\u5728\u5c1d\u8bd5\u8bbf\u95eehttp:\/\/127.0.0.1\/index.html\u9875\u9762\u65f6\uff0c\u7adf\u7136\u53d1\u73b0\u9875\u9762\u4e2d\u663e\u793a\u201cForbidden,You don&#39;t have permission to access \/index.html on this server.\u201d\u3002\u800c\u8fd9\u4e00\u5207\u6b63\u662fSELinux\u5728\u6363\u9b3c\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%BB%98%E8%AE%A4%E9%A1%B5%E9%9D%A2.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1102 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%BB%98%E8%AE%A4%E9%A1%B5%E9%9D%A2.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"768\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-6&nbsp; httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9996\u9875\u9762<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"color: rgb(0, 128, 0); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.1; box-sizing: border-box;\">10.3&nbsp;SELinux<\/strong><strong style=\"color: rgb(0, 128, 0); font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.1; box-sizing: border-box;\">\u5b89\u5168\u5b50\u7cfb\u7edf<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"box-sizing: border-box; float: right;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/selinux.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"wp-image-2253 alignright\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/selinux.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"109\" height=\"111\"  sizes=\"auto, (max-width: 109px) 100vw, 109px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SELinux\uff08Security-Enhanced Linux\uff09\u662f\u7f8e\u56fd\u56fd\u5bb6\u5b89\u5168\u5c40\u5728Linux\u5f00\u6e90\u793e\u533a\u7684\u5e2e\u52a9\u4e0b\u5f00\u53d1\u7684\u4e00\u4e2a\u5f3a\u5236\u8bbf\u95ee\u63a7\u5236\uff08MAC\uff0cMandatory Access Control\uff09\u7684\u5b89\u5168\u5b50\u7cfb\u7edf\u3002RHEL 7\u7cfb\u7edf\u4f7f\u7528SELinux\u6280\u672f\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u8ba9\u5404\u4e2a\u670d\u52a1\u8fdb\u7a0b\u90fd\u53d7\u5230\u7ea6\u675f\uff0c\u4f7f\u5176\u4ec5\u83b7\u53d6\u5230\u672c\u5e94\u83b7\u53d6\u7684\u8d44\u6e90\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4f8b\u5982\uff0c\u60a8\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u4e0b\u8f7d\u4e86\u4e00\u4e2a\u7f8e\u56fe\u8f6f\u4ef6\uff0c\u5f53\u60a8\u5168\u795e\u8d2f\u6ce8\u5730\u4f7f\u7528\u5b83\u7ed9\u7167\u7247\u8fdb\u884c\u7f8e\u989c\u7684\u65f6\u5019\uff0c\u5b83\u5374\u5728\u540e\u53f0\u9ed8\u9ed8\u76d1\u542c\u7740\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u7684\u5bc6\u7801\u4fe1\u606f\uff0c\u800c\u8fd9\u663e\u7136\u4e0d\u5e94\u8be5\u662f\u5b83\u5e94\u505a\u7684\u4e8b\u60c5\uff08\u54ea\u6015\u662f\u8bbf\u95ee\u7535\u8111\u4e2d\u7684\u56fe\u7247\u8d44\u6e90\uff0c\u90fd\u60c5\u6709\u53ef\u539f\uff09\u3002SELinux\u5b89\u5168\u5b50\u7cfb\u7edf\u5c31\u662f\u4e3a\u4e86\u675c\u7edd\u6b64\u7c7b\u60c5\u51b5\u800c\u8bbe\u8ba1\u7684\uff0c\u5b83\u80fd\u591f\u4ece\u591a\u65b9\u9762\u76d1\u63a7\u8fdd\u6cd5\u884c\u4e3a\uff1a\u5bf9\u670d\u52a1\u7a0b\u5e8f\u7684\u529f\u80fd\u8fdb\u884c\u9650\u5236\uff08SELinux\u57df\u9650\u5236\u53ef\u4ee5\u786e\u4fdd\u670d\u52a1\u7a0b\u5e8f\u505a\u4e0d\u4e86\u51fa\u683c\u7684\u4e8b\u60c5\uff09\uff1b\u5bf9\u6587\u4ef6\u8d44\u6e90\u7684\u8bbf\u95ee\u9650\u5236\uff08SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u786e\u4fdd\u6587\u4ef6\u8d44\u6e90\u53ea\u80fd\u88ab\u5176\u6240\u5c5e\u7684\u670d\u52a1\u7a0b\u5e8f\u8fdb\u884c\u8bbf\u95ee\uff09\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https:\/\/www.linuxprobe.com\/\" title=\"\u5218\u9044\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">\u5218\u9044<\/a>\u8001\u5e08\u7ecf\u5e38\u4f1a\u628a\u201cSELinux\u57df\u201d\u548c\u201cSELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u201d\u79f0\u4e3a\u662fLinux\u7cfb\u7edf\u4e2d\u7684\u53cc\u4fdd\u9669\uff0c\u7cfb\u7edf\u5185\u7684\u670d\u52a1\u7a0b\u5e8f\u53ea\u80fd\u89c4\u89c4\u77e9\u77e9\u5730\u62ff\u5230\u81ea\u5df1\u6240\u5e94\u8be5\u83b7\u53d6\u7684\u8d44\u6e90\uff0c\u8fd9\u6837\u5373\u4fbf\u9ed1\u5ba2\u5165\u4fb5\u4e86\u7cfb\u7edf\uff0c\u4e5f\u65e0\u6cd5\u5229\u7528\u7cfb\u7edf\u5185\u7684\u670d\u52a1\u7a0b\u5e8f\u8fdb\u884c\u8d8a\u6743\u64cd\u4f5c\u3002\u4f46\u662f\uff0c\u975e\u5e38\u53ef\u60dc\u7684\u662f\uff0cSELinux\u670d\u52a1\u6bd4\u8f83\u590d\u6742\uff0c\u914d\u7f6e\u96be\u5ea6\u4e5f\u5f88\u5927\uff0c\u52a0\u4e4b\u5f88\u591a\u8fd0\u7ef4\u4eba\u5458\u5bf9\u8fd9\u9879\u6280\u672f\u7406\u89e3\u4e0d\u6df1\uff0c\u4ece\u800c\u5bfc\u81f4\u5f88\u591a\u670d\u52a1\u5668\u5728\u90e8\u7f72\u597dLinux\u7cfb\u7edf\u540e\u76f4\u63a5\u5c06SELinux\u7981\u7528\u4e86\uff1b\u8fd9\u7edd\u5bf9\u4e0d\u662f\u660e\u667a\u7684\u9009\u62e9\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SELinux\u670d\u52a1\u6709\u4e09\u79cd\u914d\u7f6e\u6a21\u5f0f\uff0c\u5177\u4f53\u5982\u4e0b\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">enforcing\uff1a\u5f3a\u5236\u542f\u7528\u5b89\u5168\u7b56\u7565\u6a21\u5f0f\uff0c\u5c06\u62e6\u622a\u670d\u52a1\u7684\u4e0d\u5408\u6cd5\u8bf7\u6c42\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">permissive\uff1a\u9047\u5230\u670d\u52a1\u8d8a\u6743\u8bbf\u95ee\u65f6\uff0c\u53ea\u53d1\u51fa\u8b66\u544a\u800c\u4e0d\u5f3a\u5236\u62e6\u622a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">disabled\uff1a\u5bf9\u4e8e\u8d8a\u6743\u7684\u884c\u4e3a\u4e0d\u8b66\u544a\u4e5f\u4e0d\u62e6\u622a\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u672c\u4e66\u4e2d\u7684\u6240\u6709\u5b9e\u9a8c\u90fd\u662f\u5728\u5f3a\u5236\u542f\u7528\u5b89\u5168\u7b56\u7565\u6a21\u5f0f\u4e0b\u8fdb\u884c\u7684\uff0c\u867d\u7136\u5728\u7981\u7528SELinux\u670d\u52a1\u540e\u786e\u5b9e\u80fd\u591f\u51cf\u5c11\u62a5\u9519\u51e0\u7387\uff0c\u4f46\u8fd9\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u76f8\u5f53\u4e0d\u63a8\u8350\u3002\u5efa\u8bae\u5927\u5bb6\u68c0\u67e5\u4e00\u4e0b\u81ea\u5df1\u7684\u7cfb\u7edf\uff0c\u67e5\u770bSELinux\u670d\u52a1\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684\u9ed8\u8ba4\u72b6\u6001\u3002\u5982\u679c\u662fpermissive\u6216disabled\uff0c\u5efa\u8bae\u8d76\u7d27\u4fee\u6539\u4e3aenforcing\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/selinux\/config\r\n#&nbsp;This&nbsp;file&nbsp;controls&nbsp;the&nbsp;state&nbsp;of&nbsp;SELinux&nbsp;on&nbsp;the&nbsp;system.\r\n#&nbsp;SELINUX=&nbsp;can&nbsp;take&nbsp;one&nbsp;of&nbsp;these&nbsp;three&nbsp;values:\r\n#&nbsp;enforcing&nbsp;-&nbsp;SELinux&nbsp;security&nbsp;policy&nbsp;is&nbsp;enforced.\r\n#&nbsp;permissive&nbsp;-&nbsp;SELinux&nbsp;prints&nbsp;warnings&nbsp;instead&nbsp;of&nbsp;enforcing.\r\n#&nbsp;disabled&nbsp;-&nbsp;No&nbsp;SELinux&nbsp;policy&nbsp;is&nbsp;loaded.\r\nSELINUX=enforcing#&nbsp;SELINUXTYPE=&nbsp;can&nbsp;take&nbsp;one&nbsp;of&nbsp;these&nbsp;two&nbsp;values:\r\n#&nbsp;targeted&nbsp;-&nbsp;Targeted&nbsp;processes&nbsp;are&nbsp;protected,\r\n#&nbsp;minimum&nbsp;-&nbsp;Modification&nbsp;of&nbsp;targeted&nbsp;policy.&nbsp;Only&nbsp;selected&nbsp;processes&nbsp;are&nbsp;protected.&nbsp;\r\n#&nbsp;mls&nbsp;-&nbsp;Multi&nbsp;Level&nbsp;Security&nbsp;protection.\r\nSELINUXTYPE=targeted<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SELinux\u670d\u52a1\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5b9a\u4e49\u7684\u662fSELinux\u7684\u9ed8\u8ba4\u8fd0\u884c\u72b6\u6001\uff0c\u53ef\u4ee5\u5c06\u5176\u7406\u89e3\u4e3a\u7cfb\u7edf\u91cd\u542f\u540e\u7684\u72b6\u6001\uff0c\u56e0\u6b64\u5b83\u4e0d\u4f1a\u5728\u66f4\u6539\u540e\u7acb\u5373\u751f\u6548\u3002\u53ef\u4ee5\u4f7f\u7528getenforce\u547d\u4ee4\u83b7\u5f97\u5f53\u524dSELinux\u670d\u52a1\u7684\u8fd0\u884c\u6a21\u5f0f\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;getenforce&nbsp;\r\nEnforcing<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4e3a\u4e86\u786e\u8ba4\u56fe10-6\u6240\u793a\u7684\u7ed3\u679c\u786e\u5b9e\u662f\u56e0\u4e3aSELinux\u800c\u5bfc\u81f4\u7684\uff0c\u53ef\u4ee5\u7528setenforce [0|1]\u547d\u4ee4\u4fee\u6539SELinux\u5f53\u524d\u7684\u8fd0\u884c\u6a21\u5f0f\uff080\u4e3a\u7981\u7528\uff0c1\u4e3a\u542f\u7528\uff09\u3002\u6ce8\u610f\uff0c\u8fd9\u79cd\u4fee\u6539\u53ea\u662f\u4e34\u65f6\u7684\uff0c\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u5c31\u4f1a\u5931\u6548\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;setenforce&nbsp;0\r\n[root@linuxprobe&nbsp;~]#&nbsp;getenforce\r\nPermissive<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u518d\u6b21\u5237\u65b0\u7f51\u9875\uff0c\u5c31\u4f1a\u770b\u5230\u6b63\u5e38\u7684\u7f51\u9875\u5185\u5bb9\u4e86\uff0c\u5982\u56fe10-7\u6240\u793a\u3002\u53ef\u89c1\uff0c\u95ee\u9898\u786e\u5b9e\u662f\u51fa\u5728\u4e86SELinux\u670d\u52a1\u4e0a\u9762\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;wwwroot]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%85%8D%E7%BD%AE%E6%88%90%E5%8A%9F%E7%9A%84%E9%A1%B5%E9%9D%A21.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"wp-image-2262 size-full aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%85%8D%E7%BD%AE%E6%88%90%E5%8A%9F%E7%9A%84%E9%A1%B5%E9%9D%A21.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"224\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-7&nbsp; \u9875\u9762\u5185\u5bb9\u6309\u7167\u9884\u671f\u663e\u793a<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u73b0\u5728\uff0c\u6211\u4eec\u6765\u56de\u5fc6\u4e00\u4e0b\u524d\u9762\u7684\u64cd\u4f5c\u4e2d\u5230\u5e95\u662f\u54ea\u91cc\u51fa\u95ee\u9898\u4e86\u5462\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u529f\u80fd\u662f\u5141\u8bb8\u7528\u6237\u8bbf\u95ee\u7f51\u7ad9\u5185\u5bb9\uff0c\u56e0\u6b64SELinux\u80af\u5b9a\u4f1a\u9ed8\u8ba4\u653e\u884c\u7528\u6237\u5bf9\u7f51\u7ad9\u7684\u8bf7\u6c42\u64cd\u4f5c\u3002\u4f46\u662f\uff0c\u6211\u4eec\u5c06\u7f51\u7ad9\u6570\u636e\u7684\u9ed8\u8ba4\u4fdd\u5b58\u76ee\u5f55\u4fee\u6539\u4e3a\u4e86\/home\/wwwroot\uff0c\u800c\u8fd9\u5c31\u4ea7\u751f\u95ee\u9898\u4e86\u3002\u57286.1\u5c0f\u8282\u4e2d\u8bb2\u5230\uff0c\/home\u76ee\u5f55\u662f\u7528\u6765\u5b58\u653e\u666e\u901a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u6570\u636e\u7684\uff0c\u800c\u73b0\u5728\uff0chttpd\u63d0\u4f9b\u7684\u7f51\u7ad9\u670d\u52a1\u5374\u8981\u53bb\u83b7\u53d6\u666e\u901a\u7528\u6237\u5bb6\u76ee\u5f55\u4e2d\u7684\u6570\u636e\u4e86\uff0c\u8fd9\u663e\u7136\u8fdd\u53cd\u4e86SELinux\u7684\u76d1\u7ba1\u539f\u5219\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u73b0\u5728\uff0c\u6211\u4eec\u628aSELinux\u670d\u52a1\u6062\u590d\u5230\u5f3a\u5236\u542f\u7528\u5b89\u5168\u7b56\u7565\u6a21\u5f0f\uff0c\u7136\u540e\u5206\u522b\u67e5\u770b\u539f\u59cb\u7f51\u7ad9\u6570\u636e\u7684\u4fdd\u5b58\u76ee\u5f55\u4e0e\u5f53\u524d\u7f51\u7ad9\u6570\u636e\u7684\u4fdd\u5b58\u76ee\u5f55\u662f\u5426\u62e5\u6709\u4e0d\u540c\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u503c\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;setenforce&nbsp;1\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-Zd&nbsp;\/var\/www\/html\r\ndrwxr-xr-x.&nbsp;root&nbsp;root&nbsp;system_u:object_r:httpd_sys_content_t:s0&nbsp;\/var\/www\/html\r\n[root@linuxprobe&nbsp;~]#&nbsp;ls&nbsp;-Zd&nbsp;\/home\/wwwroot\r\ndrwxrwxrwx.&nbsp;root&nbsp;root&nbsp;unconfined_u:object_r:home_root_t:s0&nbsp;\/home\/wwwroot<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u6587\u4ef6\u4e0a\u8bbe\u7f6e\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u662f\u7531\u7528\u6237\u6bb5\u3001\u89d2\u8272\u6bb5\u4ee5\u53ca\u7c7b\u578b\u6bb5\u7b49\u591a\u4e2a\u4fe1\u606f\u9879\u5171\u540c\u7ec4\u6210\u7684\u3002\u5176\u4e2d\uff0c\u7528\u6237\u6bb5system_u\u4ee3\u8868\u7cfb\u7edf\u8fdb\u7a0b\u7684\u8eab\u4efd\uff0c\u89d2\u8272\u6bb5object_r\u4ee3\u8868\u6587\u4ef6\u76ee\u5f55\u7684\u89d2\u8272\uff0c\u7c7b\u578b\u6bb5httpd_sys_content_t\u4ee3\u8868\u7f51\u7ad9\u670d\u52a1\u7684\u7cfb\u7edf\u6587\u4ef6\u3002\u7531\u4e8eSELinux\u670d\u52a1\u5b9e\u5728\u592a\u8fc7\u590d\u6742\uff0c\u73b0\u5728\u5927\u5bb6\u53ea\u9700\u8981\u7b80\u5355\u719f\u6089SELinux\u670d\u52a1\u7684\u4f5c\u7528\u5c31\u53ef\u4ee5\uff0c\u5218\u9044\u8001\u5e08\u672a\u6765\u4f1a\u5728\u672c\u4e66\u7684\u8fdb\u9636\u7bc7\u4e2d\u5355\u72ec\u62ff\u51fa\u4e00\u4e2a\u7ae0\u8282\u4ed4\u7ec6\u8bb2\u89e3SELinux\u670d\u52a1\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9488\u5bf9\u5f53\u524d\u8fd9\u79cd\u60c5\u51b5\uff0c\u6211\u4eec\u53ea\u9700\u8981\u4f7f\u7528semanage\u547d\u4ee4\uff0c\u5c06\u5f53\u524d\u7f51\u7ad9\u76ee\u5f55\/home\/wwwroot\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u4fee\u6539\u4e3a\u8ddf\u539f\u59cb\u7f51\u7ad9\u76ee\u5f55\u7684\u4e00\u6837\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">semanage\u547d\u4ee4<\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">semanage\u547d\u4ee4\u7528\u4e8e\u7ba1\u7406SELinux\u7684\u7b56\u7565\uff0c\u683c\u5f0f\u4e3a\u201csemanage [\u9009\u9879] [\u6587\u4ef6]\u201d\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">SELinux\u670d\u52a1\u6781\u5927\u5730\u63d0\u5347\u4e86Linux\u7cfb\u7edf\u7684\u5b89\u5168\u6027\uff0c\u5c06\u7528\u6237\u6743\u9650\u7262\u7262\u5730\u9501\u5728\u7b3c\u5b50\u91cc\u3002semanage\u547d\u4ee4\u4e0d\u4ec5\u80fd\u591f\u50cf\u4f20\u7edfchcon\u547d\u4ee4\u90a3\u6837\u2014\u8bbe\u7f6e\u6587\u4ef6\u3001\u76ee\u5f55\u7684\u7b56\u7565\uff0c\u8fd8\u53ef\u4ee5\u7ba1\u7406\u7f51\u7edc\u7aef\u53e3\u3001\u6d88\u606f\u63a5\u53e3\uff08\u8fd9\u4e9b\u65b0\u7279\u6027\u5c06\u5728\u672c\u7ae0\u540e\u6587\u4e2d\u6db5\u76d6\uff09\u3002\u4f7f\u7528semanage\u547d\u4ee4\u65f6\uff0c\u7ecf\u5e38\u7528\u5230\u7684\u51e0\u4e2a\u53c2\u6570\u53ca\u5176\u529f\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">-l\u53c2\u6570\u7528\u4e8e\u67e5\u8be2\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">-a\u53c2\u6570\u7528\u4e8e\u6dfb\u52a0\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">-m\u53c2\u6570\u7528\u4e8e\u4fee\u6539\uff1b<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">-d\u53c2\u6570\u7528\u4e8e\u5220\u9664\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u4f8b\u5982\uff0c\u53ef\u4ee5\u5411\u65b0\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u4e2d\u65b0\u6dfb\u52a0\u4e00\u6761SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\uff0c\u8ba9\u8fd9\u4e2a\u76ee\u5f55\u4ee5\u53ca\u91cc\u9762\u7684\u6240\u6709\u6587\u4ef6\u80fd\u591f\u88abhttpd\u670d\u52a1\u7a0b\u5e8f\u6240\u8bbf\u95ee\u5230\uff1a<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/*<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6ce8\u610f\uff0c\u6267\u884c\u4e0a\u8ff0\u8bbe\u7f6e\u4e4b\u540e\uff0c\u8fd8\u65e0\u6cd5\u7acb\u5373\u8bbf\u95ee\u7f51\u7ad9\uff0c\u8fd8\u9700\u8981\u4f7f\u7528restorecon\u547d\u4ee4\u5c06\u8bbe\u7f6e\u597d\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7acb\u5373\u751f\u6548\u3002\u5728\u4f7f\u7528restorecon\u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u52a0\u4e0a-Rv\u53c2\u6570\u5bf9\u6307\u5b9a\u7684\u76ee\u5f55\u8fdb\u884c\u9012\u5f52\u64cd\u4f5c\uff0c\u4ee5\u53ca\u663e\u793aSELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7684\u4fee\u6539\u8fc7\u7a0b\u3002\u6700\u540e\uff0c\u518d\u6b21\u5237\u65b0\u9875\u9762\uff0c\u5c31\u53ef\u4ee5\u6b63\u5e38\u770b\u5230\u7f51\u9875\u5185\u5bb9\u4e86\uff0c\u7ed3\u679c\u5982\u56fe10-8\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;restorecon&nbsp;-Rv&nbsp;\/home\/wwwroot\/\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%85%8D%E7%BD%AE%E6%88%90%E5%8A%9F%E7%9A%84%E9%A1%B5%E9%9D%A21.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2262 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E9%85%8D%E7%BD%AE%E6%88%90%E5%8A%9F%E7%9A%84%E9%A1%B5%E9%9D%A21.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"224\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-8&nbsp; \u6b63\u5e38\u770b\u5230\u7f51\u9875\u5185\u5bb9<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u771f\u53ef\u8c13\u662f\u4e00\u6ce2\u4e09\u6298\uff01\u539f\u672c\u8ba4\u4e3a\u53ea\u8981\u628ahttpd\u670d\u52a1\u7a0b\u5e8f\u914d\u7f6e\u59a5\u5f53\u5c31\u53ef\u4ee5\u5927\u529f\u544a\u6210\uff0c\u7ed3\u679c\u5374\u53cd\u590d\u53d7\u5230\u4e86SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7684\u9650\u5236\u3002\u6240\u4ee5\uff0c\u5efa\u8bae\u5927\u5bb6\u5728\u914d\u7f6ehttpd\u670d\u52a1\u7a0b\u5e8f\u65f6\uff0c\u4e00\u5b9a\u8981\u7ec6\u5fc3\u3001\u8010\u5fc3\u3002\u4e00\u65e6\u6210\u529f\u914d\u59a5httpd\u670d\u52a1\u7a0b\u5e8f\u4e4b\u540e\uff0c\u5c31\u4f1a\u53d1\u73b0SELinux\u670d\u52a1\u5e76\u6ca1\u6709\u90a3\u4e48\u96be\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u56e0\u4e3a\u5728RHCSA\u3001RHCE\u6216<a href=\"https:\/\/www.linuxprobe.com\/\" title=\"rhca\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">RHCA<\/a>\u8003\u8bd5\u4e2d\uff0c\u90fd\u9700\u8981\u5148\u91cd\u542f\u60a8\u7684\u673a\u5668\u7136\u540e\u518d\u6267\u884c\u5224\u5206\u811a\u672c\u3002\u56e0\u6b64\uff0c\u5efa\u8bae\u8bfb\u8005\u5728\u65e5\u5e38\u5de5\u4f5c\u4e2d\u8981\u517b\u6210\u5c06\u6240\u9700\u670d\u52a1\u6dfb\u52a0\u5230\u5f00\u673a\u542f\u52a8\u9879\u4e2d\u7684\u4e60\u60ef\uff0c\u6bd4\u5982\u8fd9\u91cc\u5c31\u9700\u8981\u6dfb\u52a0systemctl enable httpd\u547d\u4ee4\u3002<\/p>\n<\/blockquote>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"104\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">10.4 \u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5982\u679c\u60f3\u5728\u7cfb\u7edf\u4e2d\u4e3a\u6bcf\u4f4d\u7528\u6237\u5efa\u7acb\u4e00\u4e2a\u72ec\u7acb\u7684\u7f51\u7ad9\uff0c\u901a\u5e38\u7684\u65b9\u6cd5\u662f\u57fa\u4e8e\u865a\u62df\u7f51\u7ad9\u4e3b\u673a\u529f\u80fd\u6765\u90e8\u7f72\u591a\u4e2a\u7f51\u7ad9\u3002\u4f46\u8fd9\u4e2a\u5de5\u4f5c\u4f1a\u8ba9\u7ba1\u7406\u5458\u82e6\u4e0d\u582a\u8a00\uff08\u5c24\u5176\u662f\u7528\u6237\u6570\u91cf\u5f88\u5e9e\u5927\u65f6\uff09\uff0c\u800c\u4e14\u5728\u7528\u6237\u81ea\u884c\u7ba1\u7406\u7f51\u7ad9\u65f6\uff0c\u8fd8\u4f1a\u78b0\u5230\u5404\u79cd\u6743\u9650\u9650\u5236\uff0c\u9700\u8981\u4e3a\u6b64\u505a\u5f88\u591a\u989d\u5916\u7684\u5de5\u4f5c\u3002\u5176\u5b9e\uff0chttpd\u670d\u52a1\u7a0b\u5e8f\u63d0\u4f9b\u7684\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\u5b8c\u5168\u53ef\u4ee5\u4ee5\u80dc\u4efb\u8fd9\u4e2a\u5de5\u4f5c\u3002\u8be5\u529f\u80fd\u53ef\u4ee5\u8ba9\u7cfb\u7edf\u5185\u6240\u6709\u7684\u7528\u6237\u5728\u81ea\u5df1\u7684\u5bb6\u76ee\u5f55\u4e2d\u7ba1\u7406\u4e2a\u4eba\u7684\u7f51\u7ad9\uff0c\u800c\u4e14\u8bbf\u95ee\u8d77\u6765\u4e5f\u975e\u5e38\u5bb9\u6613\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5728httpd\u670d\u52a1\u7a0b\u5e8f\u4e2d\uff0c\u9ed8\u8ba4\u6ca1\u6709\u5f00\u542f\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u9700\u8981\u7f16\u8f91\u4e0b\u9762\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u5728\u7b2c17\u884c\u7684UserDir disabled\u53c2\u6570\u524d\u9762\u52a0\u4e0a\u4e95\u53f7\uff08#\uff09\uff0c\u8868\u793a\u8ba9httpd\u670d\u52a1\u7a0b\u5e8f\u5f00\u542f\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\uff1b\u540c\u65f6\u518d\u628a\u7b2c24\u884c\u7684UserDir public_html\u53c2\u6570\u524d\u9762\u7684\u4e95\u53f7\uff08#\uff09\u53bb\u6389\uff08UserDir\u53c2\u6570\u8868\u793a\u7f51\u7ad9\u6570\u636e\u5728\u7528\u6237\u5bb6\u76ee\u5f55\u4e2d\u7684\u4fdd\u5b58\u76ee\u5f55\u540d\u79f0\uff0c\u5373public_html\u76ee\u5f55\uff09\u3002\u6700\u540e\uff0c\u5728\u4fee\u6539\u5b8c\u6bd5\u540e\u8bb0\u5f97\u4fdd\u5b58\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf.d\/userdir.conf&nbsp;\r\n&nbsp;1&nbsp;#\r\n&nbsp;2&nbsp;#&nbsp;UserDir:&nbsp;The&nbsp;name&nbsp;of&nbsp;the&nbsp;directory&nbsp;that&nbsp;is&nbsp;appended&nbsp;onto&nbsp;a&nbsp;user&#39;s&nbsp;home\r\n&nbsp;3&nbsp;#&nbsp;directory&nbsp;if&nbsp;a&nbsp;~user&nbsp;request&nbsp;is&nbsp;received.\r\n&nbsp;4&nbsp;#\r\n&nbsp;5&nbsp;#&nbsp;The&nbsp;path&nbsp;to&nbsp;the&nbsp;end&nbsp;user&nbsp;account&nbsp;&#39;public_html&#39;&nbsp;directory&nbsp;must&nbsp;be\r\n&nbsp;6&nbsp;#&nbsp;accessible&nbsp;to&nbsp;the&nbsp;webserver&nbsp;userid.&nbsp;This&nbsp;usually&nbsp;means&nbsp;that&nbsp;~userid\r\n&nbsp;7&nbsp;#&nbsp;must&nbsp;have&nbsp;permissions&nbsp;of&nbsp;711,&nbsp;~userid\/public_html&nbsp;must&nbsp;have&nbsp;permissions\r\n&nbsp;8&nbsp;#&nbsp;of&nbsp;755,&nbsp;and&nbsp;documents&nbsp;contained&nbsp;therein&nbsp;must&nbsp;be&nbsp;world-readable.\r\n&nbsp;9&nbsp;#&nbsp;Otherwise,&nbsp;the&nbsp;client&nbsp;will&nbsp;only&nbsp;receive&nbsp;a&nbsp;&quot;403&nbsp;Forbidden&quot;&nbsp;message.\r\n&nbsp;10&nbsp;#\r\n&nbsp;11&nbsp;&lt;IfModule&nbsp;mod_userdir.c&gt;\r\n&nbsp;12&nbsp;#\r\n&nbsp;13&nbsp;#&nbsp;UserDir&nbsp;is&nbsp;disabled&nbsp;by&nbsp;default&nbsp;since&nbsp;it&nbsp;can&nbsp;confirm&nbsp;the&nbsp;presence\r\n&nbsp;14&nbsp;#&nbsp;of&nbsp;a&nbsp;username&nbsp;on&nbsp;the&nbsp;system&nbsp;(depending&nbsp;on&nbsp;home&nbsp;directory\r\n&nbsp;15&nbsp;#&nbsp;permissions).\r\n&nbsp;16&nbsp;#&nbsp;17&nbsp;#&nbsp;UserDir&nbsp;disabled\r\n&nbsp;18&nbsp;\r\n&nbsp;19&nbsp;#\r\n&nbsp;20&nbsp;#&nbsp;To&nbsp;enable&nbsp;requests&nbsp;to&nbsp;\/~user\/&nbsp;to&nbsp;serve&nbsp;the&nbsp;user&#39;s&nbsp;public_html\r\n&nbsp;21&nbsp;#&nbsp;directory,&nbsp;remove&nbsp;the&nbsp;&quot;UserDir&nbsp;disabled&quot;&nbsp;line&nbsp;above,&nbsp;and&nbsp;uncomment\r\n&nbsp;22&nbsp;#&nbsp;the&nbsp;following&nbsp;line&nbsp;instead:\r\n&nbsp;23&nbsp;#&nbsp;\r\n&nbsp;24&nbsp;&nbsp;&nbsp;UserDir&nbsp;public_html\r\n&nbsp;25&nbsp;&lt;\/IfModule&gt;\r\n&nbsp;26&nbsp;\r\n&nbsp;27&nbsp;#\r\n&nbsp;28&nbsp;#&nbsp;Control&nbsp;access&nbsp;to&nbsp;UserDir&nbsp;directories.&nbsp;The&nbsp;following&nbsp;is&nbsp;an&nbsp;example\r\n&nbsp;29&nbsp;#&nbsp;for&nbsp;a&nbsp;site&nbsp;where&nbsp;these&nbsp;directories&nbsp;are&nbsp;restricted&nbsp;to&nbsp;read-only.\r\n&nbsp;30&nbsp;#\r\n&nbsp;31&nbsp;&lt;Directory&nbsp;&quot;\/home\/*\/public_html&quot;&gt;\r\n&nbsp;32&nbsp;AllowOverride&nbsp;FileInfo&nbsp;AuthConfig&nbsp;Limit&nbsp;Indexes\r\n&nbsp;33&nbsp;Options&nbsp;MultiViews&nbsp;Indexes&nbsp;SymLinksIfOwnerMatch&nbsp;IncludesNoExec\r\n&nbsp;34&nbsp;Require&nbsp;method&nbsp;GET&nbsp;POST&nbsp;OPTIONS\r\n&nbsp;35&nbsp;&lt;\/Directory&gt;<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u5728\u7528\u6237\u5bb6\u76ee\u5f55\u4e2d\u5efa\u7acb\u7528\u4e8e\u4fdd\u5b58\u7f51\u7ad9\u6570\u636e\u7684\u76ee\u5f55\u53ca\u9996\u9875\u9762\u6587\u4ef6\u3002\u53e6\u5916\uff0c\u8fd8\u9700\u8981\u628a\u5bb6\u76ee\u5f55\u7684\u6743\u9650\u4fee\u6539\u4e3a755\uff0c\u4fdd\u8bc1\u5176\u4ed6\u4eba\u4e5f\u6709\u6743\u9650\u8bfb\u53d6\u91cc\u9762\u7684\u5185\u5bb9\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;home]#&nbsp;su&nbsp;-&nbsp;linuxprobe\r\nLast&nbsp;login:&nbsp;Fri&nbsp;May&nbsp;22&nbsp;13:17:37&nbsp;CST&nbsp;2017&nbsp;on&nbsp;:0\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;mkdir&nbsp;public_html\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;echo&nbsp;&quot;This&nbsp;is&nbsp;linuxprobe&#39;s&nbsp;website&quot;&nbsp;&gt;&nbsp;public_html\/index.html\r\n[linuxprobe@linuxprobe&nbsp;~]$&nbsp;chmod&nbsp;-Rf&nbsp;755&nbsp;\/home\/linuxprobe<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u91cd\u65b0\u542f\u52a8httpd\u670d\u52a1\u7a0b\u5e8f\uff0c\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4e2d\u8f93\u5165\u7f51\u5740\uff0c\u5176\u683c\u5f0f\u4e3a\u201c\u7f51\u5740\/~\u7528\u6237\u540d\u201d\uff08\u5176\u4e2d\u7684\u6ce2\u6d6a\u53f7\u662f\u5fc5\u9700\u7684\uff0c\u800c\u4e14\u7f51\u5740\u3001\u6ce2\u6d6a\u53f7\u3001\u7528\u6237\u540d\u4e4b\u95f4\u6ca1\u6709\u7a7a\u683c\uff09\uff0c\u4ece\u7406\u8bba\u4e0a\u6765\u8bb2\u5c31\u53ef\u4ee5\u770b\u5230\u7528\u6237\u7684\u4e2a\u4eba\u7f51\u7ad9\u4e86\u3002\u4e0d\u51fa\u6240\u6599\u7684\u662f\uff0c\u7cfb\u7edf\u663e\u793a\u62a5\u9519\u9875\u9762\uff0c\u5982\u56fe10-9\u6240\u793a\u3002\u8fd9\u4e00\u5b9a\u8fd8\u662fSELinux\u60f9\u7684\u7978\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AE%E4%B8%AA%E4%BA%BA%E7%94%A8%E6%88%B7%E7%BD%91%E7%AB%991.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2267 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AE%E4%B8%AA%E4%BA%BA%E7%94%A8%E6%88%B7%E7%BD%91%E7%AB%991.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"296\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-9&nbsp; \u7981\u6b62\u8bbf\u95ee\u7528\u6237\u7684\u4e2a\u4eba\u7f51\u7ad9<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c4\u6b65<\/strong>\uff1a\u601d\u8003\u8fd9\u6b21\u62a5\u9519\u7684\u539f\u56e0\u662f\u4ec0\u4e48\u3002httpd\u670d\u52a1\u7a0b\u5e8f\u5728\u63d0\u4f9b\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\u65f6\uff0c\u8be5\u7528\u6237\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u672c\u8eab\u5c31\u5e94\u8be5\u662f\u5b58\u653e\u5230\u4e0e\u8fd9\u4f4d\u7528\u6237\u5bf9\u5e94\u7684\u5bb6\u76ee\u5f55\u4e2d\u7684\uff0c\u6240\u4ee5\u5e94\u8be5\u4e0d\u9700\u8981\u4fee\u6539\u5bb6\u76ee\u5f55\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u3002\u4f46\u662f\uff0c\u524d\u6587\u8fd8\u8bb2\u5230\u4e86SELinux\u57df\u7684\u6982\u5ff5\u3002SELinux\u57df\u786e\u4fdd\u670d\u52a1\u7a0b\u5e8f\u4e0d\u80fd\u6267\u884c\u8fdd\u89c4\u7684\u64cd\u4f5c\uff0c\u53ea\u80fd\u672c\u672c\u5206\u5206\u5730\u4e3a\u7528\u6237\u63d0\u4f9b\u670d\u52a1\u3002httpd\u670d\u52a1\u4e2d\u7a81\u7136\u5f00\u542f\u7684\u8fd9\u9879\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\u5230\u5e95\u6709\u6ca1\u6709\u88abSELinux\u57df\u9ed8\u8ba4\u5141\u8bb8\u5462\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u63a5\u4e0b\u6765\u4f7f\u7528getsebool\u547d\u4ee4\u67e5\u8be2\u5e76\u8fc7\u6ee4\u51fa\u6240\u6709\u4e0eHTTP\u534f\u8bae\u76f8\u5173\u7684\u5b89\u5168\u7b56\u7565\u3002\u5176\u4e2d\uff0coff\u4e3a\u7981\u6b62\u72b6\u6001\uff0con\u4e3a\u5141\u8bb8\u72b6\u6001\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;getsebool&nbsp;-a&nbsp;|&nbsp;grep&nbsp;http\r\nhttpd_anon_write&nbsp;--&gt;&nbsp;off\r\nhttpd_builtin_scripting&nbsp;--&gt;&nbsp;on\r\nhttpd_can_check_spam&nbsp;--&gt;&nbsp;off\r\nhttpd_can_connect_ftp&nbsp;--&gt;&nbsp;off\r\nhttpd_can_connect_ldap&nbsp;--&gt;&nbsp;off\r\nhttpd_can_connect_mythtv&nbsp;--&gt;&nbsp;off\r\nhttpd_can_connect_zabbix&nbsp;--&gt;&nbsp;off\r\nhttpd_can_network_connect&nbsp;--&gt;&nbsp;off\r\nhttpd_can_network_connect_cobbler&nbsp;--&gt;&nbsp;off\r\nhttpd_can_network_connect_db&nbsp;--&gt;&nbsp;off\r\nhttpd_can_network_memcache&nbsp;--&gt;&nbsp;off\r\nhttpd_can_network_relay&nbsp;--&gt;&nbsp;off\r\nhttpd_can_sendmail&nbsp;--&gt;&nbsp;off\r\nhttpd_dbus_avahi&nbsp;--&gt;&nbsp;off\r\nhttpd_dbus_sssd&nbsp;--&gt;&nbsp;off\r\nhttpd_dontaudit_search_dirs&nbsp;--&gt;&nbsp;off\r\nhttpd_enable_cgi&nbsp;--&gt;&nbsp;on\r\nhttpd_enable_ftp_server&nbsp;--&gt;&nbsp;offhttpd_enable_homedirs&nbsp;--&gt;&nbsp;offhttpd_execmem&nbsp;--&gt;&nbsp;off\r\nhttpd_graceful_shutdown&nbsp;--&gt;&nbsp;on\r\nhttpd_manage_ipa&nbsp;--&gt;&nbsp;off\r\nhttpd_mod_auth_ntlm_winbind&nbsp;--&gt;&nbsp;off\r\nhttpd_mod_auth_pam&nbsp;--&gt;&nbsp;off\r\nhttpd_read_user_content&nbsp;--&gt;&nbsp;off\r\nhttpd_run_stickshift&nbsp;--&gt;&nbsp;off\r\nhttpd_serve_cobbler_files&nbsp;--&gt;&nbsp;off\r\nhttpd_setrlimit&nbsp;--&gt;&nbsp;off\r\nhttpd_ssi_exec&nbsp;--&gt;&nbsp;off\r\nhttpd_sys_script_anon_write&nbsp;--&gt;&nbsp;off\r\nhttpd_tmp_exec&nbsp;--&gt;&nbsp;off\r\nhttpd_tty_comm&nbsp;--&gt;&nbsp;off\r\nhttpd_unified&nbsp;--&gt;&nbsp;off\r\nhttpd_use_cifs&nbsp;--&gt;&nbsp;off\r\nhttpd_use_fusefs&nbsp;--&gt;&nbsp;off\r\nhttpd_use_gpg&nbsp;--&gt;&nbsp;off\r\nhttpd_use_nfs&nbsp;--&gt;&nbsp;off\r\nhttpd_use_openstack&nbsp;--&gt;&nbsp;off\r\nhttpd_use_sasl&nbsp;--&gt;&nbsp;off\r\nhttpd_verify_dns&nbsp;--&gt;&nbsp;off\r\nnamed_tcp_bind_http_port&nbsp;--&gt;&nbsp;off\r\nprosody_bind_http_port&nbsp;--&gt;&nbsp;off<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u9762\u5bf9\u5982\u6b64\u591a\u7684SELinux\u57df\u5b89\u5168\u7b56\u7565\u89c4\u5219\uff0c\u5b9e\u5728\u6ca1\u6709\u5fc5\u8981\u9010\u4e2a\u7406\u89e3\u5b83\u4eec\uff0c\u6211\u4eec\u53ea\u8981\u80fd\u901a\u8fc7\u540d\u5b57\u5927\u81f4\u731c\u6d4b\u51fa\u76f8\u5173\u7684\u7b56\u7565\u7528\u9014\u5c31\u8db3\u591f\u4e86\u3002\u6bd4\u5982\uff0c\u60f3\u8981\u5f00\u542fhttpd\u670d\u52a1\u7684\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\uff0c\u90a3\u4e48\u7528\u5230\u7684SELinux\u57df\u5b89\u5168\u7b56\u7565\u5e94\u8be5\u662fhttpd_enable_homedirs\u5427\uff1f\u5927\u81f4\u786e\u5b9a\u540e\u5c31\u53ef\u4ee5\u7528setsebool\u547d\u4ee4\u6765\u4fee\u6539SELinux\u7b56\u7565\u4e2d\u5404\u6761\u89c4\u5219\u7684\u5e03\u5c14\u503c\u4e86\u3002\u5927\u5bb6\u4e00\u5b9a\u8981\u8bb0\u5f97\u5728setsebool\u547d\u4ee4\u540e\u9762\u52a0\u4e0a-P\u53c2\u6570\uff0c\u8ba9\u4fee\u6539\u540e\u7684SELinux\u7b56\u7565\u89c4\u5219\u6c38\u4e45\u751f\u6548\u4e14\u7acb\u5373\u751f\u6548\u3002\u968f\u540e\u5237\u65b0\u7f51\u9875\uff0c\u5176\u6548\u679c\u5982\u56fe10-10\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;setsebool&nbsp;-P&nbsp;httpd_enable_homedirs=on\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E4%B8%AA%E4%BA%BA%E7%BD%91%E7%AB%99%E5%8A%9F%E8%83%BD1.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2268 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E4%B8%AA%E4%BA%BA%E7%BD%91%E7%AB%99%E5%8A%9F%E8%83%BD1.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"249\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-10&nbsp; \u6b63\u5e38\u770b\u5230\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u9762\u4e2d\u7684\u5185\u5bb9<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6709\u65f6\uff0c\u7f51\u7ad9\u7684\u62e5\u6709\u8005\u5e76\u4e0d\u5e0c\u671b\u76f4\u63a5\u5c06\u7f51\u9875\u5185\u5bb9\u663e\u793a\u51fa\u6765\uff0c\u53ea\u60f3\u8ba9\u901a\u8fc7\u8eab\u4efd\u9a8c\u8bc1\u7684\u7528\u6237\u8bbf\u5ba2\u770b\u5230\u91cc\u9762\u7684\u5185\u5bb9\uff0c\u8fd9\u65f6\u5c31\u53ef\u4ee5\u5728\u7f51\u7ad9\u4e2d\u6dfb\u52a0\u53e3\u4ee4\u529f\u80fd\u4e86\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5148\u4f7f\u7528htpasswd\u547d\u4ee4\u751f\u6210\u5bc6\u7801\u6570\u636e\u5e93\u3002-c\u53c2\u6570\u8868\u793a\u7b2c\u4e00\u6b21\u751f\u6210\uff1b\u540e\u9762\u518d\u5206\u522b\u6dfb\u52a0\u5bc6\u7801\u6570\u636e\u5e93\u7684\u5b58\u653e\u6587\u4ef6\uff0c\u4ee5\u53ca\u9a8c\u8bc1\u8981\u7528\u5230\u7684\u7528\u6237\u540d\u79f0\uff08\u8be5\u7528\u6237\u4e0d\u5fc5\u662f\u7cfb\u7edf\u4e2d\u5df2\u6709\u7684\u672c\u5730\u8d26\u6237\uff09\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;htpasswd&nbsp;-c&nbsp;\/etc\/httpd\/passwd&nbsp;linuxprobe\r\nNew&nbsp;password:\u6b64\u5904\u8f93\u5165\u7528\u4e8e\u7f51\u9875\u9a8c\u8bc1\u7684\u5bc6\u7801Re-type&nbsp;new&nbsp;password:\u518d\u8f93\u5165\u4e00\u904d\u8fdb\u884c\u786e\u8ba4Adding&nbsp;password&nbsp;for&nbsp;user&nbsp;linuxprobe<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u7f16\u8f91\u4e2a\u4eba\u7528\u6237\u4e3b\u9875\u529f\u80fd\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u628a\u7b2c31\uff5e35\u884c\u7684\u53c2\u6570\u4fe1\u606f\u4fee\u6539\u6210\u4e0b\u5217\u5185\u5bb9\uff0c\u5176\u4e2d\u4e95\u53f7\uff08#\uff09\u5f00\u5934\u7684\u5185\u5bb9\u4e3a\u5218\u9044\u8001\u5e08\u6dfb\u52a0\u7684\u6ce8\u91ca\u4fe1\u606f\uff0c\u53ef\u5c06\u5176\u5ffd\u7565\u3002\u968f\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u914d\u7f6e\u6587\u4ef6\uff0c\u91cd\u542fhttpd\u670d\u52a1\u7a0b\u5e8f\u5373\u53ef\u751f\u6548\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf.d\/userdir.conf\r\n27&nbsp;#\r\n28&nbsp;#&nbsp;Control&nbsp;access&nbsp;to&nbsp;UserDir&nbsp;directories.&nbsp;The&nbsp;following&nbsp;is&nbsp;an&nbsp;example\r\n29&nbsp;#&nbsp;for&nbsp;a&nbsp;site&nbsp;where&nbsp;these&nbsp;directories&nbsp;are&nbsp;restricted&nbsp;to&nbsp;read-only.\r\n30&nbsp;#\r\n31&nbsp;&lt;Directory&nbsp;&quot;\/home\/*\/public_html&quot;&gt;\r\n32&nbsp;AllowOverride&nbsp;all\r\n#\u521a\u521a\u751f\u6210\u51fa\u6765\u7684\u5bc6\u7801\u9a8c\u8bc1\u6587\u4ef6\u4fdd\u5b58\u8def\u5f84\r\n33&nbsp;authuserfile&nbsp;&quot;\/etc\/httpd\/passwd&quot;\r\n#\u5f53\u7528\u6237\u5c1d\u8bd5\u8bbf\u95ee\u4e2a\u4eba\u7528\u6237\u7f51\u7ad9\u65f6\u7684\u63d0\u793a\u4fe1\u606f\r\n34&nbsp;authname&nbsp;&quot;My&nbsp;privately&nbsp;website&quot;\r\n35&nbsp;authtype&nbsp;basic\r\n#\u7528\u6237\u8fdb\u884c\u8d26\u6237\u5bc6\u7801\u767b\u5f55\u65f6\u9700\u8981\u9a8c\u8bc1\u7684\u7528\u6237\u540d\u79f0\r\n36&nbsp;require&nbsp;user&nbsp;linuxprobe\r\n37&nbsp;&lt;\/Directory&gt;\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u6b64\u540e\uff0c\u5f53\u7528\u6237\u518d\u60f3\u8bbf\u95ee\u67d0\u4e2a\u7528\u6237\u7684\u4e2a\u4eba\u7f51\u7ad9\u65f6\uff0c\u5c31\u5fc5\u987b\u8981\u8f93\u5165\u8d26\u6237\u548c\u5bc6\u7801\u624d\u80fd\u6b63\u5e38\u8bbf\u95ee\u4e86\u3002\u53e6\u5916\uff0c\u9a8c\u8bc1\u65f6\u4f7f\u7528\u7684\u8d26\u6237\u548c\u5bc6\u7801\u662f\u7528htpasswd\u547d\u4ee4\u751f\u6210\u7684\u4e13\u95e8\u7528\u4e8e\u7f51\u7ad9\u767b\u5f55\u7684\u53e3\u4ee4\u5bc6\u7801\uff0c\u800c\u4e0d\u662f\u7cfb\u7edf\u4e2d\u7684\u7528\u6237\u5bc6\u7801\uff0c\u8bf7\u4e0d\u8981\u641e\u9519\u4e86\u3002\u767b\u5f55\u754c\u9762\u5982\u56fe10-11\u6240\u793a\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E5%AF%86%E7%A0%81%E9%AA%8C%E8%AF%81.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1158 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E5%AF%86%E7%A0%81%E9%AA%8C%E8%AF%81.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"1280\" height=\"768\"  sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-11&nbsp; \u7f51\u7ad9\u63d0\u793a\u9700\u8981\u8f93\u5165\u8d26\u6237\u548c\u5bc6\u7801\u624d\u80fd\u8bbf\u95ee<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.1; box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">10.5 \u865a\u62df\u7f51\u7ad9\u4e3b\u673a\u529f\u80fd<\/span><\/strong><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"text-align: justify; text-indent: 1em;\">\u5982\u679c\u6bcf\u53f0\u8fd0\u884cLinux\u7cfb\u7edf\u7684\u670d\u52a1\u5668\u4e0a\u53ea\u80fd\u8fd0\u884c\u4e00\u4e2a\u7f51\u7ad9\uff0c\u90a3\u4e48\u4eba\u6c14\u4f4e\u3001\u6d41\u91cf\u5c0f\u7684\u8349\u6839\u7ad9\u957f\u5c31\u8981\u88ab\u8feb\u627f\u62c5\u7740\u9ad8\u6602\u7684\u670d\u52a1\u5668\u79df\u8d41\u8d39\u7528\u4e86\uff0c\u8fd9\u663e\u7136\u4e5f\u4f1a\u9020\u6210\u786c\u4ef6\u8d44\u6e90\u7684\u6d6a\u8d39\u3002\u5728\u865a\u62df\u4e13\u7528\u670d\u52a1\u5668\uff08Virtual Private Server\uff0cVPS\uff09\u4e0e\u4e91\u8ba1\u7b97\u6280\u672f\u8bde\u751f\u4ee5\u524d\uff0cIDC\u670d\u52a1\u4f9b\u5e94\u5546\u4e3a\u4e86\u80fd\u591f\u66f4\u5145\u5206\u5730\u5229\u7528\u670d\u52a1\u5668\u8d44\u6e90\uff0c\u540c\u65f6\u4e5f\u4e3a\u4e86\u964d\u4f4e\u8d2d\u4e70\u95e8\u69db\uff0c\u4e8e\u662f\u7eb7\u7eb7\u542f\u7528\u4e86\u865a\u62df\u4e3b\u673a\u529f\u80fd\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5229\u7528\u865a\u62df\u4e3b\u673a\u529f\u80fd\uff0c\u53ef\u4ee5\u628a\u4e00\u53f0\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u7684\u7269\u7406\u670d\u52a1\u5668\u5206\u5272\u6210\u591a\u4e2a\u201c\u865a\u62df\u7684\u670d\u52a1\u5668\u201d\u3002\u4f46\u662f\uff0c\u8be5\u6280\u672f\u65e0\u6cd5\u5b9e\u73b0\u76ee\u524d\u4e91\u4e3b\u673a\u6280\u672f\u7684\u786c\u4ef6\u8d44\u6e90\u9694\u79bb\uff0c\u8ba9\u8fd9\u4e9b\u865a\u62df\u7684\u670d\u52a1\u5668\u5171\u540c\u4f7f\u7528\u7269\u7406\u670d\u52a1\u5668\u7684\u786c\u4ef6\u8d44\u6e90\uff0c\u4f9b\u5e94\u5546\u53ea\u80fd\u9650\u5236\u786c\u76d8\u7684\u4f7f\u7528\u7a7a\u95f4\u5927\u5c0f\u3002\u51fa\u4e8e\u5404\u79cd\u8003\u8651\u7684\u56e0\u7d20\uff08\u4e3b\u8981\u662f\u4ef7\u683c\u4f4e\u5ec9\uff09\uff0c\u76ee\u524d\u4f9d\u7136\u6709\u5f88\u591a\u4f01\u4e1a\u6216\u4e2a\u4eba\u7ad9\u957f\u5728\u4f7f\u7528\u865a\u62df\u4e3b\u673a\u7684\u5f62\u5f0f\u6765\u90e8\u7f72\u7f51\u7ad9\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">Apache\u7684\u865a\u62df\u4e3b\u673a\u529f\u80fd\u662f\u670d\u52a1\u5668\u57fa\u4e8e\u7528\u6237\u8bf7\u6c42\u7684\u4e0d\u540cIP\u5730\u5740\u3001\u4e3b\u673a\u57df\u540d\u6216\u7aef\u53e3\u53f7\uff0c\u5b9e\u73b0\u63d0\u4f9b\u591a\u4e2a\u7f51\u7ad9\u540c\u65f6\u4e3a\u5916\u90e8\u63d0\u4f9b\u8bbf\u95ee\u670d\u52a1\u7684\u6280\u672f\uff0c\u5982\u56fe10-12\u6240\u793a\uff0c\u7528\u6237\u8bf7\u6c42\u7684\u8d44\u6e90\u4e0d\u540c\uff0c\u6700\u7ec8\u83b7\u53d6\u5230\u7684\u7f51\u9875\u5185\u5bb9\u4e5f\u5404\u4e0d\u76f8\u540c\u3002\u5982\u679c\u5927\u5bb6\u4e4b\u524d\u6ca1\u6709\u505a\u8fc7\u7f51\u7ad9\uff0c\u53ef\u80fd\u4e0d\u592a\u7406\u89e3\u5176\u4e2d\u7684\u539f\u7406\uff0c\u7b49\u4e00\u4f1a\u513f\u642d\u5efa\u51fa\u5b9e\u9a8c\u73af\u5883\u5e76\u770b\u5230\u5b9e\u9a8c\u6548\u679c\u4e4b\u540e\uff0c\u60a8\u4e00\u5b9a\u5c31\u4f1a\u660e\u767d\u4e86\u3002<\/p>\n<blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-color: rgba(0, 0, 0, 0.14902); color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; font-size: 14px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u518d\u6b21\u63d0\u9192\u5927\u5bb6\uff0c\u5728\u505a\u6bcf\u4e2a\u5b9e\u9a8c\u4e4b\u524d\u8bf7\u5148\u5c06\u865a\u62df\u673a\u8fd8\u539f\u5230\u6700\u521d\u59cb\u72b6\u6001\uff0c\u4ee5\u514d\u591a\u4e2a\u5b9e\u9a8c\u4e4b\u95f4\u76f8\u4e92\u4ea7\u751f\u51b2\u7a81\u3002<\/p>\n<\/blockquote>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E6%8B%93%E6%89%91.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1162 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E6%8B%93%E6%89%91.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"937\" height=\"312\"  sizes=\"auto, (max-width: 937px) 100vw, 937px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-12 \u7528\u6237\u8bf7\u6c42\u7f51\u7ad9\u8d44\u6e90[<a href=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/Apache%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E6%8B%93%E6%89%91.rar\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\">\u539f\u56fe\u9644\u4ef6<\/a>]<\/p>\n<h6 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 12px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"1051_IP\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">10.5.1 \u57fa\u4e8eIP\u5730\u5740<\/strong><\/span><\/span><\/h6>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5982\u679c\u4e00\u53f0\u670d\u52a1\u5668\u6709\u591a\u4e2aIP\u5730\u5740\uff0c\u800c\u4e14\u6bcf\u4e2aIP\u5730\u5740\u4e0e\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u7684\u6bcf\u4e2a\u7f51\u7ad9\u4e00\u4e00\u5bf9\u5e94\uff0c\u8fd9\u6837\u5f53\u7528\u6237\u8bf7\u6c42\u8bbf\u95ee\u4e0d\u540c\u7684IP\u5730\u5740\u65f6\uff0c\u4f1a\u8bbf\u95ee\u5230\u4e0d\u540c\u7f51\u7ad9\u7684\u9875\u9762\u8d44\u6e90\u3002\u800c\u4e14\uff0c\u6bcf\u4e2a\u7f51\u7ad9\u90fd\u6709\u4e00\u4e2a\u72ec\u7acb\u7684IP\u5730\u5740\uff0c\u5bf9\u641c\u7d22\u5f15\u64ce\u4f18\u5316\u4e5f\u5927\u6709\u88e8\u76ca\u3002\u56e0\u6b64\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u63d0\u4f9b\u865a\u62df\u7f51\u7ad9\u4e3b\u673a\u529f\u80fd\u4e0d\u4ec5\u6700\u5e38\u89c1\uff0c\u4e5f\u53d7\u5230\u4e86\u7f51\u7ad9\u7ad9\u957f\u7684\u6b22\u8fce\uff08\u5c24\u5176\u662f\u8349\u6839\u7ad9\u957f\uff09\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5218\u9044\u8001\u5e08\u5728\u7b2c4\u7ae0\u548c\u7b2c9\u7ae0\u5206\u522b\u8bb2\u89e3\u4e86\u7528\u4e8e\u914d\u7f6e\u7f51\u7edc\u7684\u4e24\u79cd\u65b9\u6cd5\uff0c\u5927\u5bb6\u5728\u5b9e\u9a8c\u4e2d\u548c\u5de5\u4f5c\u4e2d\u53ef\u968f\u610f\u9009\u62e9\u3002\u5c31\u5f53\u524d\u7684\u5b9e\u9a8c\u6765\u8bb2\uff0c\u9700\u8981\u914d\u7f6e\u7684IP\u5730\u5740\u5982\u56fe10-13\u6240\u793a\u3002\u5728\u914d\u7f6e\u5b8c\u6bd5\u5e76\u91cd\u542f\u7f51\u5361\u670d\u52a1\u4e4b\u540e\uff0c\u8bb0\u5f97\u68c0\u67e5\u7f51\u7edc\u7684\u8fde\u901a\u6027\uff0c\u786e\u4fdd\u4e09\u4e2aIP\u5730\u5740\u5747\u53ef\u6b63\u5e38\u8bbf\u95ee\uff0c\u5982\u56fe10-14\u6240\u793a\uff08\u8fd9\u5f88\u91cd\u8981\uff0c\u4e00\u5b9a\u8981\u6d4b\u8bd5\u597d\uff0c\u7136\u540e\u518d\u8fdb\u884c\u4e0b\u4e00\u6b65!\uff09\u3002<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/nmtui%E5%AF%B9%E7%BD%91%E5%8D%A1%E6%B7%BB%E5%8A%A0%E5%A4%9AIP%E5%9C%B0%E5%9D%80.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1164 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/nmtui%E5%AF%B9%E7%BD%91%E5%8D%A1%E6%B7%BB%E5%8A%A0%E5%A4%9AIP%E5%9C%B0%E5%9D%80.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"735\" height=\"493\"  sizes=\"auto, (max-width: 735px) 100vw, 735px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-13&nbsp; \u4f7f\u7528nmtui\u547d\u4ee4\u914d\u7f6e\u7f51\u7edc\u53c2\u6570<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5206\u522b\u5728\/home\/wwwroot\u4e2d\u521b\u5efa\u7528\u4e8e\u4fdd\u5b58\u4e0d\u540c\u7f51\u7ad9\u6570\u636e\u76843\u4e2a\u76ee\u5f55\uff0c\u5e76\u5411\u5176\u4e2d\u5206\u522b\u5199\u5165\u7f51\u7ad9\u7684\u9996\u9875\u6587\u4ef6\u3002\u6bcf\u4e2a\u9996\u9875\u6587\u4ef6\u4e2d\u5e94\u6709\u660e\u786e\u533a\u5206\u4e0d\u540c\u7f51\u7ad9\u5185\u5bb9\u7684\u4fe1\u606f\uff0c\u65b9\u4fbf\u6211\u4eec\u7a0d\u540e\u80fd\u66f4\u76f4\u89c2\u5730\u68c0\u67e5\u6548\u679c\u3002<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E7%A1%AE%E8%AE%A4%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE%E6%AD%A3%E7%A1%AE.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1166 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E7%A1%AE%E8%AE%A4%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE%E6%AD%A3%E7%A1%AE.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"737\" height=\"492\"  sizes=\"auto, (max-width: 737px) 100vw, 737px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-14&nbsp; \u5206\u522b\u68c0\u67e53\u4e2aIP\u5730\u5740\u7684\u8fde\u901a\u6027<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/10\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/20\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/30\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;IP:192.168.10.10&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/10\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;IP:192.168.10.20&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/20\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;IP:192.168.10.30&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/30\/index.html<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u5728httpd\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5927\u7ea6113\u884c\u5904\u5f00\u59cb\uff0c\u5206\u522b\u8ffd\u52a0\u5199\u5165\u4e09\u4e2a\u57fa\u4e8eIP\u5730\u5740\u7684\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u53c2\u6570\uff0c\u7136\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u8bb0\u5f97\u9700\u8981\u91cd\u542fhttpd\u670d\u52a1\uff0c\u8fd9\u4e9b\u914d\u7f6e\u624d\u751f\u6548\u3002<\/p>\n<pre class=\"lemma-picture text-pic layout-right\" style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n113&nbsp;&lt;VirtualHost&nbsp;192.168.10.10&gt;114&nbsp;DocumentRoot&nbsp;\/home\/wwwroot\/10\r\n115&nbsp;ServerName&nbsp;www.linuxprobe.com\r\n116&nbsp;&lt;Directory&nbsp;\/home\/wwwroot\/10&nbsp;&gt;\r\n117&nbsp;AllowOverride&nbsp;None\r\n118&nbsp;Require&nbsp;all&nbsp;granted\r\n119&nbsp;&lt;\/Directory&gt;\r\n120&nbsp;&lt;\/VirtualHost&gt;121&nbsp;&lt;VirtualHost&nbsp;192.168.10.20&gt;122&nbsp;DocumentRoot&nbsp;\/home\/wwwroot\/20\r\n123&nbsp;ServerName&nbsp;bbs.linuxprobe.com\r\n124&nbsp;&lt;Directory&nbsp;\/home\/wwwroot\/20&nbsp;&gt;\r\n125&nbsp;AllowOverride&nbsp;None\r\n126&nbsp;Require&nbsp;all&nbsp;granted\r\n127&nbsp;&lt;\/Directory&gt;\r\n128&nbsp;&lt;\/VirtualHost&gt;129&nbsp;&lt;VirtualHost&nbsp;192.168.10.30&gt;130&nbsp;DocumentRoot&nbsp;\/home\/wwwroot\/30\r\n131&nbsp;ServerName&nbsp;tech.linuxprobe.com\r\n132&nbsp;&lt;Directory&nbsp;\/home\/wwwroot\/30&nbsp;&gt;\r\n133&nbsp;AllowOverride&nbsp;None\r\n134&nbsp;Require&nbsp;all&nbsp;granted\r\n135&nbsp;&lt;\/Directory&gt;\r\n136&nbsp;&lt;\/VirtualHost&gt;\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u6b64\u65f6\u8bbf\u95ee\u7f51\u7ad9\uff0c\u5219\u4f1a\u770b\u5230httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u9996\u9875\u9762\u3002\u5927\u5bb6\u73b0\u5728\u5e94\u8be5\u7acb\u523b\u5c31\u53cd\u5e94\u8fc7\u6765\u2014\u8fd9\u662fSELinux\u5728\u6363\u9b3c\u3002\u7531\u4e8e\u5f53\u524d\u7684\/home\/wwwroot\u76ee\u5f55\u53ca\u91cc\u9762\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u4e0e\u7f51\u7ad9\u670d\u52a1\u4e0d\u543b\u5408\uff0c\u56e0\u6b64httpd\u670d\u52a1\u7a0b\u5e8f\u65e0\u6cd5\u83b7\u53d6\u5230\u8fd9\u4e9b\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u3002\u6211\u4eec\u9700\u8981\u624b\u52a8\u628a\u65b0\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u8bbe\u7f6e\u6b63\u786e\uff08\u89c1\u524d\u6587\u7684\u5b9e\u9a8c\uff09\uff0c\u5e76\u4f7f\u7528restorecon\u547d\u4ee4\u8ba9\u65b0\u8bbe\u7f6e\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7acb\u5373\u751f\u6548\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u7acb\u5373\u770b\u5230\u7f51\u7ad9\u7684\u8bbf\u95ee\u6548\u679c\u4e86\uff0c\u5982\u56fe10-15\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/10\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/10\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/20\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/20\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/30\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/30\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;restorecon&nbsp;-Rv&nbsp;\/home\/wwwroot\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/10&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/10\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/20&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/20\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/30&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/30\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81%E5%9F%BA%E4%BA%8EIP%E5%9C%B0%E5%9D%80%E7%9A%84%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E7%9A%84%E7%BB%93%E6%9E%9C.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1167 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81%E5%9F%BA%E4%BA%8EIP%E5%9C%B0%E5%9D%80%E7%9A%84%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E7%9A%84%E7%BB%93%E6%9E%9C.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"960\" height=\"588\"  sizes=\"auto, (max-width: 960px) 100vw, 960px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-15&nbsp; \u57fa\u4e8e\u4e0d\u540c\u7684IP\u5730\u5740\u8bbf\u95ee\u865a\u62df\u4e3b\u673a\u7f51\u7ad9<\/p>\n<h6 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 12px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"1052\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">10.5.2 \u57fa\u4e8e\u4e3b\u673a\u57df\u540d<\/span><\/strong><\/span><\/h6>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5f53\u670d\u52a1\u5668\u65e0\u6cd5\u4e3a\u6bcf\u4e2a\u7f51\u7ad9\u90fd\u5206\u914d\u4e00\u4e2a\u72ec\u7acbIP\u5730\u5740\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u8ba9Apache\u81ea\u52a8\u8bc6\u522b\u7528\u6237\u8bf7\u6c42\u7684\u57df\u540d\uff0c\u4ece\u800c\u6839\u636e\u4e0d\u540c\u7684\u57df\u540d\u8bf7\u6c42\u6765\u4f20\u8f93\u4e0d\u540c\u7684\u5185\u5bb9\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u7684\u914d\u7f6e\u66f4\u52a0\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4fdd\u8bc1\u4f4d\u4e8e\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u670d\u52a1\u5668\u4e0a\u6709\u4e00\u4e2a\u53ef\u7528\u7684IP\u5730\u5740\uff08\u8fd9\u91cc\u4ee5192.168.10.10\u4e3a\u4f8b\uff09\u5c31\u53ef\u4ee5\u4e86\u3002\u7531\u4e8e\u5f53\u524d\u8fd8\u6ca1\u6709\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6eDNS\u89e3\u6790\u670d\u52a1\uff0c\u56e0\u6b64\u9700\u8981\u624b\u5de5\u5b9a\u4e49IP\u5730\u5740\u4e0e\u57df\u540d\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb\u3002\/etc\/hosts\u662fLinux\u7cfb\u7edf\u4e2d\u7528\u4e8e\u5f3a\u5236\u628a\u67d0\u4e2a\u4e3b\u673a\u57df\u540d\u89e3\u6790\u5230\u6307\u5b9aIP\u5730\u5740\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u53ea\u8981\u8fd9\u4e2a\u6587\u4ef6\u914d\u7f6e\u6b63\u786e\uff0c\u5373\u4f7f\u7f51\u5361\u53c2\u6570\u4e2d\u6ca1\u6709DNS\u4fe1\u606f\u4e5f\u4f9d\u7136\u80fd\u591f\u5c06\u57df\u540d\u89e3\u6790\u4e3a\u67d0\u4e2aIP\u5730\u5740\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u624b\u5de5\u5b9a\u4e49IP\u5730\u5740\u4e0e\u57df\u540d\u4e4b\u95f4\u5bf9\u5e94\u5173\u7cfb\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4fdd\u5b58\u5e76\u9000\u51fa\u540e\u4f1a\u7acb\u5373\u751f\u6548\u3002\u53ef\u4ee5\u901a\u8fc7\u5206\u522bping\u8fd9\u4e9b\u57df\u540d\u6765\u9a8c\u8bc1\u57df\u540d\u662f\u5426\u5df2\u7ecf\u6210\u529f\u89e3\u6790\u4e3aIP\u5730\u5740\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/hosts\r\n127.0.0.1&nbsp;localhost&nbsp;localhost.localdomain&nbsp;localhost4&nbsp;localhost4.localdomain4\r\n::1&nbsp;localhost&nbsp;localhost.localdomain&nbsp;localhost6&nbsp;localhost6.localdomain6192.168.10.10&nbsp;www.linuxprobe.com&nbsp;bbs.linuxprobe.com&nbsp;tech.linuxprobe.com[root@linuxprobe&nbsp;~]#&nbsp;ping&nbsp;-c&nbsp;4&nbsp;www.linuxprobe.com\r\nPING&nbsp;www.linuxprobe.com&nbsp;(192.168.10.10)&nbsp;56(84)&nbsp;bytes&nbsp;of&nbsp;data.\r\n64&nbsp;bytes&nbsp;from&nbsp;www.linuxprobe.com&nbsp;(192.168.10.10):&nbsp;icmp_seq=1&nbsp;ttl=64&nbsp;time=0.070&nbsp;ms\r\n64&nbsp;bytes&nbsp;from&nbsp;www.linuxprobe.com&nbsp;(192.168.10.10):&nbsp;icmp_seq=2&nbsp;ttl=64&nbsp;time=0.077&nbsp;ms\r\n64&nbsp;bytes&nbsp;from&nbsp;www.linuxprobe.com&nbsp;(192.168.10.10):&nbsp;icmp_seq=3&nbsp;ttl=64&nbsp;time=0.061&nbsp;ms\r\n64&nbsp;bytes&nbsp;from&nbsp;www.linuxprobe.com&nbsp;(192.168.10.10):&nbsp;icmp_seq=4&nbsp;ttl=64&nbsp;time=0.069&nbsp;ms\r\n---&nbsp;www.linuxprobe.com&nbsp;ping&nbsp;statistics&nbsp;---\r\n4&nbsp;packets&nbsp;transmitted,&nbsp;4&nbsp;received,&nbsp;0%&nbsp;packet&nbsp;loss,&nbsp;time&nbsp;2999ms\r\nrtt&nbsp;min\/avg\/max\/mdev&nbsp;=&nbsp;0.061\/0.069\/0.077\/0.008&nbsp;ms\r\n[root@linuxprobe&nbsp;~]#<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u5206\u522b\u5728\/home\/wwwroot\u4e2d\u521b\u5efa\u7528\u4e8e\u4fdd\u5b58\u4e0d\u540c\u7f51\u7ad9\u6570\u636e\u7684\u4e09\u4e2a\u76ee\u5f55\uff0c\u5e76\u5411\u5176\u4e2d\u5206\u522b\u5199\u5165\u7f51\u7ad9\u7684\u9996\u9875\u6587\u4ef6\u3002\u6bcf\u4e2a\u9996\u9875\u6587\u4ef6\u4e2d\u5e94\u6709\u660e\u786e\u533a\u5206\u4e0d\u540c\u7f51\u7ad9\u5185\u5bb9\u7684\u4fe1\u606f\uff0c\u65b9\u4fbf\u6211\u4eec\u7a0d\u540e\u80fd\u66f4\u76f4\u89c2\u5730\u68c0\u67e5\u6548\u679c\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/www\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/bbs\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/tech\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;WWW.linuxprobe.com&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/www\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;BBS.linuxprobe.com&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/bbs\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;TECH.linuxprobe.com&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/tech\/index.html<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u5728httpd\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5927\u7ea6113\u884c\u5904\u5f00\u59cb\uff0c\u5206\u522b\u8ffd\u52a0\u5199\u5165\u4e09\u4e2a\u57fa\u4e8e\u4e3b\u673a\u540d\u7684\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u53c2\u6570\uff0c\u7136\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u8bb0\u5f97\u9700\u8981\u91cd\u542fhttpd\u670d\u52a1\uff0c\u8fd9\u4e9b\u914d\u7f6e\u624d\u751f\u6548\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n113&nbsp;&lt;VirtualHost&nbsp;192.168.10.10&gt;114&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot\/www&quot;\r\n115&nbsp;ServerName&nbsp;&quot;www.linuxprobe.com&quot;\r\n116&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot\/www&quot;&gt;\r\n117&nbsp;AllowOverride&nbsp;None\r\n118&nbsp;Require&nbsp;all&nbsp;granted\r\n119&nbsp;&lt;\/directory&gt;&nbsp;\r\n120&nbsp;&lt;\/VirtualHost&gt;121&nbsp;&lt;VirtualHost&nbsp;192.168.10.10&gt;122&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot\/bbs&quot;\r\n123&nbsp;ServerName&nbsp;&quot;bbs.linuxprobe.com&quot;\r\n124&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot\/bbs&quot;&gt;\r\n125&nbsp;AllowOverride&nbsp;None\r\n126&nbsp;Require&nbsp;all&nbsp;granted\r\n127&nbsp;&lt;\/Directory&gt;\r\n128&nbsp;&lt;\/VirtualHost&gt;129&nbsp;&lt;VirtualHost&nbsp;192.168.10.10&gt;130&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot\/tech&quot;\r\n131&nbsp;ServerName&nbsp;&quot;tech.linuxprobe.com&quot;\r\n132&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot\/tech&quot;&gt;\r\n133&nbsp;AllowOverride&nbsp;None\r\n134&nbsp;Require&nbsp;all&nbsp;granted\r\n135&nbsp;&lt;\/directory&gt;\r\n136&nbsp;&lt;\/VirtualHost&gt;\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c4\u6b65<\/strong>\uff1a\u56e0\u4e3a\u5f53\u524d\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u8fd8\u662f\u5728\/home\/wwwroot\u76ee\u5f55\u4e2d\uff0c\u56e0\u6b64\u8fd8\u662f\u5fc5\u987b\u8981\u6b63\u786e\u8bbe\u7f6e\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u6587\u4ef6\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\uff0c\u4f7f\u5176\u4e0e\u7f51\u7ad9\u670d\u52a1\u529f\u80fd\u76f8\u543b\u5408\u3002\u6700\u540e\u8bb0\u5f97\u7528restorecon\u547d\u4ee4\u8ba9\u65b0\u914d\u7f6e\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7acb\u5373\u751f\u6548\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u7acb\u5373\u8bbf\u95ee\u5230\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u4e86\uff0c\u6548\u679c\u5982\u56fe10-16\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/www\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/www\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/bbs\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/bbs\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/tech\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/tech\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;restorecon&nbsp;-Rv&nbsp;\/home\/wwwroot\r\nreset&nbsp;\/home\/wwwroot&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/www&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/www\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/bbs&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/bbs\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/tech&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/tech\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E7%BB%93%E6%9E%9C.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1171 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E9%AA%8C%E8%AF%81%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%8A%9F%E8%83%BD%E7%BB%93%E6%9E%9C.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"957\" height=\"598\"  sizes=\"auto, (max-width: 957px) 100vw, 957px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-16&nbsp; \u57fa\u4e8e\u4e3b\u673a\u57df\u540d\u8bbf\u95ee\u865a\u62df\u4e3b\u673a\u7f51\u7ad9<\/p>\n<h6 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 12px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"1053\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">10.5.3 \u57fa\u4e8e\u7aef\u53e3\u53f7<\/span><\/strong><\/span><\/h6>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u57fa\u4e8e\u7aef\u53e3\u53f7\u7684\u865a\u62df\u4e3b\u673a\u529f\u80fd\u53ef\u4ee5\u8ba9\u7528\u6237\u901a\u8fc7\u6307\u5b9a\u7684\u7aef\u53e3\u53f7\u6765\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ad9\u8d44\u6e90\u3002\u5728\u4f7f\u7528Apache\u914d\u7f6e\u865a\u62df\u7f51\u7ad9\u4e3b\u673a\u529f\u80fd\u65f6\uff0c\u57fa\u4e8e\u7aef\u53e3\u53f7\u7684\u914d\u7f6e\u65b9\u5f0f\u662f\u6700\u590d\u6742\u7684\u3002\u56e0\u6b64\u6211\u4eec\u4e0d\u4ec5\u8981\u8003\u8651httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u914d\u7f6e\u56e0\u7d20\uff0c\u8fd8\u9700\u8981\u8003\u8651\u5230SELinux\u670d\u52a1\u5bf9\u65b0\u5f00\u8bbe\u7aef\u53e3\u7684\u76d1\u63a7\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f7f\u752880\u3001443\u30018080\u7b49\u7aef\u53e3\u53f7\u6765\u63d0\u4f9b\u7f51\u7ad9\u8bbf\u95ee\u670d\u52a1\u662f\u6bd4\u8f83\u5408\u7406\u7684\uff0c\u5982\u679c\u4f7f\u7528\u5176\u4ed6\u7aef\u53e3\u53f7\u5219\u4f1a\u53d7\u5230SELinux\u670d\u52a1\u7684\u9650\u5236\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u5728\u63a5\u4e0b\u6765\u7684\u5b9e\u9a8c\u4e2d\uff0c\u6211\u4eec\u4e0d\u4f46\u8981\u8003\u8651\u5230\u76ee\u5f55\u4e0a\u5e94\u7528\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7684\u9650\u5236\uff0c\u8fd8\u9700\u8981\u8003\u8651SELinux\u57df\u5bf9httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u7ba1\u63a7\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5206\u522b\u5728\/home\/wwwroot\u4e2d\u521b\u5efa\u7528\u4e8e\u4fdd\u5b58\u4e0d\u540c\u7f51\u7ad9\u6570\u636e\u7684\u4e24\u4e2a\u76ee\u5f55\uff0c\u5e76\u5411\u5176\u4e2d\u5206\u522b\u5199\u5165\u7f51\u7ad9\u7684\u9996\u9875\u6587\u4ef6\u3002\u6bcf\u4e2a\u9996\u9875\u6587\u4ef6\u4e2d\u5e94\u6709\u660e\u786e\u533a\u5206\u4e0d\u540c\u7f51\u7ad9\u5185\u5bb9\u7684\u4fe1\u606f\uff0c\u65b9\u4fbf\u6211\u4eec\u7a0d\u540e\u80fd\u66f4\u76f4\u89c2\u5730\u68c0\u67e5\u6548\u679c\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/6111\r\n[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;-p&nbsp;\/home\/wwwroot\/6222\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;port:6111&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/6111\/index.html\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;port:6222&quot;&nbsp;&gt;&nbsp;\/home\/wwwroot\/6222\/index.html<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u5728httpd\u670d\u52a1\u914d\u7f6e\u6587\u4ef6\u7684\u7b2c43\u884c\u548c\u7b2c44\u884c\u5206\u522b\u6dfb\u52a0\u7528\u4e8e\u76d1\u542c6111\u548c6222\u7aef\u53e3\u7684\u53c2\u6570\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf&nbsp;\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026&nbsp;\r\n&nbsp;33&nbsp;#\r\n&nbsp;34&nbsp;#&nbsp;Listen:&nbsp;Allows&nbsp;you&nbsp;to&nbsp;bind&nbsp;Apache&nbsp;to&nbsp;specific&nbsp;IP&nbsp;addresses&nbsp;and\/or\r\n&nbsp;35&nbsp;#&nbsp;ports,&nbsp;instead&nbsp;of&nbsp;the&nbsp;default.&nbsp;See&nbsp;also&nbsp;the&nbsp;&lt;VirtualHost&gt;\r\n&nbsp;36&nbsp;#&nbsp;directive.\r\n&nbsp;37&nbsp;#\r\n&nbsp;38&nbsp;#&nbsp;Change&nbsp;this&nbsp;to&nbsp;Listen&nbsp;on&nbsp;specific&nbsp;IP&nbsp;addresses&nbsp;as&nbsp;shown&nbsp;below&nbsp;to&nbsp;\r\n&nbsp;39&nbsp;#&nbsp;prevent&nbsp;Apache&nbsp;from&nbsp;glomming&nbsp;onto&nbsp;all&nbsp;bound&nbsp;IP&nbsp;addresses.\r\n&nbsp;40&nbsp;#\r\n&nbsp;41&nbsp;#Listen&nbsp;12.34.56.78:80\r\n&nbsp;42&nbsp;Listen&nbsp;80&nbsp;43&nbsp;Listen&nbsp;6111&nbsp;44&nbsp;Listen&nbsp;6222\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c3\u6b65<\/strong>\uff1a\u5728httpd\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5927\u7ea6113\u884c\u5904\u5f00\u59cb\uff0c\u5206\u522b\u8ffd\u52a0\u5199\u5165\u4e24\u4e2a\u57fa\u4e8e\u7aef\u53e3\u53f7\u7684\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u53c2\u6570\uff0c\u7136\u540e\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u8bb0\u5f97\u9700\u8981\u91cd\u542fhttpd\u670d\u52a1\uff0c\u8fd9\u4e9b\u914d\u7f6e\u624d\u751f\u6548\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026&nbsp;\r\n113&nbsp;&lt;VirtualHost&nbsp;192.168.10.10:6111&gt;114&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot\/6111&quot;\r\n115&nbsp;ServerName&nbsp;www.linuxprobe.com\r\n116&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot\/6111&quot;&gt;\r\n117&nbsp;AllowOverride&nbsp;None\r\n118&nbsp;Require&nbsp;all&nbsp;granted\r\n119&nbsp;&lt;\/Directory&gt;&nbsp;\r\n120&nbsp;&lt;\/VirtualHost&gt;121&nbsp;&lt;VirtualHost&nbsp;192.168.10.10:6222&gt;122&nbsp;DocumentRoot&nbsp;&quot;\/home\/wwwroot\/6222&quot;\r\n123&nbsp;ServerName&nbsp;bbs.linuxprobe.com\r\n124&nbsp;&lt;Directory&nbsp;&quot;\/home\/wwwroot\/6222&quot;&gt;\r\n125&nbsp;AllowOverride&nbsp;None\r\n126&nbsp;Require&nbsp;all&nbsp;granted\r\n127&nbsp;&lt;\/Directory&gt;\r\n128&nbsp;&lt;\/VirtualHost&gt;\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c4\u6b65<\/strong>\uff1a\u56e0\u4e3a\u6211\u4eec\u628a\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u5b58\u653e\u5728\/home\/wwwroot\u76ee\u5f55\u4e2d\uff0c\u56e0\u6b64\u8fd8\u662f\u5fc5\u987b\u8981\u6b63\u786e\u8bbe\u7f6e\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u6587\u4ef6\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\uff0c\u4f7f\u5176\u4e0e\u7f51\u7ad9\u670d\u52a1\u529f\u80fd\u76f8\u543b\u5408\u3002\u6700\u540e\u8bb0\u5f97\u7528restorecon\u547d\u4ee4\u8ba9\u65b0\u914d\u7f6e\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u7acb\u5373\u751f\u6548\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/6111\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/6111\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/6222\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;fcontext&nbsp;-a&nbsp;-t&nbsp;httpd_sys_content_t&nbsp;\/home\/wwwroot\/6222\/*\r\n[root@linuxprobe&nbsp;~]#&nbsp;restorecon&nbsp;-Rv&nbsp;\/home\/wwwroot\/\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/6111&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/6111\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/6222&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\nrestorecon&nbsp;reset&nbsp;\/home\/wwwroot\/6222\/index.html&nbsp;context&nbsp;unconfined_u:object_r:home_root_t:s0-&gt;unconfined_u:object_r:httpd_sys_content_t:s0\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd\r\nJob&nbsp;for&nbsp;httpd.service&nbsp;failed.&nbsp;See&nbsp;&#39;systemctl&nbsp;status&nbsp;httpd.service&#39;&nbsp;and&nbsp;&#39;journalctl&nbsp;-xn&#39;&nbsp;for&nbsp;details.<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u89c1\u9b3c\u4e86\uff01\u5728\u59a5\u5f53\u914d\u7f6ehttpd\u670d\u52a1\u7a0b\u5e8f\u548cSELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u5e76\u91cd\u542fhttpd\u670d\u52a1\u540e\uff0c\u7adf\u7136\u51fa\u73b0\u62a5\u9519\u4fe1\u606f\u3002\u8fd9\u662f\u56e0\u4e3aSELinux\u670d\u52a1\u68c0\u6d4b\u52306111\u548c6222\u7aef\u53e3\u539f\u672c\u4e0d\u5c5e\u4e8eApache\u670d\u52a1\u5e94\u8be5\u9700\u8981\u7684\u8d44\u6e90\uff0c\u4f46\u73b0\u5728\u5374\u4ee5httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u540d\u4e49\u76d1\u542c\u4f7f\u7528\u4e86\uff0c\u6240\u4ee5SELinux\u4f1a\u62d2\u7edd\u4f7f\u7528Apache\u670d\u52a1\u4f7f\u7528\u8fd9\u4e24\u4e2a\u7aef\u53e3\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528semanage\u547d\u4ee4\u67e5\u8be2\u5e76\u8fc7\u6ee4\u51fa\u6240\u6709\u4e0eHTTP\u534f\u8bae\u76f8\u5173\u4e14SELinux\u670d\u52a1\u5141\u8bb8\u7684\u7aef\u53e3\u5217\u8868\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;port&nbsp;-l&nbsp;|&nbsp;grep&nbsp;http\r\nhttp_cache_port_t&nbsp;tcp&nbsp;8080,&nbsp;8118,&nbsp;8123,&nbsp;10001-10010\r\nhttp_cache_port_t&nbsp;udp&nbsp;3130\r\nhttp_port_t&nbsp;tcp&nbsp;80,&nbsp;81,&nbsp;443,&nbsp;488,&nbsp;8008,&nbsp;8009,&nbsp;8443,&nbsp;9000pegasus_http_port_t&nbsp;tcp&nbsp;5988\r\npegasus_https_port_t&nbsp;tcp&nbsp;5989<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c5\u6b65<\/strong>\uff1aSELinux\u5141\u8bb8\u7684\u4e0eHTTP\u534f\u8bae\u76f8\u5173\u7684\u7aef\u53e3\u53f7\u4e2d\u9ed8\u8ba4\u6ca1\u6709\u5305\u542b6111\u548c6222\uff0c\u56e0\u6b64\u9700\u8981\u5c06\u8fd9\u4e24\u4e2a\u7aef\u53e3\u53f7\u624b\u52a8\u6dfb\u52a0\u8fdb\u53bb\u3002\u8be5\u64cd\u4f5c\u4f1a\u7acb\u5373\u751f\u6548\uff0c\u800c\u4e14\u5728\u7cfb\u7edf\u91cd\u542f\u8fc7\u540e\u4f9d\u7136\u6709\u6548\u3002\u8bbe\u7f6e\u597d\u540e\u518d\u91cd\u542fhttpd\u670d\u52a1\u7a0b\u5e8f\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u770b\u5230\u7f51\u9875\u5185\u5bb9\u4e86\uff0c\u7ed3\u679c\u5982\u56fe10-17\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;port&nbsp;-a&nbsp;-t&nbsp;http_port_t&nbsp;-p&nbsp;tcp&nbsp;6111\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;port&nbsp;-a&nbsp;-t&nbsp;http_port_t&nbsp;-p&nbsp;tcp&nbsp;6222\r\n[root@linuxprobe&nbsp;~]#&nbsp;semanage&nbsp;port&nbsp;-l|&nbsp;grep&nbsp;http\r\nhttp_cache_port_t&nbsp;tcp&nbsp;8080,&nbsp;8118,&nbsp;8123,&nbsp;10001-10010\r\nhttp_cache_port_t&nbsp;udp&nbsp;3130\r\nhttp_port_t&nbsp;tcp&nbsp;&nbsp;6222,&nbsp;6111,&nbsp;80,&nbsp;81,&nbsp;443,&nbsp;488,&nbsp;8008,&nbsp;8009,&nbsp;8443,&nbsp;9000pegasus_http_port_t&nbsp;tcp&nbsp;5988\r\npegasus_https_port_t&nbsp;tcp&nbsp;5989\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E5%9F%BA%E4%BA%8E%E7%AB%AF%E5%8F%A3%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%AE%9E%E9%AA%8C%E6%88%90%E5%8A%9F.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1177 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E5%9F%BA%E4%BA%8E%E7%AB%AF%E5%8F%A3%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA%E5%AE%9E%E9%AA%8C%E6%88%90%E5%8A%9F.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"961\" height=\"388\"  sizes=\"auto, (max-width: 961px) 100vw, 961px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-17&nbsp; \u57fa\u4e8e\u7aef\u53e3\u53f7\u8bbf\u95ee\u865a\u62df\u4e3b\u673a\u7f51\u7ad9<\/p>\n<h5 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 100; line-height: 1.1; margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: rgb(61, 68, 80); white-space: normal; background-color: rgb(255, 255, 255);\"><span id=\"106_Apache\" style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\"><strong style=\"box-sizing: border-box;\">10.6 Apache\u7684\u8bbf\u95ee\u63a7\u5236<\/strong><\/span><\/span><\/h5>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">Apache\u53ef\u4ee5\u57fa\u4e8e\u6e90\u4e3b\u673a\u540d\u3001\u6e90IP\u5730\u5740\u6216\u6e90\u4e3b\u673a\u4e0a\u7684\u6d4f\u89c8\u5668\u7279\u5f81\u7b49\u4fe1\u606f\u5bf9\u7f51\u7ad9\u4e0a\u7684\u8d44\u6e90\u8fdb\u884c\u8bbf\u95ee\u63a7\u5236\u3002\u5b83\u901a\u8fc7Allow\u6307\u4ee4\u5141\u8bb8\u67d0\u4e2a\u4e3b\u673a\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ad9\u8d44\u6e90\uff0c\u901a\u8fc7Deny\u6307\u4ee4\u5b9e\u73b0\u7981\u6b62\u8bbf\u95ee\u3002\u5728\u5141\u8bb8\u6216\u7981\u6b62\u8bbf\u95ee\u7f51\u7ad9\u8d44\u6e90\u65f6\uff0c\u8fd8\u4f1a\u7528\u5230Order\u6307\u4ee4\uff0c\u8fd9\u4e2a\u6307\u4ee4\u7528\u6765\u5b9a\u4e49Allow\u6216Deny\u6307\u4ee4\u8d77\u4f5c\u7528\u7684\u987a\u5e8f\uff0c\u5176\u5339\u914d\u539f\u5219\u662f\u6309\u7167\u987a\u5e8f\u8fdb\u884c\u5339\u914d\uff0c\u82e5\u5339\u914d\u6210\u529f\u5219\u6267\u884c\u540e\u9762\u7684\u9ed8\u8ba4\u6307\u4ee4\u3002\u6bd4\u5982\u201cOrder Allow, Deny\u201d\u8868\u793a\u5148\u5c06\u6e90\u4e3b\u673a\u4e0e\u5141\u8bb8\u89c4\u5219\u8fdb\u884c\u5339\u914d\uff0c\u82e5\u5339\u914d\u6210\u529f\u5219\u5141\u8bb8\u8bbf\u95ee\u8bf7\u6c42\uff0c\u53cd\u4e4b\u5219\u62d2\u7edd\u8bbf\u95ee\u8bf7\u6c42\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c1\u6b65<\/strong>\uff1a\u5148\u5728\u670d\u52a1\u5668\u4e0a\u7684\u7f51\u7ad9\u6570\u636e\u76ee\u5f55\u4e2d\u65b0\u5efa\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u5e76\u5728\u8fd9\u4e2a\u5b50\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u5305\u542bSuccessful\u5355\u8bcd\u7684\u9996\u9875\u6587\u4ef6\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;mkdir&nbsp;\/var\/www\/html\/server\r\n[root@linuxprobe&nbsp;~]#&nbsp;echo&nbsp;&quot;Successful&quot;&nbsp;&gt;&nbsp;\/var\/www\/html\/server\/index.html<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><strong style=\"box-sizing: border-box;\">\u7b2c2\u6b65<\/strong>\uff1a\u6253\u5f00httpd\u670d\u52a1\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5728\u7b2c129\u884c\u540e\u9762\u6dfb\u52a0\u4e0b\u8ff0\u89c4\u5219\u6765\u9650\u5236\u6e90\u4e3b\u673a\u7684\u8bbf\u95ee\u3002\u8fd9\u6bb5\u89c4\u5219\u7684\u542b\u4e49\u662f\u5141\u8bb8\u4f7f\u7528Firefox\u6d4f\u89c8\u5668\u7684\u4e3b\u673a\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u9996\u9875\u6587\u4ef6\uff0c\u9664\u6b64\u4e4b\u5916\u7684\u6240\u6709\u8bf7\u6c42\u90fd\u5c06\u88ab\u62d2\u7edd\u3002\u4f7f\u7528Firefox\u6d4f\u89c8\u5668\u7684\u8bbf\u95ee\u6548\u679c\u5982\u56fe10-18\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n129&nbsp;&lt;Directory&nbsp;&quot;\/var\/www\/html\/server&quot;&gt;\r\n130&nbsp;SetEnvIf&nbsp;User-Agent&nbsp;&quot;Firefox&quot;&nbsp;ff=1\r\n131&nbsp;Order&nbsp;allow,deny\r\n132&nbsp;Allow&nbsp;from&nbsp;env=ff\r\n133&nbsp;&lt;\/Directory&gt;\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E8%AE%BF%E9%97%AE%E6%88%90%E5%8A%9F.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1186 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E8%AE%BF%E9%97%AE%E6%88%90%E5%8A%9F.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"962\" height=\"200\"  sizes=\"auto, (max-width: 962px) 100vw, 962px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\">\u56fe10-18&nbsp; \u706b\u72d0\u6d4f\u89c8\u5668\u6210\u529f\u8bbf\u95ee<\/p>\n<div class=\"dp-highlighter bg_plain\" style=\"box-sizing: border-box; color: rgb(61, 68, 80); font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 17.1429px; white-space: normal; background-color: rgb(255, 255, 255);\">\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">\u9664\u4e86\u5339\u914d\u6e90\u4e3b\u673a\u7684\u6d4f\u89c8\u5668\u7279\u5f81\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5339\u914d\u6e90\u4e3b\u673a\u7684IP\u5730\u5740\u8fdb\u884c\u8bbf\u95ee\u63a7\u5236\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ea\u5141\u8bb8IP\u5730\u5740\u4e3a192.168.10.20\u7684\u4e3b\u673a\u8bbf\u95ee\u7f51\u7ad9\u8d44\u6e90\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u5728httpd\u670d\u52a1\u914d\u7f6e\u6587\u4ef6\u7684\u7b2c129\u884c\u540e\u9762\u6dfb\u52a0\u4e0b\u8ff0\u89c4\u5219\u3002\u8fd9\u6837\u5728\u91cd\u542fhttpd\u670d\u52a1\u7a0b\u5e8f\u540e\u518d\u7528\u672c\u673a\uff08\u5373\u670d\u52a1\u5668\uff0c\u5176IP\u5730\u5740\u4e3a192.168.10.10\uff09\u6765\u8bbf\u95ee\u7f51\u7ad9\u7684\u9996\u9875\u9762\u65f6\u5c31\u4f1a\u63d0\u793a\u8bbf\u95ee\u88ab\u62d2\u7edd\u4e86\uff0c\u5982\u56fe10-19\u6240\u793a\u3002<\/p>\n<pre style=\"box-sizing: border-box; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 13px; white-space: pre-wrap; padding: 9.5px; margin-top: 0px; margin-bottom: 10px; line-height: 1.42857; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); border-radius: 4px; background-color: rgb(245, 245, 245);\">[root@linuxprobe&nbsp;~]#&nbsp;vim&nbsp;\/etc\/httpd\/conf\/httpd.conf\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n129&nbsp;&lt;Directory&nbsp;&quot;\/var\/www\/html\/server&quot;&gt;\r\n130&nbsp;Order&nbsp;allow,deny&nbsp;\r\n131&nbsp;Allow&nbsp;from&nbsp;192.168.10.20\r\n132&nbsp;&lt;\/Directory&gt;\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\n[root@linuxprobe&nbsp;~]#&nbsp;systemctl&nbsp;restart&nbsp;httpd\r\n[root@linuxprobe&nbsp;~]#&nbsp;firefox<\/pre>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E8%AE%BF%E9%97%AE%E5%A4%B1%E8%B4%A5.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1185 aligncenter\" data-original=\"https:\/\/www.linuxprobe.com\/wp-content\/uploads\/2015\/05\/%E8%AE%BF%E9%97%AE%E5%A4%B1%E8%B4%A5.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" width=\"962\" height=\"286\"  sizes=\"auto, (max-width: 962px) 100vw, 962px\" title=\"\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\u7b2c10\u7ae0 \u4f7f\u7528Apache\u670d\u52a1\u90e8\u7f72\u9759\u6001\u7f51\u7ad9\u3002\" style=\"box-sizing: border-box; max-width: 100%; border-radius: 4px; vertical-align: middle; height: auto; margin: 10px auto; display: block;\"\/><\/div><br style=\"box-sizing: border-box;\"\/>\u56fe10-19&nbsp; \u56e0IP\u5730\u5740\u4e0d\u7b26\u5408\u8981\u6c42\u800c\u88ab\u62d2\u7edd\u8bbf\u95ee<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: center;\"><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em;\"><span style=\"box-sizing: border-box; color: #800080;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #008000;\">\u672c\u7ae0\u8282\u7684\u590d\u4e60\u4f5c\u4e1a<\/span><\/strong><\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">1\uff0e\u4ec0\u4e48\u662fWeb\u7f51\u7edc\u670d\u52a1\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u4e00\u79cd\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u5230\u4e92\u8054\u7f51\u4e2d\u5404\u79cd\u8d44\u6e90\u7684\u670d\u52a1\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">2\uff0e\u76f8\u8f83\u4e8eNginx\u670d\u52a1\u7a0b\u5e8f\uff0cApache\u670d\u52a1\u7a0b\u5e8f\u6700\u5927\u7684\u4f18\u52bf\u662f\u4ec0\u4e48\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">Apache\u670d\u52a1\u7a0b\u5e8f\u5177\u5907\u8de8\u5e73\u53f0\u7279\u6027\u3001\u5b89\u5168\u6027\uff0c\u800c\u4e14\u62e5\u6709\u5feb\u901f\u3001\u53ef\u9760\u3001\u7b80\u5355\u7684API\u6269\u5c55\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">3\uff0ehttpd\u670d\u52a1\u7a0b\u5e8f\u6ca1\u6709\u68c0\u67e5\u5230\u9996\u9875\u6587\u4ef6\uff0c\u4f1a\u63d0\u793a\u62a5\u9519\u4fe1\u606f\u5417\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u4e0d\u4f1a\uff0chttpd\u670d\u52a1\u5728\u672a\u627e\u5230\u7f51\u7ad9\u9996\u9875\u6587\u4ef6\u65f6\uff0c\u4f1a\u5411\u8bbf\u5ba2\u663e\u793a\u4e00\u4e2a\u9ed8\u8ba4\u9875\u9762\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">4\uff0e\u7b80\u8ff0Apache\u670d\u52a1\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\u5168\u5c40\u914d\u7f6e\u53c2\u6570\u3001\u533a\u57df\u914d\u7f6e\u53c2\u6570\u548c\u6ce8\u91ca\u4fe1\u606f\u7684\u4f5c\u7528\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u5168\u5c40\u914d\u7f6e\u53c2\u6570\u662f\u4e00\u79cd\u5168\u5c40\u6027\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u53ef\u4f5c\u7528\u4e8e\u5bf9\u6240\u6709\u7684\u5b50\u7ad9\u70b9\uff1b\u533a\u57df\u914d\u7f6e\u53c2\u6570\u5219\u662f\u5355\u72ec\u9488\u5bf9\u4e8e\u6bcf\u4e2a\u72ec\u7acb\u7684\u5b50\u7ad9\u70b9\u8fdb\u884c\u8bbe\u7f6e\u7684\uff1b\u800c\u6ce8\u91ca\u4fe1\u606f\u4e00\u822c\u662f\u5bf9\u670d\u52a1\u7a0b\u5e8f\u7684\u529f\u80fd\u6216\u67d0\u4e00\u884c\u53c2\u6570\u8fdb\u884c\u4ecb\u7ecd\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">5\uff0e\u7b80\u8ff0SELinux\u670d\u52a1\u7684\u4f5c\u7528\u3002<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u4e3a\u4e86\u8ba9\u5404\u4e2a\u670d\u52a1\u8fdb\u7a0b\u90fd\u53d7\u5230\u7ea6\u675f\uff0c\u4f7f\u5176\u4ec5\u83b7\u53d6\u5230\u672c\u5e94\u83b7\u53d6\u7684\u8d44\u6e90\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">6\uff0e\u5728\u4f7f\u7528getenforce\u547d\u4ee4\u67e5\u770bSELinux\u670d\u52a1\u6a21\u5f0f\u65f6\uff0c\u53d1\u73b0\u5176\u914d\u7f6e\u6a21\u5f0f\u4e3apermissive\uff0c\u8fd9\u4ee3\u8868\u5f3a\u5236\u5f00\u542f\u6a21\u5f0f\u5417\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u4e0d\u662f\uff0c\u5f3a\u5236\u5f00\u542f\u6a21\u5f0f\u662fenforcing\uff0c\u800cpermissive\u662f\u53ea\u53d1\u51fa\u8b66\u544a\u800c\u4e0d\u5f3a\u5236\u62e6\u622a\u7684\u6a21\u5f0f\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">7\uff0e\u5728\u4f7f\u7528semanage\u547d\u4ee4\u4fee\u6539\u4e86\u6587\u4ef6\u4e0a\u5e94\u7528\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u540e\uff0c\u8fd8\u9700\u8981\u6267\u884c\u4ec0\u4e48\u547d\u4ee4\u624d\u53ef\u4ee5\u8ba9\u66f4\u6539\u7acb\u5373\u751f\u6548\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u8fd8\u9700\u8981restorecon\u547d\u4ee4\u5373\u53ef\u8ba9\u65b0\u7684SELinux\u5b89\u5168\u4e0a\u4e0b\u6587\u53c2\u6570\u7acb\u5373\u751f\u6548\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">8\uff0e\u8981\u60f3\u67e5\u8be2\u5e76\u8fc7\u6ee4\u51fa\u6240\u6709\u4e0eHTTP\u534f\u8bae\u76f8\u5173\u7684SELinux\u57df\u7b56\u7565\u6709\u54ea\u4e9b\uff0c\u5e94\u8be5\u600e\u4e48\u505a\u5462\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u53ef\u4ee5\u7ed3\u5408\u7ba1\u9053\u7b26\u6765\u5b9e\u73b0\uff0c\u5373\u6267\u884cgetsebool -a | grep http\u547d\u4ee4\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">9\uff0e&nbsp;Apache\u670d\u52a1\u7a0b\u5e8f\u53ef\u4ee5\u57fa\u4e8e\u54ea\u4e9b\u8d44\u6e90\u6765\u521b\u5efa\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u5462\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u53ef\u4ee5\u57fa\u4e8eIP\u5730\u5740\u3001\u4e3b\u673a\u540d\uff08\u57df\u540d\uff09\u6216\u8005\u7aef\u53e3\u53f7\u521b\u5efa\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\">10\uff0e\u76f8\u5bf9\u4e8e\u57fa\u4e8eIP\u5730\u5740\u548c\u57fa\u4e8e\u4e3b\u673a\u540d\uff08\u57df\u540d\uff09\u914d\u7f6e\u7684\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u6765\u8bf4\uff0c\u4f7f\u7528\u7aef\u53e3\u53f7\u914d\u7f6e\u865a<br style=\"box-sizing: border-box;\"\/>\u62df\u4e3b\u673a\u7f51\u7ad9\u6709\u54ea\u4e9b\u7279\u70b9\uff1f<\/p>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; text-align: justify;\"><strong style=\"box-sizing: border-box;\">\u7b54\uff1a<\/strong><span style=\"box-sizing: border-box; color: #FF0000;\">\u5728\u4f7f\u7528\u7aef\u53e3\u53f7\u6765\u914d\u7f6e\u865a\u62df\u4e3b\u673a\u7f51\u7ad9\u65f6\uff0c\u5fc5\u987b\u8981\u8003\u8651\u5230SELinux\u57df\u5bf9httpd\u670d\u52a1\u7a0b\u5e8f\u6240\u7528\u7aef\u53e3\u53f7\u7684\u63a7\u5236\u7b56\u7565\uff0c\u8fd8\u8981\u5728httpd\u670d\u52a1\u7a0b\u5e8f\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\u4f7f\u7528Listen\u53c2\u6570\u6765\u5f00\u542f\u8981\u76d1\u542c\u7684\u7aef\u53e3\u53f7\u3002<\/span><\/p>\n<\/div>\n<p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; line-height: 23px; text-indent: 1em; font-family: &quot;Microsoft Yahei&quot;, Helvetica, Arial, sans-serif; font-size: 12px; white-space: normal; color: rgb(136, 166, 164); background-color: rgb(255, 255, 255);\">\u672c\u6587\u539f\u521b\u5730\u5740\uff1a<a href=\"https:\/\/www.linuxprobe.com\/chapter-10.html\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(210, 50, 45); text-decoration: none;\" rel=\"noopener noreferrer\">https:\/\/www.linuxprobe.com\/chapter-10.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a8\u8350\u7b80\u8ff0\uff1a \u8bf4\u5230Linux\u7cfb\u7edf\u4ece01\u5e74\u5f00\u59cb\u6211\u5c31\u4e00\u76f4\u5728\u63a5\u89e6\uff0c\u76f4\u523003\u5e74\u8fd8\u662f04\u5e74\u7684\u65f6\u5019\u5728\u60e0\u5dde\u65b0\u534e\u4e66\u5e97\u4e70\u4e86\u4e00\u672c\u300a\u9e1f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[132,35,442],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-1","tag-apache","tag-linux","tag-442"],"_links":{"self":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":1,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":3437,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/3437"}],"wp:attachment":[{"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatesky.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}