{"id":79,"date":"2022-12-01T16:43:29","date_gmt":"2022-12-01T08:43:29","guid":{"rendered":"https:\/\/mianka.xyz\/?p=78"},"modified":"2022-12-01T16:43:59","modified_gmt":"2022-12-01T08:43:59","slug":"post-1776407685","status":"publish","type":"post","link":"https:\/\/www.mianka.xyz\/?p=79","title":{"rendered":"\u5b9d\u5854\u9762\u677f\u5e38\u7528\u547d\u4ee4\u5927\u5168"},"content":{"rendered":"<p>\u5b9d\u5854\u5de5\u5177\u7bb1 (\u5305\u542b\u4e0b\u5217\u7edd\u5927\u90e8\u5206\u529f\u80fd \u76f4\u63a5ssh\u4e2d\u6267\u884cbt\u547d\u4ee4 \u4ec5\u96506.x\u4ee5\u4e0a\u7248\u672c\u9762\u677f)<\/p>\n<p>bt<\/p>\n<p>\u5982\u9047\u9762\u677f\u65e0\u6cd5\u767b\u9646\u7b49\u60c5\u51b5\uff0c\u8bf7\u901a\u8fc7SSH\u767b\u9646root\u8d26\u53f7\uff0c\u7136\u540e\u8f93\u5165\u201cbt\u201d\u547d\u4ee4\uff0c\u6839\u636e \u5b9d\u5854\u9762\u677f\u547d\u4ee4\u884c \u7684\u63d0\u793a\u4fee\u6539\u76f8\u5173\u9879\u76ee\uff0c\u6e05\u7406\u7f13\u5b58\u3001\u91cd\u542f\u9762\u677f\u3002<\/p>\n<p>\u5982\u679c\u8f93\u5165 bt \u6216 bt default \u547d\u4ee4\u65e0\u6548\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u5b89\u88c5\u5b9d\u5854\u7eaf\u51c0\u7248\uff0c\u4e0d\u5f71\u54cd\u7f51\u7ad9\u548c\u6570\u636e\u6b63\u5e38\u8fd0\u884c\uff1b<\/p>\n<p><\/p>\n<p>\u505c\u6b62<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/etc\/init.d\/bt&nbsp;stop<\/pre>\n<p><\/p>\n<p>\u542f\u52a8<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/etc\/init.d\/bt&nbsp;start<\/pre>\n<p><\/p>\n<p>\u91cd\u542f<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/etc\/init.d\/bt&nbsp;restart<\/pre>\n<p><\/p>\n<p>\u5378\u8f7d<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/etc\/init.d\/bt&nbsp;stop&nbsp;&amp;&amp;&nbsp;chkconfig&nbsp;--del&nbsp;bt&nbsp;&amp;&amp;&nbsp;rm&nbsp;-f&nbsp;\/etc\/init.d\/bt&nbsp;&amp;&amp;&nbsp;rm&nbsp;-rf&nbsp;\/www\/server\/panel<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u5f53\u524d\u9762\u677f\u7aef\u53e3<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/www\/server\/panel\/data\/port.pl<\/pre>\n<p><\/p>\n<p>\u4fee\u6539\u9762\u677f\u7aef\u53e3\uff0c\u5982\u8981\u6539\u62108881\uff08centos 6 \u7cfb\u7edf\uff09<\/p>\n<pre class=\"prism-highlight prism-language-bash\">echo&nbsp;&#39;8881&#39;&nbsp;&gt;&nbsp;\/www\/server\/panel\/data\/port.pl&nbsp;&amp;&amp;&nbsp;\/etc\/init.d\/bt&nbsp;restart\niptables&nbsp;-I&nbsp;INPUT&nbsp;-p&nbsp;tcp&nbsp;-m&nbsp;state&nbsp;--state&nbsp;NEW&nbsp;-m&nbsp;tcp&nbsp;--dport&nbsp;8881&nbsp;-j&nbsp;ACCEPT\nservice&nbsp;iptables&nbsp;save\nservice&nbsp;iptables&nbsp;restart<\/pre>\n<p><\/p>\n<p>\u4fee\u6539\u9762\u677f\u7aef\u53e3\uff0c\u5982\u8981\u6539\u62108881\uff08centos 7 \u7cfb\u7edf\uff09<\/p>\n<pre class=\"prism-highlight prism-language-bash\">echo&nbsp;&#39;8881&#39;&nbsp;&gt;&nbsp;\/www\/server\/panel\/data\/port.pl&nbsp;&amp;&amp;&nbsp;\/etc\/init.d\/bt&nbsp;restart\nfirewall-cmd&nbsp;--permanent&nbsp;--zone=public&nbsp;--add-port=8881\/tcp\nfirewall-cmd&nbsp;--reload<\/pre>\n<p><\/p>\n<p>\u5f3a\u5236\u4fee\u6539MySQL\u7ba1\u7406(root)\u5bc6\u7801\uff0c\u5982\u8981\u6539\u6210123456<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cd&nbsp;\/www\/server\/panel&nbsp;&amp;&amp;&nbsp;python&nbsp;tools.py&nbsp;root&nbsp;123456<\/pre>\n<p><\/p>\n<p>\u4fee\u6539\u9762\u677f\u5bc6\u7801\uff0c\u5982\u8981\u6539\u6210123456<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cd&nbsp;\/www\/server\/panel&nbsp;&amp;&amp;&nbsp;python&nbsp;tools.py&nbsp;panel&nbsp;123456<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u5b9d\u5854\u65e5\u5fd7<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/tmp\/panelBoot.pl<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u8f6f\u4ef6\u5b89\u88c5\u65e5\u5fd7<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/tmp\/panelExec.log<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/server\/panel\/vhost<\/pre>\n<p><\/p>\n<p>\u5220\u9664\u57df\u540d\u7ed1\u5b9a\u9762\u677f<\/p>\n<pre class=\"prism-highlight prism-language-bash\">rm&nbsp;-f&nbsp;\/www\/server\/panel\/data\/domain.conf<\/pre>\n<p><\/p>\n<p>\u6e05\u7406\u767b\u9646\u9650\u5236<\/p>\n<pre class=\"prism-highlight prism-language-bash\">rm&nbsp;-f&nbsp;\/www\/server\/panel\/data\/*.login<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u9762\u677f\u6388\u6743IP<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/www\/server\/panel\/data\/limitip.conf<\/pre>\n<p><\/p>\n<p>\u5173\u95ed\u8bbf\u95ee\u9650\u5236<\/p>\n<pre class=\"prism-highlight prism-language-bash\">rm&nbsp;-f&nbsp;\/www\/server\/panel\/data\/limitip.conf<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u8bb8\u53ef\u57df\u540d<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/www\/server\/panel\/data\/domain.conf<\/pre>\n<p><\/p>\n<p>\u5173\u95ed\u9762\u677fSSL<\/p>\n<pre class=\"prism-highlight prism-language-bash\">rm&nbsp;-f&nbsp;\/www\/server\/panel\/data\/ssl.pl&nbsp;&amp;&amp;&nbsp;\/etc\/init.d\/bt&nbsp;restart<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u9762\u677f\u9519\u8bef\u65e5\u5fd7<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/tmp\/panelBoot<\/pre>\n<p><\/p>\n<p>\u67e5\u770b\u6570\u636e\u5e93\u9519\u8bef\u65e5\u5fd7<\/p>\n<pre class=\"prism-highlight prism-language-bash\">cat&nbsp;\/www\/server\/data\/*.err<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55(nginx)<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/server\/panel\/vhost\/nginx<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55(apache)<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/server\/panel\/vhost\/apache<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u9ed8\u8ba4\u76ee\u5f55<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/wwwroot<\/pre>\n<p><\/p>\n<p>\u6570\u636e\u5e93\u5907\u4efd\u76ee\u5f55<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/backup\/database<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u5907\u4efd\u76ee\u5f55<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/backup\/site<\/pre>\n<p><\/p>\n<p>\u7ad9\u70b9\u65e5\u5fd7<\/p>\n<pre class=\"prism-highlight prism-language-bash\">\/www\/wwwlogs<\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9d\u5854\u5de5\u5177\u7bb1(\u5305\u542b\u4e0b\u5217\u7edd\u5927\u90e8\u5206\u529f\u80fd\u76f4\u63a5ssh\u4e2d\u6267\u884cbt\u547d\u4ee4\u4ec5\u96506.x\u4ee5\u4e0a\u7248\u672c\u9762\u677f)bt\u5982\u9047\u9762&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-cmd"],"_links":{"self":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":0,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mianka.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}