{"id":433,"date":"2024-02-14T09:50:22","date_gmt":"2024-02-14T01:50:22","guid":{"rendered":"https:\/\/blog.dzzb.me\/?p=433"},"modified":"2024-04-13T09:42:02","modified_gmt":"2024-04-13T01:42:02","slug":"%e4%b8%80%e9%94%ae%e5%8d%b8%e8%bd%bdapache%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/blog.isoho.tk\/index.php\/2024\/02\/14\/%e4%b8%80%e9%94%ae%e5%8d%b8%e8%bd%bdapache%e8%84%9a%e6%9c%ac\/","title":{"rendered":"\u4e00\u952e\u5378\u8f7d Apache \u811a\u672c"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1\u3001\u521b\u5efa\u65b0\u7684\u4ed3\u5e93\uff1a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u767b\u5f55<strong>Github<\/strong>\u8d26\u53f7<\/li>\n\n\n\n<li>\u53f3\u4e0a\u89d2\u201c<strong>+<\/strong>\u201d\u4e0b\u62c9\uff0c\u9009\u62e9 &#8220;<strong>New repository<\/strong>&#8220;<\/li>\n\n\n\n<li>\u7ed9\u4ed3\u5e93\u521b\u5efa\u540d\u79f0\uff0c\u5728\u201c<strong>Repository name<\/strong>\u201d\u586b\u5165\uff1a<strong>uninstall_apache.sh<\/strong><\/li>\n\n\n\n<li>\u5728\u201c<strong>Description (optional)<\/strong>\u201d\u586b\u5165\u63cf\u8ff0\uff1a<strong>\u7528\u4e8e\u5378\u8f7d Apache<\/strong><\/li>\n\n\n\n<li>\u5728\u201c<strong>Initialize this repository with<\/strong>:\u201d\u7ed9\u201c<strong>Add a README file<\/strong>\u201d\u6253\u4e0a<strong>\u221a<\/strong><\/li>\n\n\n\n<li>\u70b9\u51fb &#8220;<strong>Create repository<\/strong>&#8221; #\u521b\u5efa\u4ed3\u5e93<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2\u3001\u7f16\u5199\u5378\u8f7d Apache \u7684\u811a\u672c<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u811a\u672c\u6587\u4ef6\uff0c\u547d\u540d\u4e3a <strong>uninstall_apache.sh<\/strong><\/li>\n\n\n\n<li>\u5c06\u7f16\u5199\u597d\u7684\u5378\u8f7d <strong>Apache<\/strong> \u7684\u811a\u672c\u5185\u5bb9\u5199\u5165\u5230 <strong>uninstall_apache.sh<\/strong> \u6587\u4ef6\u4e2d<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3\u3001\u4e0a\u4f20\u811a\u672c\u5230 GitHub \u4ed3\u5e93<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u56de\u5230 <strong>GitHub<\/strong> \u9875\u9762\uff0c\u8fdb\u5165\u521a\u521a\u521b\u5efa\u7684\u4ed3\u5e93<\/li>\n\n\n\n<li>\u70b9\u51fb &#8220;<strong>Add file<\/strong>&#8221; -&gt; &#8220;<strong>Upload files<\/strong>&#8220;<\/li>\n\n\n\n<li>\u5c06 <strong>uninstall_apache.sh<\/strong> \u6587\u4ef6\u62d6\u62fd\u5230\u9875\u9762\u4e0a\uff0c\u6216\u8005\u70b9\u51fb &#8220;<strong>choose your files<\/strong>&#8221; \u9009\u62e9\u6587\u4ef6\u4e0a\u4f20<\/li>\n\n\n\n<li>\u7b49\u5f85\u6587\u4ef6\u4e0a\u4f20\u5b8c\u6210\u540e\uff0c\u5411\u4e0b\u6eda\u52a8\u9875\u9762\uff0c\u586b\u5199\u63d0\u4ea4\u4fe1\u606f\uff0c\u7136\u540e\u70b9\u51fb &#8220;<strong>Commit changes<\/strong>&#8220;<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">4\u3001\u751f\u6210\u4e00\u952e\u5b89\u88c5\u811a\u672c\u94fe\u63a5<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8fdb\u5165\u521a\u521a\u521b\u5efa\u7684\u4ed3\u5e93\uff0c\u70b9\u51fb <strong>uninstall_apache.sh<\/strong> \u6587\u4ef6\u4ee5\u67e5\u770b\u5176\u5185\u5bb9\u3002<\/li>\n\n\n\n<li>\u590d\u5236\u6d4f\u89c8\u5668\u5730\u5740\u680f\u4e2d\u7684\u94fe\u63a5\u3001\u4f8b\u5982\uff1a <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">https:\/\/github.com<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\/your_username\/your_repository<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><s>\/blob<\/s><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\/main\/your_file<\/mark><\/strong><\/mark><\/strong><\/li>\n\n\n\n<li>\u5c06\u5730\u5740\u680f\u4e2d\u7684\u94fe\u63a5\u66ff\u6362\u8fdb\u6765\u3001\u4f8b\u5982\uff1a<strong>wget -O <strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">your_file<\/mark><\/strong><\/mark><\/strong> <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">https:\/\/<strong>raw.githubusercontent.com<\/strong><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\/your_username\/your_repository\/main\/<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">your_file<\/mark><\/strong><\/mark><\/strong><\/mark> &amp;&amp; chmod +x <strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">your_repository<\/mark><\/strong><\/strong> &amp;&amp; .\/<strong><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">your_file<\/mark><\/strong><\/strong><\/strong><\/li>\n\n\n\n<li>\u6ce8\u610f\uff1a\u5c06<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">https:\/\/github.com<\/mark><\/strong>\u66ff\u6362\u4e3a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"><strong>https:\/\/raw.githubusercontent.com<\/strong><\/mark>\uff0c\u5e76\u79fb\u9664<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><s>\/blob<\/s><\/mark><\/strong><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">5\u3001\u5982\u679c\u5728\u672c\u5730\u4e0a\u4f20\u811a\u672c\u5230\u670d\u52a1\u5668\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0a\u4f20\u5230\u5982\u4e0b\u8def\u5f84\uff1a<strong>\/root\/uninstall_apache.sh<\/strong><\/li>\n\n\n\n<li>\u6267\u884c\u6b64\u547d\u4ee4\u5b89\u88c5\uff1a<strong>bash \/root\/uninstall_apache.sh<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e00\u952e\u5378\u8f7dapache\u811a\u672c:<\/h4>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#E6E6E6;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#222222\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"wget -O uninstall_apache.sh https:\/\/raw.githubusercontent.com\/Emily-Ludlum\/uninstall_apache.sh\/main\/uninstall_apache.sh &amp;&amp; chmod +x uninstall_apache.sh &amp;&amp; .\/uninstall_apache.sh\" style=\"color:#E6E6E6;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki slack-dark\" style=\"background-color: #222222\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">wget<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">O<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">uninstall_apache<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #9CDCFE\">sh<\/span><span style=\"color: #E6E6E6\"> https:<\/span><span style=\"color: #6A9955\">\/\/raw.githubusercontent.com\/Emily-Ludlum\/uninstall_apache.sh\/main\/uninstall_apache.sh &amp;&amp; chmod +x uninstall_apache.sh &amp;&amp; .\/uninstall_apache.sh<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u67e5\u8be280\u7aef\u53e3\u5360\u7528\u60c5\u51b5\uff1a<\/h4>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#E6E6E6;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#222222\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"netstat -anp |grep 80\" style=\"color:#E6E6E6;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki slack-dark\" style=\"background-color: #222222\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">netstat<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">anp<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #D4D4D4\">|<\/span><span style=\"color: #9CDCFE\">grep<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #B5CEA8\">80<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\">END<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u521b\u5efa\u65b0\u7684\u4ed3\u5e93\uff1a 2\u3001\u7f16\u5199\u5378\u8f7d&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-deploy"],"_links":{"self":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":22,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/433\/revisions\/621"}],"wp:attachment":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}