{"id":1587,"date":"2023-09-09T00:14:50","date_gmt":"2023-09-08T16:14:50","guid":{"rendered":"https:\/\/white-night.club\/?p=1587"},"modified":"2023-11-09T11:07:53","modified_gmt":"2023-11-09T03:07:53","slug":"blog9","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/09\/09\/blog9\/","title":{"rendered":"Linux\u5e38\u7528\u6307\u4ee4\uff08\u4e00\uff09"},"content":{"rendered":"\n<p>\u611f\u89c9\u4ee5\u540e\u8fd8\u4f1a\u51fa\u7eed\u96c6\uff08\u6bd5\u7adf\u7528linux\u7684\u673a\u4f1a\u8d8a\u6765\u8d8a\u591a\u4e86\uff09\uff0c\u6240\u4ee5\u6807\u9898\u5199\u4e86\u4e2a\u201d\u4e00\u201c\u3002<\/p>\n\n\n\n<p>\u4e09\u4e2a\u5e38\u7528\u6307\u4ee4\uff0c\u8bb0\u5f55\u4e00\u4e0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps -aux|grep xxx<\/code><\/pre>\n\n\n\n<ul>\n<li>ps\uff1a\u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f<\/li>\n\n\n\n<li>-aux\uff1a\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u6240\u6709\u7684\u8fdb\u7a0b<\/li>\n\n\n\n<li>grep\uff1a\u67e5\u627e\u5173\u952e\u8bcd\u4e3a\u201cxxx\u201c\u7684\u8fdb\u7a0b<\/li>\n<\/ul>\n\n\n\n<p>\u5076\u5c14\u7528\u3002\u6700\u8fd1\u662f\u7528\u5728\u770bnginx\u6709\u6ca1\u6709\u5f00\u673a\u81ea\u542f\u52a8\u7684\u5730\u65b9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmap -p 80 -Pn 127.0.0.1<\/code><\/pre>\n\n\n\n<ul>\n<li>nmap\uff1a\u626b\u63cf\u7aef\u53e3\uff0c\u6211\u7528\u6765\u67e5\u7aef\u53e3\u72b6\u6001\u7528\u7684\u3002<\/li>\n\n\n\n<li>-p 80\uff1a\u626b80\u7aef\u53e3<\/li>\n\n\n\n<li>-Pn 127.0.0.1\uff1a\u626b\u8fd9\u4e2aIP\u7684\u7aef\u53e3\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7528\u8d77\u6765\u633a\u65b9\u4fbf\u7684\uff0c\u6709\u65f6\u5019\u6000\u7591\u662f\u7aef\u53e3\u6ca1\u5f00\u653e\u5bfc\u81f4\u7684\u9519\u8bef\uff0c\u7528nmap\u4e00\u67e5\u5c31\u77e5\u9053\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status\/start\/stop\/enable\/disable\/restart xxxx<\/code><\/pre>\n\n\n\n<ul>\n<li>systemctl\uff1a\u5f88\u91cd\u8981\u7684\u6307\u4ee4\uff0c\u7528\u6765\u6267\u884c\u4e00\u7cfb\u5217\u7cfb\u7edf\u7ea7\u522b\u7684\u64cd\u4f5c\uff08\u6211\u662f\u8fd9\u4e48\u8ba4\u4e3a\u7684\uff09\u3002<\/li>\n\n\n\n<li>status\/&#8230;\uff1a\u4e00\u7cfb\u5217\u53c2\u6570\u3002\u5176\u4e2d\u6211\u6700\u5e38\u7528\u7684\u662fstatus\u548crestart\u3002\u524d\u8005\u7ecf\u5e38\u7528\u5728\u201c\u521a\u542f\u52a8\u4e00\u4e2a\u670d\u52a1\uff08\u6bd4\u5982apache\u6216nginx\uff09\uff0c\u4f46\u662f\u8f93\u5165\u76f8\u5173\u6307\u4ee4\u5374\u6ca1\u6709\u53cd\u5e94\uff08\u5982\u8f93\u5165curl -vo \/dev\/null http:\/\/localhost\/index.html\u53d1\u73b0nginx\u6ca1\u5728\u8fd0\u884c\uff09\u7684\u65f6\u5019\uff09\uff0c\u5f88\u9002\u5408\u6392\u9519\u3002\u800c\u4e14\u80fd\u770b\u5230\u5b83\u7684\u8fd0\u884c\u72b6\u6001\u3002<br>\u540e\u8005\u6211\u662f\u5728\u66f4\u65b0httpd\u7684\u65f6\u5019\u4f1a\u7528\u5230\uff0c\u6bcf\u6b21\u66f4\u65b0\u5b8c\u90fd\u8981restart\u4e00\u6b21\uff0c\u867d\u7136\u66f4\u65b0\u7684\u9891\u7387\u4e5f\u4e0d\u9ad8\u5c31\u662f\u4e86\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ps\uff0cnmap\uff0csystemctl\u7684\u5927\u81f4\u8bb0\u5f55<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[14,12],"tags":[70,71],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1587"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=1587"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1587\/revisions"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=1587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=1587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=1587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}