{"id":4117,"date":"2019-06-27T20:04:44","date_gmt":"2019-06-27T12:04:44","guid":{"rendered":"https:\/\/dmesg.app\/?p=4117"},"modified":"2019-06-27T20:04:44","modified_gmt":"2019-06-27T12:04:44","slug":"rm-etc","status":"publish","type":"post","link":"https:\/\/dmesg.app\/rm-etc.html","title":{"rendered":"\u624b\u4e00\u6296\uff0c\u6211\u5220\u9664\u4e86etc\u76ee\u5f55"},"content":{"rendered":"<blockquote><p><span style=\"font-size: 12pt;\">\u6211\u6b7b\u4e86\u4e4b\u540e \u4f1a\u53d8\u6210\u90a3\u4e9b\u661f\u661f\u5417\uff1f<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u4f60\u60f3\u53d8\u6210\u661f\u661f\u5417\uff1f<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u60f3\u554a\uff0c\u56e0\u4e3a\u6211\u7684\u5bb6\u4eba\u90fd\u5728\u90a3\u91cc<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u8fd9\u6837\u554a \u771f\u60f3\u53d8\u6210\u7f8e\u4e3d\u7684\u661f\u661f \u60f3\u53d8\u6210\u661f\u661f\u7684\u8bdd\u2026\u5fc5\u987b\u5148\u597d\u597d\u5730\u6d3b\u7740\u624d\u884c\u554a<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u4ec0\u4e48\u662f\u300c\u6d3b\u7740\u300d\uff1f<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u6d3b\u7740\uff0c\u5c31\u662f\u6000\u62b1\u5e0c\u671b\u7684\u610f\u601d<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u5e0c\u671b\uff1f<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u4eba\u82e5\u662f\u5931\u53bb\u4e86\u5e0c\u671b \u5c31\u65e0\u6cd5\u6d3b\u4e0b\u53bb<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u5982\u679c\u8fde\u5e0c\u671b\u672c\u8eab\u90fd\u6d88\u5931\u4e86\u5462\uff1f<\/span><br \/>\n<span style=\"font-size: 12pt;\">\u5e0c\u671b\u4e0d\u4f1a\u6d88\u5931\u7684 \u662f\u4eba\u4eec\u53d8\u5f97\u770b\u4e0d\u89c1\u5e0c\u671b\u800c\u5df2<\/span><\/p><\/blockquote>\n<p><span style=\"font-size: 12pt;\">\u4e0d\u5e72\u4e86\uff0c\u6211\u5f00\u9664\u4e86\u9ed1\u5fc3\u516c\u53f8\u3002\u4e0d\u597d\u610f\u601d\uff0c\u8d70\u9519\u7247\u573a\u4e86\u3002\u6211\u4e0d\u662f\u4e0d\u5e72\u4e86\uff0c\u6211\u6ca1\u6709\u5f00\u9664\u4e86\u9ed1\u5fc3\u516c\u53f8\u3002\u6211\u662f\u624b\u4e00\u6296\uff0c\u5220\u9664\u4e86<code>\/etc<\/code>\u76ee\u5f55\u2026\u2026<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u55ef\uff1f\uff1f<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u4f5c\u4e3a\u4e00\u540dLinux\u8001\u53f8\u673a\uff0c\u6211\u7ecf\u5e38\u81ea\u5439\u81ea\u64c2\u62e5\u6709n\u5e74Linux\u4f7f\u7528\u7ecf\u9a8c\uff0croot\u6562\u6b7b\u961f\u4ece\u672a\u7ffb\u8f66\u8fc7\u3002\u5b9e\u9645\u4e0a\uff0c\u9664\u4e86n\u5e74\u524d\u51cc\u6668\u4e09\u56db\u70b9\u91cd\u88c5\u670d\u52a1\u5668\u65f6\u5fd8\u8bb0\u5907\u4efd\u6570\u636e\u5e93\u4e4b\u5916\uff0c\u6211\u8fd8\u771f\u6ca1\u7ffb\u8f66\u8fc7\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u7136\u800c\u8fd9\u6b21\uff0c\u5c0f\u624b\u4e00\u6296\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u4e8b\u60c5\u662f\u8fd9\u6837\u7684\uff0cnodequery\u6302\u4e86\uff0c\u6211\u5bfb\u601d\u7740\u6362\u4e00\u4e2a\u76d1\u63a7\u670d\u52a1\uff0c\u90a3\u5c31\u8981\u5148\u628a\u539f\u6765\u7684\u76d1\u63a7\u811a\u672c\u5220\u6389\uff0c\u53ef\u662f\u6211\u8fd9\u4e48\u61d2\uff0c\u53c8\u5220\u9664\u7528\u6237\u5220\u9664crontab\u5220\u9664\u6587\u4ef6\u7684\uff0c\u6211\u5c31\u76f4\u63a5<a href=\"https:\/\/www.moerats.com\/archives\/568\/\">\u5728\u7f51\u4e0a\u627e\u4e86\u4e0b<\/a>\u5220\u9664\u7684\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"prettyprint linenums\">root@abcdef:~# rm -R \/ etc \/ nodequery &amp;&amp;\uff08crontab -u nodequery -l | grep -v\u201c\/etc\/nodequery\/nq-agent.sh\u201d\uff09| crontab -u nodequery  - &amp;&amp;  userdel nodequery\r\n\r\nrm: it is dangerous to operate recursively on &#039;\/&#039;\r\nrm: use --no-preserve-root to override this failsafe\r\nrm: cannot remove &#039;etc&#039;: No such file or directory\r\nrm: it is dangerous to operate recursively on &#039;\/&#039;\r\nrm: use --no-preserve-root to override this failsafe\r\nrm: cannot remove &#039;nodequery&#039;: No such file or directory\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u6211\u8fd9\u4e00\u770b\uff0c\u62a5\u9519\u4e86\uff0c\u54ce\u54df\u554a\u524d\u9762\u600e\u4e48\u6709\u4e2a\u7a7a\u683c\u5462\uff0c\u554a\u8fd9\u6837<\/span><\/p>\n<pre class=\"prettyprint linenums\">root@abcdef:~# rm -R \/etc\/ nodequery &amp;&amp;\uff08crontab -u nodequery -l | grep -v\u201c\/etc\/nodequery\/nq-agent.sh\u201d\uff09| crontab -u nodequery - &amp;&amp; userdel nodequery\r\n\r\nrm: cannot remove &#039;nodequery&#039;: No such file or directory\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u597d\u50cf\u6ca1\u95ee\u9898\u4e86\uff0c\u786e\u8ba4\u4e00\u4e0bcrontab\u5df2\u7ecf\u6ca1\u4e86\u5427\uff01<\/span><\/p>\n<pre class=\"prettyprint linenums\">root@abcdef:~# crontab -l\r\n\r\ncrontab: your UID isn&#039;t in the passwd file.\r\nbailing out.\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u54ce\u54df\u6211\u53bb\uff1f\u6211\u7684UID\u4e0d\u5728passwd\u91cc\uff1f\u4ec0\u4e48\uff0c\u5367\u69fd\u5367\u69fd\u5367\u69fd\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u4e8b\u60c5\u5c31\u662f\u8fd9\u4e48\u4e2a\u4e8b\u60c5\uff0c\u7ecf\u8fc7\u5c31\u662f\u8fd9\u4e48\u4e2a\u7ecf\u8fc7\uff0c<code>\/etc<\/code>\u76ee\u5f55\u88ab\u6211\u5e72\u6389\u4e86\uff01(\u256f\u2035\u25a1\u2032)\u256f\ufe35\u253b\u2501\u253b<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u6ca1\u4e86\/etc\u4f1a\u600e\u6837<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u9996\u5148\u7cfb\u7edf\u7684\u5404\u79cd\u914d\u7f6e\u662f\u6ca1\u4e86\uff0cssh\u80af\u5b9a\u4e5f\u767b\u4e0d\u4e0a\u53bb\uff0c\u56e0\u4e3asshd\u8981\u68c0\u67e5<code>\/etc\/ssh\/sshd_config<\/code>\u7684\u914d\u7f6e\u7684\u3002\u522b\u60f3\u4e86\uff0cVNC\u4e5f\u4e0d\u597d\u7528\u3002\u6b64\u65f6\u8fd9\u53f0\u670d\u52a1\u5668\u5c31\u50cf\u662f\u884c\u5c38\u8d70\u8089\u4e00\u6837\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u4f46\u662f\u597d\u6d88\u606f\u662f\uff0cNginx\uff0cPHP\u548cMySQL\u8fd8\u662f\u8fd0\u884c\u7740\u7684\uff0c\u867d\u8bf4Let\u2019s Encrypt\u8bc1\u4e66\u4e5f\u4e22\u4e86\uff0c\u4f46\u662fNginx\u8fd8\u7f13\u5b58\u7740\uff0c\u6240\u4ee5\u7f51\u7ad9\u5176\u5b9e\u8fd8\u6d3b\u7740\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u8fd8\u6709\u4e00\u4e2a\u66f4\u597d\u7684\u6d88\u606f\uff0c\u5f53\u524d\u7684shell\u8fd8\u5728\uff01\u8fd9\u4e2ashell\u662f\u6211\u552f\u4e00\u7684\u673a\u4f1a\uff01\u522b\u65ad\u7f51\u522b\u65ad\u7f51\u5c31\u597d\u2026\u2026<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u5907\u4efd\u3001\u8f6c\u79fb<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u8fd9\u53f0\u670d\u52a1\u5668\u7684\u7528\u9014\u6bd4\u8f83\u5355\u4e00\uff0c\u66f4\u53ef\u6015\u7684\u662f\uff0c<strong>\u4e3b\u4eba\u8fd8\u4e0d\u662f\u6211<\/strong>\uff0c\u5929\u554a\u6211\u4e5f\u4f1a\u505a\u51fa\u4f20\u8bf4\u4e2d\u5220\u5e93\u8dd1\u8def\u7684\u4e8b\u60c5\u5417\uff01<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u51b7\u9759\u4e86\u51e0\u79d2\u949f\u4e4b\u540e\uff0c\u8d81\u7740\u6ca1\u65ad\u7f51\u8d76\u7d27\u6253\u5305\u5907\u4efd\u7f51\u7ad9\u6587\u4ef6\uff0c\u5bfc\u51fa\u6570\u636e\u5e93\uff0c\u5927\u4e0d\u4e86\u91cd\u88c5\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u6587\u4ef6\u6253\u5305\u5b8c\u4e86\uff0cscp\u53d1\u7ed9\u6211\u7684\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u5427<\/span><\/p>\n<pre class=\"prettyprint linenums\">root@abcdef:~# scp 062WARNING:root:could not open file &#039;\/etc\/apt\/sources.list&#039;\r\n\r\nCommand &#039;awk&#039; not found, but can be installed with:\r\napt install gawk (You will have to enable component called &#039;main&#039;)\r\napt install mawk (You will have to enable component called &#039;main&#039;)\r\napt install original-awk (You will have to enable component called &#039;universe&#039;)\r\n7.tgz ^C\r\n\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u5509\uff1f\uff1fbash completion\u4e5f\u6302\u4e86\uff1f\u90a3\u6211\u4e0d\u8865\u5168\u4e86\u53ef\u4ee5\u5427<\/span><\/p>\n<pre class=\"prettyprint linenums\">root@abcdef:~# scp 0627.tgz root@acvda.me:\/root\r\n\r\nunknown user 0\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u554a\u5bf9\u554a\uff0c\u56e0\u4e3asshd\u51c9\u4e86\uff0c\u6240\u4ee5\u4f9d\u8d56\u4e8essh\u7684\u4e00\u4e9b\u547d\u4ee4\uff0c\u6bd4\u5982scp\u4e5f\u51c9\u4e86\u2026\u2026\u90a3\u6211SFTP\u5f80\u56de\u4e0b\u8f7d\u6587\u4ef6\u4e5f\u4e0d\u884c\u554a\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u554a\u90a3\u6211cp\u5230webroot\u4e0b\uff0c\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u8d76\u7d27wget\uff0c\u7136\u540e\u5220\u9664webroot\u4e0b\u7684\u6587\u4ef6\u2026\u2026<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u6b7b\u9a6c\u5f53\u6d3b\u9a6c\u533b<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u6570\u636e\u5907\u4efd\u597d\u4e86\uff0c\u90a3\u4e48\u73b0\u5728\u8be5\u601d\u8003\u600e\u4e48\u6062\u590d\u4e86\uff0c\u4e0d\u80fd\u4e00\u8f88\u5b50\u4e0d\u91cd\u542f\uff0c\u81ea\u5df1\u4e5f\u6ca1\u6cd5ssh\u554a\u2026\u2026\u8d76\u7d27\u767b\u5f55\u4e0b\u963f\u91cc\u4e91\u770b\u770b\u6709\u6ca1\u6709\u5feb\u7167\u2014\u2014\u6ca1\u6709\u54e6\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u91cd\u88c5\u7cfb\u7edf\uff1f\u90a3\u592a\u9ebb\u70e6\u4e86\u3002\u672c\u7740\u6b7b\u9a6c\u5f53\u6d3b\u9a6c\u533b\u7684\u601d\u60f3\uff0c\u8bd5\u8bd5\u79fb\u82b1\u63a5\u6728\u5427\u2014\u2014\u6211\u628a\u53e6\u4e00\u53f0\u914d\u7f6e\u57fa\u672c\u4e00\u6837\u7684\u670d\u52a1\u5668\u7684\u914d\u7f6e\u62f7\u8d1d\u8fc7\u6765\u770b\u770bssh\u80fd\u4e0d\u80fd\u6d3b\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u4e8e\u662f\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a<\/span><\/p>\n<pre class=\"prettyprint linenums\">tar jcpf etc.tgz \/etc\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u4e00\u5b9a\u8981\u8bb0\u5f97\u5e26p\u53c2\u6570\uff0c\u8fd9\u6837\u624d\u4f1a\u4fdd\u6301\u6743\u9650\u3002scp\u4e0d\u7ba1\u7528\uff0c\u90a3\u4e5f\u653e\u5230webroot\u4e0b\uff0c\u8d76\u7d27wget\u7136\u540e\u5220\u9664\uff0c\u7136\u540e\u89e3\u538b\u7f29\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u65b0\u5f00\u4e00\u4e2assh\u8fde\u63a5\uff0c\u54c7\uff0c\u6d3b\u4e86\u2026\u2026\u5f53\u7136\u4e86host keys\u662f\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u7684\uff0c\u5bc6\u7801\u4e5f\u662f\uff0c\u4e3b\u673a\u540d\u4e5f\u662f\u2026\u2026\u8fd9\u5c31\u597d\u50cf\u6362\u5934\u672f\u54e6\uff01<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u7be1\u6539\u8bb0\u5fc6<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u533b\u5b66\u53f2\u4e0a\u6362\u5934\u672f\u96be\u5ea6\u6781\u9ad8\uff0c\u4e5f\u53ef\u80fd\u6709\u4e00\u4e9b\u4f26\u7406\u95ee\u9898\uff0c\u4f46\u662f\u54b1\u8fd9\u6765\u8bf4\uff0c\u8fd9\u5c31\u50cf\u662f\u6362\u4e86\u4e2a\u8eab\u4f53\uff0c\u7075\u9b42\u8fd8\u662f\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u2026\u2026\u8fd8\u8981\u505a\u4e00\u4e9b\u914d\u7f6e\u7684<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u91cd\u65b0\u751f\u6210ssh host key<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u54b1\u7740\u8ba9\u4e24\u53f0\u670d\u52a1\u5668\u7684host key\u90fd\u4e00\u6837\uff0c\u81ea\u5df1\u7528\u8d77\u6765\u592a\u4e0d\u597d\u4e86\uff0c\u6240\u4ee5\u8981\u91cd\u65b0\u751f\u6210\u4e00\u7ec4<\/span><\/p>\n<pre class=\"prettyprint linenums\">rm -v \/etc\/ssh\/ssh_host_*\r\ndpkg-reconfigure openssh-server\r\n<\/pre>\n<h3><span style=\"font-size: 12pt;\">\u4fee\u6539\u5bc6\u7801<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u8fd9\u70b9\u5c31\u4e0d\u7528\u8bf4\u4e86<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u91cd\u65b0\u7533\u8bf7SSL\u8bc1\u4e66<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u7531\u4e8e\u6574\u4e2aletsencrypt\u76ee\u5f55\u4e5f\u6ca1\u4e86\uff0c\u6240\u4ee5\u4e5f\u6ca1\u529e\u6cd5revoke\u8bc1\u4e66\uff0c\u76f4\u63a5\u5220\u9664<code>\/etc\/letsencrypt<\/code>\u7136\u540e<code>apt install certbot<\/code>\uff0c\u7136\u540e\u518d\u91cd\u65b0\u7533\u8bf7\u4e00\u4e2a\u8bc1\u4e66\u597d\u4e86<\/span><\/p>\n<p><strong><span style=\"font-size: 12pt;\">\u6211\u8fd8\u662f\u5e74\u8f7b\u554a\uff0c\u6211\u505a\u5b8c\u8fd9\u4e9b\u7684\u65f6\u5019\u6211\u89c9\u5f97\u5dee\u4e0d\u591a\u4e86\uff0c\u5c31\u4e00\u4e2areboot\u91cd\u542f\u4e86\u3002\u5f53\u7136\u4e86\u8fd9\u600e\u4e48\u591f\u554a\u2026\u2026fstab\u5462\uff0c\u7f51\u7edc\u5462\uff01\uff01\u5f88\u60b2\u5267\u7684\uff0c\u6211ssh\u4e0d\u4e0a\uff0c\u8fd8\u597dVNC\u662f\u597d\u7528\u7684<\/span><\/strong><\/p>\n<h3><span style=\"font-size: 12pt;\">fstab<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u4e8e\u662f\u6211VNC\u767b\u5f55\u4e0a\uff0c\u770b\u7740\u8fd9\u53f0\u670d\u52a1\u5668\u8fd8\u53eb\u7740\u522b\u4eba\u7684\u540d\u5b57\uff0c\u5509\u2026\u2026<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u7531\u4e8e\u73b0\u5728\u5927\u5bb6\u57fa\u672c\u4e0a\u662f\u7528UUID\u6302\u8f7d\u7684\u78c1\u76d8\uff0c\u5f88\u5c11\u6709\u4eba\u76f4\u63a5\u6307\u5b9a\u8bbe\u5907\u540d\u4e86\uff0c\u6240\u4ee5\u8fd9\u91cc\u80af\u5b9a\u6709\u95ee\u9898\u5566\u3002\u89e3\u51b3\u529e\u6cd5\u5f88\u7b80\u5355\uff0cremount\u4e3arw\uff0c\u6539\u4e00\u4e0b\u4e0b<\/span><\/p>\n<pre class=\"prettyprint linenums\">mount \/dev\/vda1 \u2013o remount,rw \/\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u8fd9\u6837\u6839\u5c31\u662f\u53ef\u4ee5\u8bfb\u5199\u7684\u4e86\uff0c\u7136\u540e\u770b\u60c5\u51b5\u66f4\u6539<code>\/etc\/fstab<\/code><\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u91cd\u65b0\u914d\u7f6e\u7f51\u7edc<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4f7f\u7528\u7684\u662f\u9759\u6001IP\uff0c\u8fd9\u53f0\u670d\u52a1\u5668\u4f7f\u7528\u7684\u662fDHCP\uff0c\u6240\u4ee5\u7f51\u7edc\u662f\u80af\u5b9a\u4e0d\u901a\u7684\u3002\u9996\u5148<code>ifconfig<\/code>\u786e\u5b9a\u4e0b\u6211\u7684\u7f51\u5361\u53ebens3\uff0c\u7531\u4e8e\u6211\u7528\u7684\u662fUbuntu 18.04\uff0c\u6240\u4ee5\u8981\u53bb\u4fee\u6539netplan\u7684\u914d\u7f6e\u6587\u4ef6<code>\/etc\/netplan\/01-netcfg.yaml<\/code>\uff0c\u5199\u5982\u4e0b\u914d\u7f6e\uff1a<\/span><\/p>\n<pre class=\"prettyprint linenums\">network:\r\n  version: 2\r\n  renderer: networkd\r\n  ethernets:\r\n    ens3:\r\n        dhcp4: true\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u786e\u5b9a\u7f29\u8fdb\u4e5f\u6ca1\u95ee\u9898\uff0c\u5e94\u7528\u4e0b\u914d\u7f6e<\/span><\/p>\n<pre class=\"prettyprint linenums\">netplan apply\r\n<\/pre>\n<p><span style=\"font-size: 12pt;\">\u4e4b\u540e\u518dcurl\u4e0b\uff0c\u7f51\u7edc\u901a\u4e86<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u4fee\u6539\u4e3b\u673a\u540d<\/span><\/h3>\n<pre class=\"prettyprint linenums\">hostnamectl set-hostname abcde\r\n<\/pre>\n<h3><span style=\"font-size: 12pt;\">\u68c0\u67e5\u5176\u4ed6\u914d\u7f6e\u4e0e\u670d\u52a1<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u8fd9\u70b9\u5c31\u56e0\u4eba\u800c\u5f02\u5566~<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u540e\u9057\u75c7<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u6bd5\u7adf\u54b1\u8fd9\u4e2a<code>\/etc<\/code>\u662f\u522b\u4eba\u7684\uff0c\u6240\u4ee5\u6709\u4e9b\u5730\u65b9\u80af\u5b9a\u662f\u6709\u95ee\u9898\u7684\u3002\u6bd4\u5982\u8bf4\u2026\u2026<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u6240\u6709\u8005\u53ef\u80fd\u4f1a\u6539\u53d8<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u6bd5\u7adfuid\u4e0d\u540c\uff0c\u6240\u4ee5\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u53ea\u80fd\u624b\u52a8\u6539\u6539\u5566<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u67d0\u4e9b\u670d\u52a1\u53ef\u80fd\u542f\u52a8\u4e0d\u4e86<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u6bd4\u5982\u5728\u6211\u8fd9\u91cc\u5c31\u662fMySQL\u542f\u52a8\u4e0d\u8d77\u6765\u3002\u7b2c\u4e00\u731c\u60f3\u662f\u6743\u9650\u4e0d\u591f\uff1fchown\u4e86\u4e5f\u4e0d\u5bf9<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u540e\u6765\u53d1\u73b0\u62a5\u9519mysqld_safe --malloc-lib can not be read and will not be used<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u540e\u6765\u53d1\u73b0\u628a<code>my.cnf<\/code>\u91cc\u7684<code>malloc-lib=\/usr\/lib\/libtcmalloc.so<\/code>\u6ce8\u91ca\u4e86\u5c31\u597d<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u7136\u540e\u7a81\u7136\u60f3\u8d77\u6765\uff0c\u8fd9\u4e24\u53f0\u670d\u52a1\u5668\u4f3c\u4e4e\u662f\u66fe\u7ecf\u505a\u7684\u4e3b\u4ece\uff0c\u4e8e\u662f\u73b0\u5728\u519c\u5974\u7ffb\u8eab\u628a\u6b4c\u5531\uff0c\u5927\u5bb6\u90fd\u662f\u5974\u96b6\u4e86\u5457\uff1f<\/span><\/p>\n<h3><span style=\"font-size: 12pt;\">\u65ad\u6389\u7684\u7b26\u53f7\u94fe\u63a5<\/span><\/h3>\n<p><span style=\"font-size: 12pt;\">\u6709\u4e9b<code>\/etc<\/code>\u91cc\u7684\u6587\u4ef6\u53ef\u80fd\u662f\u7b26\u53f7\u94fe\u63a5\u5230\u5176\u4ed6\u76ee\u5f55\u7684\uff0c\u90a3\u5c31\u81ea\u5df1\u91cd\u65b0\u5f04\u4e0b\u5427\u3002<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u635f\u5931\u4e86\u4ec0\u4e48<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u5728\u8fd9\u63a5\u8fd1\u4e24\u4e2a\u5c0f\u65f6\uff0815:45-17:55\uff0c\u5305\u62ec\u7ed9\u4eba\u9001\u6587\u4ef6\u548c\u56de\u5bb6\u8def\u4e0a\uff09\uff0c\u603b\u7ed3\u4e0b\u6765\uff0c\u6211\u53ea\u635f\u5931\u4e86\u4e00\u5957SSL\u8bc1\u4e66\uff0c\u5927\u6982\u534a\u5c0f\u65f6\u5de6\u53f3\u7684\u7f51\u7ad9\u5b95\u673a\u65f6\u95f4\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u5f53\u7136\u5982\u679c\u5904\u7f6e\u5f97\u5f53\uff0c\u5b95\u673a\u65f6\u95f4\u5e94\u8be5\u53ef\u4ee5\u4fdd\u8bc1\u5728\u4e00\u5206\u949f\u4e4b\u5185\u7684\uff08\u91cd\u542f\u9a8c\u8bc1\u662f\u5426\u6062\u590d\uff09\u3002\u5509\uff0c\u8fd8\u662f\u5e74\u8f7b\u554a\u3002<\/span><\/p>\n<h2><span style=\"font-size: 12pt;\">\u54e6\uff1f<\/span><\/h2>\n<p><span style=\"font-size: 12pt;\">\u4e8b\u540e\u56de\u60f3\u8d77\u6765\uff0c\u76f4\u63a5\u4e0d\u68c0\u67e5\u590d\u5236\u7c98\u8d34\u56de\u8f66\u522b\u4eba\u7684\u547d\u4ee4\u771f\u7684\u5f88\u5371\u9669\uff0c\u8fd9\u8fd8\u4e0d\u662f\u6076\u610f\u7684\u90a3\u79cd\uff0c\u53ea\u662f\u5199\u9519\u4e86\uff0c\u5916\u52a0\u6211\u624b\u6296\u4e86\u4e00\u4e0b\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u6076\u610f\u7684\u547d\u4ee4\u662f\u4ec0\u4e48\u5462\uff1f<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u6709\u79cd\u547d\u4ee4\uff0c\u590d\u5236\u7684\u548c\u7c98\u8d34\u7684\u4e0d\u4e00\u6837\u54e6\uff0c\u8fd9\u4e2a\u6280\u672f\u53eb<a href=\"https:\/\/github.com\/dxa4481\/Pastejacking\">pastehijack<\/a>\u54e6\u3002\u8fd9\u65f6\u5019\u6709\u4e00\u4e2a\u806a\u660e\u7684SSH\u5de5\u5177\u5c31\u5f88\u91cd\u8981\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"603\" class=\"wp-image-4118\" src=\"https:\/\/7bc5d24.webp.ee\/wp-content\/uploads\/2019\/06\/201906271148135.png\" alt=\"\u624b\u4e00\u6296\uff0c\u6211\u5220\u9664\u4e86etc\u76ee\u5f55\" title=\"\u624b\u4e00\u6296\uff0c\u6211\u5220\u9664\u4e86etc\u76ee\u5f55\" \/><\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u53e6\u5916\u8fd8\u6709\u4e00\u79cd\u53ef\u80fd\uff0c\u5047\u5982\u6211\u5f53\u521d\u5728<code>\/<\/code>\u4e0b\uff0c\u90a3\u8fd9\u6761\u547d\u4ee4\u4e00\u8d34\u2014\u2014\u51c9\u51c9\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u884c\u4e86\u6211\u4e5f\u4e0d\u8bf4\u5565\u4e86\uff0c\u4e0d\u60f3\u5f15\u6218\uff0c\u7ba1\u4ed6\u539f\u521b\u4e0d\u539f\u521b\u8f6c\u8f7d\u4e0d\u8f6c\u8f7d\u7684\uff0c\u602a\u6211\u81ea\u5df1\u7c97\u5fc3\u4e86\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u6b7b\u4e86\u4e4b\u540e \u4f1a\u53d8\u6210\u90a3\u4e9b\u661f\u661f\u5417\uff1f \u4f60\u60f3\u53d8\u6210\u661f\u661f\u5417\uff1f \u60f3\u554a\uff0c\u56e0\u4e3a\u6211\u7684\u5bb6\u4eba\u90fd\u5728\u90a3\u91cc \u8fd9\u6837\u554a \u771f\u60f3\u53d8\u6210\u7f8e\u4e3d\u7684\u661f\u661f \u60f3\u53d8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-4117","post","type-post","status-publish","format-standard","hentry","category-linux"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts\/4117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/comments?post=4117"}],"version-history":[{"count":0,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/posts\/4117\/revisions"}],"wp:attachment":[{"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/media?parent=4117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/categories?post=4117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dmesg.app\/wp-json\/wp\/v2\/tags?post=4117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}