{"id":36,"date":"2022-04-30T09:04:26","date_gmt":"2022-04-30T01:04:26","guid":{"rendered":"https:\/\/www.weiqs.cn\/blog\/?p=36"},"modified":"2022-04-30T09:47:23","modified_gmt":"2022-04-30T01:47:23","slug":"ubuntu","status":"publish","type":"post","link":"https:\/\/www.weiqs.cn\/blog\/index.php\/2022\/04\/30\/ubuntu\/","title":{"rendered":"ubuntu\u7aef\u53e3\u88ab\u5360\u7528\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p>1.\u6253\u5f00\u7ec8\u7aef\u547d\u4ee4\u884c\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>2.\u8f93\u5165\u547d\u4ee4\u5207\u6362\u5230root\u7528\u6237\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo su<\/pre>\n\n\n\n<p>3.\u518d\u8f93\u5165\u4ee5\u4e0b\u67e5\u627e\u88ab\u5360\u7528\u7684\u7aef\u53e3\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">netstat -tln #\u67e5\u770b\u6240\u6709\u7aef\u53e3\u7684\u4f7f\u7528\u60c5\u51b5netstat -tln | grep 80 #\u53ea\u67e5\u770b80\u7aef\u53e3\u7684\u4f7f\u7528\u60c5\u51b5<\/pre>\n\n\n\n<p>4.\u518d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7aef\u53e3\u88ab\u54ea\u4e2a\u8fdb\u7a0b\u5360\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">lsof -i :80 #\u53ef\u83b7\u5f97\u5360\u7528\u7684\u8fdb\u7a0b\u53f7\n<\/pre>\n\n\n\n<p>5.\u6700\u540e\u6839\u636e\u8fdb\u7a0b\u53f7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6740\u6389\u5360\u752880\u7aef\u53e3\u7684\u8fdb\u7a0b\u6765\u91ca\u653e\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">kill -9 \u8fdb\u7a0b\u53f7<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u6253\u5f00\u7ec8\u7aef\u547d\u4ee4\u884c\u6a21\u5f0f\u3002 2.\u8f93\u5165\u547d\u4ee4\u5207\u6362\u5230root\u7528\u6237\u3002 sudo su 3.\u518d\u8f93\u5165\u4ee5\u4e0b\u67e5\u627e\u88ab\u5360\u7528\u7684\u7aef\u53e3\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[7],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-technology-share","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":2,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":43,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/43"}],"wp:attachment":[{"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weiqs.cn\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}