-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblogBase.json
More file actions
1 lines (1 loc) · 18.9 KB
/
Copy pathblogBase.json
File metadata and controls
1 lines (1 loc) · 18.9 KB
1
{"singlePage": [], "startSite": "07/11/2025", "filingNum": "", "onePageListNum": 15, "commentLabelColor": "#006b75", "yearColorList": ["#bc4c00", "#0969da", "#1f883d", "#A333D0"], "i18n": "CN", "themeMode": "manual", "dayTheme": "light", "nightTheme": "dark", "urlMode": "pinyin", "script": "", "style": "", "head": "", "indexScript": "", "indexStyle": "", "bottomText": "\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904", "showPostSource": 1, "iconList": {}, "UTC": 8, "rssSplit": "sentence", "exlink": {}, "needComment": 1, "allHead": "", "title": "JJFLY", "subTitle": "\u8bb0\u5f55Linux\u8fd0\u7ef4\u65e5\u5e38", "avatarUrl": "https://github.githubassets.com/favicons/favicon.svg", "GMEEK_VERSION": "last", "postListJson": {"P1": {"htmlDir": "docs/post/wan-shi-kai-tou-nan.html", "labels": ["\u65e5\u5e38"], "postTitle": "\u4e07\u4e8b\u5f00\u5934\u96be", "postUrl": "post/wan-shi-kai-tou-nan.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/1", "commentNum": 1, "wordCount": 65, "description": "2025\u5e747\u670811\u65e5\n\u51b3\u5b9a\u8981\u7528\u4e00\u4e2a\u535a\u5ba2\u624d\u63a5\u4f4f\u6211\u4e00\u8eab\u7684\u624d\u534e(\u5176\u5b9e\u5c31\u662f\u4e00\u4e2a\u5907\u5fd8\u5f55)\n\u4f1a\u8bb0\u5f55Linux\u8fd0\u7ef4\u65e5\u5e38\u7528\u5230\u7684\u547d\u4ee4\u4ee5\u53ca\u5de5\u5177\u7b49\u7b49\u7b49\u7b49\u3002", "top": 0, "createdAt": 1752228153, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-07-11", "dateLabelColor": "#0969da"}, "P2": {"htmlDir": "docs/post/ACME.sh -zheng-shu-zi-dong-hua.html", "labels": ["\u6280\u672f"], "postTitle": "ACME.sh \u8bc1\u4e66\u81ea\u52a8\u5316", "postUrl": "post/ACME.sh%20-zheng-shu-zi-dong-hua.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/2", "commentNum": 0, "wordCount": 2337, "description": "TLS\u8bc1\u4e66\u6709\u6548\u671f\u8d8a\u6765\u8d8a\u77ed\uff0c\u81ea\u52a8\u5316\u8d8a\u6765\u8d8a\u6709\u5fc5\u8981\uff0c\u6211\u4e00\u822c\u4f7f\u7528acme.sh\uff0c\u9879\u76ee\u5730\u5740\n[https://github.com/acmesh-official/acme.sh/wiki/\u8bf4\u660e](https://github.com/acmesh-official/acme.sh/wiki/\u8bf4\u660e)\n\n\u770b\u91cd\u5b83\u7684\u53ea\u6709\u4e00\u70b9\uff1a\u5b89\u88c5\u8fc7\u7a0b\u4e0d\u4f1a\u6c61\u67d3\u5df2\u6709\u7684\u7cfb\u7edf\u4efb\u4f55\u529f\u80fd\u548c\u6587\u4ef6\uff0c\u6240\u6709\u7684\u4fee\u6539\u90fd\u9650\u5236\u5728\u5b89\u88c5\u76ee\u5f55\u4e2d: `~/.acme.sh/` \u5220\u9664\u6216\u8005\u5907\u4efd\u90fd\u975e\u5e38\u65b9\u4fbf\uff0c\u53ea\u9700\u8981\u628a`~/.acme.sh/`\u76ee\u5f55\u6253\u5305\u5373\u53ef\uff0c\u518d\u624b\u52a8\u52a0\u4e00\u6761\u5b9a\u65f6\u4efb\u52a1\n\n## \u5b89\u88c5\n\n`curl https://get.acme.sh | sh -s email=my@example.com \uff08\u90ae\u7bb1\u5efa\u8bae\u7528\u771f\u5b9e\u7684\uff0c\u8bc1\u4e66\u53d8\u52a8\u53ef\u4ee5\u6536\u5230\u63d0\u9192\uff09`\n\n\n## \u5e38\u7528\u547d\u4ee4\n\n`acme.sh --list \u663e\u793a\u57df\u540d\u5217\u8868`\n`acme.sh --remove -d a.com \u5220\u9664\u57df\u540d\u7684\u81ea\u52a8\u7eed\u7b7e\uff0c\u4f46\u4e0d\u4f1a\u5220\u9664\u6587\u4ef6`\n`acme.sh --renew -d a.com \u624b\u52a8\u7eed\u7b7ea.com\u8bc1\u4e66\uff0c\u52a0 --force\u5f3a\u5236\u7eed\u7b7e`\n`acme.sh --renew-all \t \u624b\u52a8\u7eed\u7b7e\u6240\u6709\u8bc1\u4e66\uff0c\u52a0 --force\u5f3a\u5236\u7eed\u7b7e`\n`acme.sh --set-default-ca --server letsencrypt #\u8bbe\u7f6eLETS\u4e3a\u9ed8\u8ba4\u8bc1\u4e66\u63d0\u4f9b\u5546\uff0c\u5177\u4f53server\u67e5\u770b` `https://github.com/acmesh-official/acme.sh/wiki/Server`\n`acme.sh --upgrade --auto-upgrade \u8bbe\u7f6e\u81ea\u52a8\u5347\u7ea7`\n\n## \u5e38\u7528\u7684\u51e0\u79cd\u8bc1\u4e66\u7533\u8bf7\u65b9\u5f0f\n\n* HTTP\u9a8c\u8bc1\n\n`acme.sh --issue -d a.com -d b.com -d c.com --webroot /home/wwwroot/mydomain.com/`\n\u3000\u3000\u8865\u5145\uff1a\u53ef\u4ee5\u4e00\u6b21\u6027\u9a8c\u8bc1\u591a\u4e2a\u57df\u540d\uff0c\u5373\u4f7f\u4e8c\u7ea7\u57df\u540d\u4e0d\u4e00\u6837\u4e5f\u53ef\u4ee5\uff0c\u65e0\u6cd5\u7b7e\u53d1\u6cdb\u57df\u540d\uff1b\u591a\u4e2a\u57df\u540d\u53ea\u751f\u6210\u4e00\u7ec4tls\u8bc1\u4e66\uff1b\u7f3a\u70b9\u5c31\u662f\u56fd\u5185\u670d\u52a1\u5668\u5fc5\u987b\u5907\u6848\u624d\u80fd\u7528\uff0c\u751a\u81f3\u4f8b\u5982\u963f\u91cc\u4e91\u7684\u670d\u52a1\u5668\u7b49\u5fc5\u987b\u5728\u963f\u91cc\u4e91\u5907\u6848\u624d\u80fd\u7528\u3002", "top": 0, "createdAt": 1753759248, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-07-29", "dateLabelColor": "#0969da"}, "P3": {"htmlDir": "docs/post/chun-Shell-shi-xian-de-hua-wei-yun-ddns-jiao-ben.html", "labels": ["\u6280\u672f"], "postTitle": "\u7eafShell\u5b9e\u73b0\u7684\u534e\u4e3a\u4e91ddns\u811a\u672c", "postUrl": "post/chun-Shell-shi-xian-de-hua-wei-yun-ddns-jiao-ben.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/3", "commentNum": 0, "wordCount": 837, "description": "\n\n\u9879\u76ee\u5730\u5740 https://github.com/JJFLYCLOUD/huaweicloud_ddns\n\nfork\u81ea https://github.com/lllvcs/huaweicloud_ddns\n\n\u4fee\u6539\u4e4b\u5904\uff1av4\u548cv6\u811a\u672c\u4e8c\u5408\u4e00\uff0c\u81ea\u884c\u66f4\u6539\u6ce8\u91ca\u884c\u6765\u5207\u6362\uff1b\u4ec5\u4fdd\u7559\u4e86\u5728\u7ebf\u67e5\u8be2\u516c\u7f51IP\uff0c\u5220\u9664\u4e86\u901a\u8fc7\u7f51\u5361\u83b7\u53d6\n\n\u4f7f\u7528\u65b9\u6cd5\uff1a\n\n\n```\n#\u4e0b\u8f7d\u811a\u672c\nwget https://raw.githubusercontent.com/JJFLYCLOUD/huaweicloud_ddns/master/huaweicloud_ddns.sh\n#\u8d4b\u4e88\u6267\u884c\u6743\u9650\nchmod +x huaweicloud_ddns.sh\n#\u653e\u5230\u4e0d\u663e\u773c\u7684\u4f4d\u7f6e\nmv huaweicloud_ddns.sh /etc/\n#\u586b\u5165\u53c2\u6570\nvi /etc/huaweicloud_ddns.sh\n\nACCOUNTNAME='' #\u8d26\u53f7\u4e2d\u5fc3\u91cc\u7684'\u8d26\u53f7\u540d'\nUSERNAME='' #\u7edf\u4e00\u8eab\u4efd\u8ba4\u8bc1\u91cc\u7684\u65b0\u5efa\u4e00\u4e2a\u7528\u6237\u7684\u7528\u6237\u540d\nPASSWORD='' #\u7edf\u4e00\u8eab\u4efd\u8ba4\u8bc1\u91cc\u7684\u65b0\u5efa\u4e00\u4e2a\u7528\u6237\u7684\u5bc6\u7801\n\n\u521b\u5efa\u4e00\u6761A\u8bb0\u5f55\u6216\u8005AAAA\u8bb0\u5f55\uff0c\u7136\u540e\u70b9\u51fb\u4fee\u6539\u8fd9\u6761\u89e3\u6790(\u53ef\u4ee5\u52a0\u4e2a\u5907\u6ce8\u4ec0\u4e48\u7684)\u5148\u522b\u70b9\u786e\u5b9a\uff0c\u540c\u65f6\u6d4f\u89c8\u5668\u6309F12\u6253\u5f00\u8c03\u8bd5\uff0c\u6b64\u65f6\u70b9\u51fb\u786e\u5b9a\uff0c\u8c03\u8bd5\u6846\u91cc\u5e94\u8be5\u4f1a\u6709\u4e00\u6761ff\u5f00\u5934\u7684\u8bf7\u6c42\uff0c\u67e5\u770b\u8fd9\u6761\u8bf7\u6c42\u7684\u54cd\u5e94\uff0czone_id\u586b\u5165ZONE_ID\u5904(\u4ee3\u8868\u8fd9\u4e2a\u57df\u540d,\u540c\u57df\u540dzone_id\u4e0d\u4f1a\u53d8)\uff0cid\u586b\u5165RECORDSET_ID(\u4ee3\u8868\u8fd9\u6761\u89e3\u6790,\u6bcf\u6761\u89e3\u6790\u5bf9\u5e94\u4e00\u4e2aid)\n\n#\u624b\u52a8\u6267\u884c\nbash -x /etc/huaweicloud_ddns.sh\n#\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\necho '* * * * * root bash /etc/huaweicloud_ddns.sh' >> /etc/crontab\n```\n\n\n\u534e\u4e3aDNS\u4f5c\u4e3a\u514d\u8d39DNS\u91cc\u529f\u80fd\u7b97\u662f\u6700\u5f3a\u5927\u7684\u4e86\uff0c\u6d77\u5916\u53ef\u4ee5\u5206\u5927\u6d32\u3001\u5206\u56fd\u5bb6\u89e3\u6790\uff0c\u56fd\u5185\u53ef\u4ee5\u5206\u8fd0\u8425\u5546\u3001\u5206\u7701\u4efd\u89e3\u6790\uff1b\u5e0c\u671b\u8fd9\u4e2a\u811a\u672c\u80fd\u5bf9\u4f60\u6709\u5e2e\u52a9\n\u3002", "top": 0, "createdAt": 1753966809, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-07-31", "dateLabelColor": "#0969da"}, "P4": {"htmlDir": "docs/post/Alpine-xi-tong-de-OpenRC-pei-zhi.html", "labels": ["\u6280\u672f"], "postTitle": "Alpine\u7cfb\u7edf\u7684OpenRC\u914d\u7f6e", "postUrl": "post/Alpine-xi-tong-de-OpenRC-pei-zhi.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/4", "commentNum": 0, "wordCount": 1363, "description": "### Alpine \u6dfb\u52a0\u670d\u52a1(\u7c7b\u4f3csystemd)\n\n\u4e4b\u524d\u4e00\u76f4\u5728\u7528Debian\u7cfb\u7edf\u6765\u90e8\u7f72\u5e94\u7528\u7b49\uff0c\u4f7f\u7528systemd\u7ed9\u7a0b\u5e8f\u4fdd\u6d3b\u3001\u5f00\u673a\u81ea\u542f\u6bd4\u8f83\u65b9\u4fbf\uff1b\u5982\u679cVPS\u914d\u7f6e\u4f4e\uff0cAlpine\u53ef\u4ee5\u6bd4Debian\u53ef\u4ee5\u8282\u7701\u51fa\u66f4\u591a\u7684\u8d44\u6e90\n\nAlpine\u4e00\u822c\u4f7f\u7528openrc\u6765\u7ba1\u7406\u670d\u52a1\n\u914d\u7f6e\u6587\u4ef6\u5728 `/etc/init.d/`\u76ee\u5f55\n\u5bf9\u4e8e\u5df2\u7ecf\u7f16\u8bd1\u597d\u65e0\u4f9d\u8d56\u7684\u4e8c\u8fdb\u5236\u7a0b\u5e8f(\u6bd4\u5982\u54ea\u5412\u63a2\u9488\u5ba2\u6237\u7aef)\uff0c\u793a\u4f8b\u5982\u4e0b\n\n`vi /etc/init.d/nezha-agent #\u7f16\u8f91\u6587\u4ef6`\n\n\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5177\u4f53\u9700\u8981\u6839\u636e\u5b9e\u9645\u6765\u66f4\u6539\n\n```\n#!/sbin/openrc-run\n\nname='nezha-agent' #\u670d\u52a1\u540d\nsupervisor='supervise-daemon' \ncommand='/usr/sbin/nezha-agent' #\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u8def\u5f84\ncommand_args='-s 127.0.0.1:5555 -p 114514 --disable-force-update --disable-auto-update --skip-conn --skip-procs' #\u6267\u884c\u53c2\u6570\ndirectory='/opt/nezha' #\u8fd0\u884c\u76ee\u5f55\nextra_started_commands='' #\u670d\u52a1\u542f\u52a8\u4ee5\u540e\u6267\u884c\u7684\u547d\u4ee4\nextra_stopped_commands='' #\u670d\u52a1\u505c\u6b62\u4ee5\u540e\u6267\u884c\u7684\u547d\u4ee4\ncommand_user='root:root' #\u6267\u884c\u7528\u6237\u548c\u7528\u6237\u7ec4\n\n#\u5728\u7f51\u7edc\u542f\u52a8\u540e\u542f\u52a8\u670d\u52a1\uff0c\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u4e00\u822c\u65e0\u9700\u6539\u52a8\ndepend() {\n after net dns\n use net\n}\n```\n\n\u4fdd\u5b58\u6587\u4ef6\u540e\n\n```\nchmod +x /etc/init.d/nezha-agent #\u7ed9\u53ef\u6267\u884c\u6743\u9650\nrc-update add nezha-agent #\u6dfb\u52a0\u670d\u52a1\uff0c\u5f00\u673a\u81ea\u542f\uff0c\u76f8\u5f53\u4e8e\u7684systemctl enable nezha-agent\nrc-update del nezha-agent #\u5220\u9664\u670d\u52a1\uff0c\u53d6\u6d88\u81ea\u542f\uff0c\u76f8\u5f53\u4e8e\u7684systemctl disable nezha-agent\nrc-service start nezha-agent #\u542f\u52a8\u670d\u52a1\uff0c\u76f8\u5f53\u4e8esystemctl start nezha-agent\nrc-service restart nezha-agent #\u91cd\u542f\u670d\u52a1\uff0c\u76f8\u5f53\u4e8esystemctl restart nezha-agent\nrc-service stop nezha-agent #\u5173\u95ed\u670d\u52a1\uff0c\u76f8\u5f53\u4e8esystemctl stop nezha-agent\nrc-status #\u8fd0\u884c\u72b6\u6001\uff0c\u53ef\u4ee5\u770b\u5230\u6240\u6709\u670d\u52a1\u7684\u72b6\u6001\n```\n\u5f53\u670d\u52a1\u542f\u52a8\u5931\u8d25\u540e\uff0csupervise-daemon \u9ed8\u8ba4\u91cd\u542f\u4e94\u6b21\uff0c\u914d\u7f6e\u6587\u4ef6\u53ef\u5728/etc/rc.conf\u4fee\u6539\n```\necho '\n#\u91cd\u542f\u95f4\u96945\u79d2\nrespawn_delay=5 \n#\u6700\u5927\u91cd\u542f\u6b21\u6570\uff0c0\u4e3a\u4e0d\u9650\u5236\nrespawn_max=0 \n#\u8fdb\u7a0b\u6700\u5927\u6587\u4ef6\u63cf\u8ff0\u7b26\u6570\u91cf\nrc_ulimit='-n 65535'\n' >/etc/rc.conf\n```\n\n\u4ee5\u4e0a\u5c31\u662f\u4e8c\u8fdb\u5236\u65e0\u4f9d\u8d56\u7684\u7a0b\u5e8f\u5982\u4f55\u5728Alpine\u4e0a\u5b9e\u73b0\u5f00\u673a\u81ea\u542f\u3001\u8fdb\u7a0b\u4fdd\u6d3b\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\n\n\u3002", "top": 0, "createdAt": 1754477855, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-08-06", "dateLabelColor": "#0969da"}, "P5": {"htmlDir": "docs/post/OpenGFW-de-chang-yong-gui-ze.html", "labels": ["\u6280\u672f"], "postTitle": "OpenGFW\u7684\u5e38\u7528\u89c4\u5219", "postUrl": "post/OpenGFW-de-chang-yong-gui-ze.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/5", "commentNum": 0, "wordCount": 1407, "description": "```\n- name: '\u5c4f\u853d\u8fde\u63a525\u7aef\u53e3'\n action: block\n expr: proto == 'tcp' && port.dst == 25\n\n- name: '\u5c4f\u853d\u8fde\u63a5\u4e2d\u56fdIP\u768480\u7aef\u53e3'\n action: block\n expr: proto == 'tcp' && port.dst == 80 && geoip(string(ip.dst), 'cn')\n- name: '\u5c4f\u853d\u8fde\u63a5\u4e2d\u56fdIP\u7684443\u7aef\u53e3'\n action: block\n expr: proto == 'tcp' && port.dst == 443 && geoip(string(ip.dst), 'cn')\n\n- name: '\u5c4f\u853d\u6765\u81ea\u4e2d\u56fdIP\u7684openvpn'\n action: block\n expr: openvpn != nil && openvpn.rx_pkt_cnt + openvpn.tx_pkt_cnt > 50 && geoip(string(ip.src), 'cn')\n\n- name: '\u5c4f\u853d\u6765\u81ea\u4e2d\u56fdIP\u7684wireguard\u901a\u8fc7handshake_response'\n action: drop\n expr: wireguard?.handshake_response?.receiver_index_matched == true && geoip(string(ip.src), 'cn')\n\n- name: '\u5c4f\u853dsocks5\u7a7a\u5bc6\u7801'\n action: block\n expr: proto == 'tcp' && socks?.req?.auth?.method == 0\n\n- name: '\u5c4f\u853dsocks5\u7a7a\u5bc6\u7801\u4ee5\u53casocks4\u534f\u8bae'\n action: block\n expr: proto == 'tcp' && socks?.version == 4\n\n- name: '\u5c4f\u853d\u6765\u81ea\u4e2d\u56fdIP\u7684socks\u534f\u8bae'\n action: block\n expr: proto == 'tcp' && (socks != nil ) && geoip(string(ip.src), 'cn')\n\n- name: '\u5c4f\u853dhttp\u4ee3\u7406'\n action: block\n expr: proto == 'tcp' && http != nil && (string(http?.req?.path) matches '(^http://.*|.*:443$)')\n\n- name: '\u5c4f\u853d\u4e2d\u56fdwebsocket'\n action: block\n expr: proto == 'tcp' && http != nil && (string(http?.req?.headers.upgrade) == 'websocket' ) && geoip(string(ip.src), 'cn')\n\n- name: '\u5c4f\u853d\u4e2d\u56fdss\u548cvmess\u7b49\u5168\u52a0\u5bc6\u534f\u8bae'\n action: block\n expr: proto == 'tcp' && (fet != nil && fet.yes) && geoip(string(ip.src), 'cn')\n```\n\n\u4ee5\u4e0a\u89c4\u5219\u57fa\u672c\u628a\u6613\u201c\u571f\u556c\u201d\u7684\u534f\u8bae\u90fd\u5c4f\u853d\u4e86\uff0c\u540c\u65f6\u4e0d\u5f71\u54cd\u6d77\u5916\u4f7f\u7528\u8fd9\u4e9b\u534f\u8bae\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\u3002", "top": 0, "createdAt": 1759933047, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2025-10-08", "dateLabelColor": "#0969da"}, "P6": {"htmlDir": "docs/post/sing-box-shi-xian-SNIProxy-gong-neng.html", "labels": ["\u6280\u672f"], "postTitle": "sing-box\u5b9e\u73b0SNIProxy\u529f\u80fd", "postUrl": "post/sing-box-shi-xian-SNIProxy-gong-neng.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/6", "commentNum": 0, "wordCount": 2212, "description": "\n* **[dlundquist/sniproxy](https://github.com/dlundquist/sniproxy)** \u8001\u9879\u76ee\uff0c\u5de5\u4f5c\u7a33\u5b9a\uff0clinux \u8f6f\u4ef6\u5305\u4e00\u822c\u81ea\u5e26\uff0c\u53ef\u4ee5\u901a\u8fc7 (`Debian` \u7cfb `apt install sniproxy`\uff0c`Alpine` \u53ef\u4ee5 `apk add sniproxy`)\u3002", "top": 0, "createdAt": 1768215553, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2026-01-12", "dateLabelColor": "#1f883d"}, "P7": {"htmlDir": "docs/post/ji-yu-Debian13-de-LXCr-rong-qi-jing-jian.html", "labels": ["\u6280\u672f"], "postTitle": "\u57fa\u4e8eDebian13\u7684LXCr\u5bb9\u5668\u7cbe\u7b80", "postUrl": "post/ji-yu-Debian13-de-LXCr-rong-qi-jing-jian.html", "postSourceUrl": "https://github.com/JJFLYCLOUD/jjflycloud.github.io/issues/7", "commentNum": 0, "wordCount": 2468, "description": "```\n#\u8bbe\u7f6e\u81ea\u5b9a\u4e49DNS\nsystemctl stop systemd-resolved\nsystemctl disable systemd-resolved\nsystemctl mask systemd-resolved\nrm -f /etc/resolv.conf\necho 'nameserver 1.1.1.1\nnameserver 8.8.8.8\nnameserver 2606:4700:4700::1111\nnameserver 2001:4860:4860::8888' > /etc/resolv.conf\n```\n\n```\n#\u5c4f\u853dsystemd-journald\u65e5\u5fd7\u8f93\u51fa\uff0c\u76f4\u63a5\u7981\u7528\u4f1a\u51fa\u9519\necho '[Journal]\nStorage=none' >/etc/systemd/journald.conf\nsystemctl restart systemd-journald\necho 'precedence ::ffff:0:0/96 100' > /etc/gai.conf\n```\n\n```\n#apt\u5b89\u88c5\u9700\u8981\u7684\u8f6f\u4ef6\uff0c\u5e76remove\u65e0\u7528\u7684\u8f6f\u4ef6\u5305\napt install -y wget curl openssh-sftp-server openssh-server #\u5efa\u8bae\u90fd\u88c5\u4e0a\napt install -y iperf3 vim jq cron #\u9009\u88c5\napt remove -y bsd-mailx exim4-base exim4-config exim4-daemon-light polkitd pkexec xauth dialog krb5-locales net-tools udev sshpass isc-dhcp-client isc-dhcp-common\napt autoremove -y\n```\n\n```\n#\u8c03\u6574openssh\u914d\u7f6e\u6587\u4ef6\uff0c\u53bb\u9664\u6ce8\u91ca\necho 'Include /etc/ssh/sshd_config.d/*.conf\nPort 22\nPermitRootLogin yes\nKbdInteractiveAuthentication no\nUsePAM no\nPrintMotd no\nAcceptEnv LANG LC_*\nSubsystem sftp /usr/lib/openssh/sftp-server' > /etc/ssh/sshd_config\n```\n\n```\n#\u5173\u95ed\u4e00\u4e9b\u81ea\u52a8\u4efb\u52a1\nsystemctl stop apt-daily-upgrade.service apt-daily-upgrade.timer apt-daily.service apt-daily.timer dpkg-db-backup.service dpkg-db-backup.timer\nsystemctl disable apt-daily-upgrade.service apt-daily-upgrade.timer apt-daily.service apt-daily.timer dpkg-db-backup.service dpkg-db-backup.timer\nrm -rf /usr/lib/systemd/system/apt-*\nrm -rf /usr/lib/systemd/system/dpkg-*\n```\n```\n#\u6bcf\u5929\u6e05\u7406\u65e5\u5fd7\u7f13\u5b58\uff0c\u9700\u8981\u5b89\u88c5cron\necho '0 5 * * * root rm -rf /var/log/apt/*;rm -rf /var/cache/*;rm -rf /var/log/*.log;rm -rf /var/log/wtmp' >>/etc/crontab\n```\n```\n#\u5e2e\u52a9\u6587\u6863\u3001\u624b\u518c\u3001\u8bf4\u660e\uff08\u6700\u5927\u5934\uff0c\u6700\u5b89\u5168\uff09\nrm -rf /usr/share/man/*\nrm -rf /usr/share/doc/*\nrm -rf /usr/share/info/*\n\n# \u591a\u8bed\u8a00\u7ffb\u8bd1\uff08\u4f60\u53ea\u7528\u82f1\u6587/\u4e2d\u6587\uff0c\u5176\u4ed6\u5168\u5197\u4f59\uff09\nrm -rf /usr/share/locale/*\n\n# \u8f93\u5165\u6cd5\u3001\u5b57\u4f53\u3001\u952e\u76d8\u5e03\u5c40\uff08\u5bb9\u5668\u65e0\u684c\u9762\uff0c\u65e0\u7528\uff09\nrm -rf /usr/share/fonts/*\nrm -rf /usr/share/ibus*\nrm -rf /usr/share/keymaps\nrm -rf /usr/share/consolefonts\n\n# \u6e38\u620f\u3001\u5c4f\u5e55\u4fdd\u62a4\u3001\u58c1\u7eb8\uff08\u7eaf\u5783\u573e\uff09\nrm -rf /usr/share/games\nrm -rf /usr/share/screensavers\nrm -rf /usr/share/backgrounds\n\n# \u684c\u9762\u65e0\u5173\u7684\u56fe\u6807\u3001\u4e3b\u9898\nrm -rf /usr/share/icons\nrm -rf /usr/share/themes\n\n# \u5e2e\u52a9\u4e2d\u5fc3\u3001\u793a\u4f8b\u3001\u6559\u7a0b\nrm -rf /usr/share/help\nrm -rf /usr/share/examples\nrm -rf /usr/share/gettext\nrm -rf /usr/share/doc-base\nrm -rf /usr/share/zoneinfo-leaps\nrm -rf /usr/share/vim/vim90/doc\n\n#\u6e05\u7406\u73af\u5883\napt clean;apt autoremove -y;apt autoclean;rm -rf /var/log/apt/*;rm -rf /var/cache/*;rm -rf /var/log/*.log;rm -rf /var/log/wtmp\nrm /var/lib/dhcp/*\nrm /var/log/*.log\nrm /var/log/wtmp\nrm /var/log/apt/*\nrm -rf tmp/*\nrm .bash_history\nhistory -c\n```\n\n\n\u5f53\u7136\u66f4\u5efa\u8bae\u5bb9\u5668\u4f7f\u7528alpine\u7cfb\u7edf\n\u3002", "top": 0, "createdAt": 1775349654, "style": "", "script": "", "head": "", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "createdDate": "2026-04-05", "dateLabelColor": "#1f883d"}}, "singeListJson": {}, "labelColorDict": {"\u6280\u672f": "#2052ad", "\u65e5\u5e38": "#37c9e7"}, "displayTitle": "JJFLY", "faviconUrl": "https://github.githubassets.com/favicons/favicon.svg", "ogImage": "https://github.githubassets.com/favicons/favicon.svg", "primerCSS": "<link href='https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/Primer/21.0.7/primer.css' rel='stylesheet' />", "homeUrl": "https://jjflycloud.github.io", "prevUrl": "disabled", "nextUrl": "disabled"}