{"id":1261,"date":"2021-08-28T23:46:44","date_gmt":"2021-08-28T15:46:44","guid":{"rendered":"http:s\/\/www.stargazer.org.cn\/?p=1261"},"modified":"2023-07-31T21:37:14","modified_gmt":"2023-07-31T13:37:14","slug":"ubuntu%e7%9b%b8%e5%85%b3%e4%bd%bf%e7%94%a8%e5%91%bd%e4%bb%a4%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/stargazer.org.cn\/blog\/?p=1261","title":{"rendered":"Ubuntu\u76f8\u5173\u4f7f\u7528\u547d\u4ee4\u4ecb\u7ecd"},"content":{"rendered":"<p><strong>1. \u5907\u4efd\u548c\u6062\u590d\u7cfb\u7edf<\/strong><\/p>\r\n<p>\u7cfb\u7edf\u6839\u76ee\u5f55\uff1acd \/<br \/>\u5907\u4efd\u7cfb\u7edf\uff1atar cvpzf backup.tar.gz --exclude=\/proc --exclude=\/lost+found --exclude=\/backup.tar.gz --exclude=\/mnt --exclude=\/sys --exclude=\/media \/<br \/>\u5207\u6362\u5230root\u7528\u6237\uff0c\u5e76\u628a\u6587\u4ef6\u201cbackup.tgz\u201d\u62f7\u8d1d\u5230\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e0b\u3002<br \/>\u6062\u590d\u7cfb\u7edf: tar xvpfz backup.tgz -C \/<br \/><strong>2. \u642d\u5efavsftpd\u670d\u52a1\u5668:<\/strong><\/p>\r\n<p>https:\/\/baijiahao.baidu.com\/s?id=1643466181200260877&wfr=spider&for=pc<\/p>\r\n<p>\u5b89\u88c5<br \/>apt-get install vsftpd<br \/>\u5f7b\u5e95\u5220\u9664:<br \/>apt-get remove --purge softwarename<br \/>\u53ef\u4ee5\u4f7f\u7528\u201cnetstat -tl\u201d\u547d\u4ee4\u68c0\u67e5FTP\u7aef\u53e3\u6709\u6ca1\u6709\u6253\u5f00\uff0c\u6216\u8005\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u91cc\u8f93\u5165\u201cftp:\/\/\u4f60\u7684\u670d\u52a1\u5668IP\u201d\uff0c\u5982\u679c\u80fd\u8fde\u63a5\u5230FTP\u670d\u52a1\u5668\uff0c\u5219\u5b89\u88c5vsftpd\u5df2\u6210\u529f\u3002<\/p>\r\n<p>service vsftpd start\u3000\u3000#\u542f\u52a8<\/p>\r\n<p>service vsftpd stop\u3000\u3000#\u505c\u6b62<\/p>\r\n<p>service vsftpd restart\u3000\u3000#\u91cd\u542f<\/p>\r\n<p>\u4e8c\u3001vsftpd\u7684\u6dfb\u52a0\u7528\u6237<\/p>\r\n<p>\u65b0\u5b89\u88c5\u7684vsftpd\u9ed8\u8ba4\u662f\u53ef\u4ee5\u533f\u540d\u8bbf\u95ee\uff0c\u5982\u679c\u53ea\u60f3\u7ed9\u67d0\u4e00\u4e2a\u7528\u6237\u4e13\u95e8\u8bbf\u95ee\u67d0\u4e00\u76ee\u5f55\u4e0b\u7684\u6743\u9650\uff0c\u5219\u9700\u8981\u4fee\u6539vsftpd\u7684\u914d\u7f6e\u4e86\u3002<\/p>\r\n<p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u4e13\u95e8\u7528\u6765\u8bbf\u95ee\u7684\u7528\u6237\uff0c\u4f8b\u5982\u53eb\u201cfrog\u201d\uff1a<\/p>\r\n<p>sudo useradd frog -g ftp -m -s \/sbin\/nologin<\/p>\r\n<p>\u6216\u8005\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\r\n<p>sudo mkdir -p \/home\/frog<\/p>\r\n<p>sudo useradd frog -g ftp -d \/home\/frog -s \/sbin\/nologin<\/p>\r\n<p>sudo chmod 777 \/home\/frog<\/p>\r\n<p>\u8bbe\u7f6e\u5bc6\u7801\uff1a<\/p>\r\n<p>passwd frog<\/p>\r\n<p>vsftp\u6dfb\u52a0\u7528\u6237\u7684\u65b9\u6cd5\uff1a<\/p>\r\n<p>adduser --system \u7528\u6237\u540d<\/p>\r\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1a<br \/>nano \/etc\/vsftpd.conf<\/p>\r\n<p>\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<br \/>1\uff091\u3001\u201c530 Login incorrect\u201d<\/p>\r\n<p>\u5728 \/etc\/shells \u6700\u540e\u4e00\u884c\u6dfb\u52a0\u201c\/sbin\/nologin\u201d<\/p>\r\n<p>2\uff09\u65e0\u6cd5\u4e0a\u4f20\u6587\u4ef6\uff0c\u6216\u8005\u65e0\u6cd5\u7528FTP\u65b0\u5efa\u6587\u4ef6\u5939<\/p>\r\n<p>vsftpd 550 Permission denied\u9519\u8bef\u3002<\/p>\r\n<p>\u627e\u5230write_enable=NO\u8fd9\u884c\uff0c\u628a\u8fd9\u884c\u6ce8\u91ca\u6389\uff0c\u6539\u6210#write_enable=NO\u540e\uff0c\u8fd8\u662f\u65e0\u6cd5\u4e0a\u4f20\u6587\u4ef6\u3002<\/p>\r\n<p>3\uff09\u8fdc\u7a0b\u5220\u9664\u670d\u52a1\u5668\u6587\u4ef6\uff1a<br \/>local_umask=022 \u5c06\u8fd9\u4e2a\u503c\u6539\u6210\uff1a002<br \/>4\uff09<br \/>chroot_list_enable=YES#\u4e0d\u5141\u8bb8\u7528\u6237\u79bb\u5f00\u4e3b\u76ee\u5f55\uff0c\u9ed8\u8ba4\u5141\u8bb8<\/p>\r\n<p><strong>3. wordpress\u5907\u4efd\u548c\u6062\u590d\uff1a<\/strong><\/p>\r\n<p>\u5907\u4efd\uff1a<\/p>\r\n<p>\u539f\u6765\u7684ubuntu\u4e0b\u7684WordPress\u6574\u4f53\u642c\u79fb\u5230\u53e6\u4e00\u53f0\u65b0\u7684\u7535\u8111\u4e0a\uff0c\u9996\u5148\u5728\u65e7\u7535\u8111\u8fdb\u884c\u5907\u4efd\uff1a<\/p>\r\n<p>- \u5c06\/var\/www\/html\u6574\u4e2a\u62f7\u8d1d\u5230\u79fb\u52a8\u786c\u76d8\u6216\u8005U\u76d8<\/p>\r\n<p>tar -zcvf wordpress.tar.gz \/var\/www\/html<br \/>- \u7528phpMyAdmin\u5c06\u6570\u636e\u5e93\u8fc1\u79fb\uff0c\u70b9\u51fb\u5de6\u4fa7wordpress\uff0c\u7136\u540e\u53f3\u4fa7\u70b9\u51fb\u5bfc\u51fa\uff0c\u5bfc\u51fa\u4e3asql\u6587\u4ef6\uff0c\u4e5f\u4fdd\u5b58\u5728\u79fb\u52a8\u786c\u76d8\u6216\u8005U\u76d8<\/p>\r\n<p>\u6216\u8005\u91c7\u7528\u547d\u4ee4\u884c\u65b9\u5f0f\uff1a<\/p>\r\n<p>mysqldump -u root -p mywordpress &gt; mywordpress.sql<\/p>\r\n<p>\u7136\u540e\u5c31\u5f00\u59cb\u5728\u53e6\u4e00\u53f0\u5168\u65b0\u7684\u5df2\u5b89\u88c5ubuntu\u7684\u7535\u8111\u6062\u590d\u3002<\/p>\r\n<p>1)FTP\u4e0a\u4f20\u6587\u4ef6\uff1a\/var\/www\/html<\/p>\r\n<p>\u6216\u8005\u91c7\u7528winscp\u901a\u8fc7SSH\u4e0a\u4f20\u6587\u4ef6\uff0c\u4e0d\u9700\u8981\u67b6\u8bbeFTP\u670d\u52a1\u5668<\/p>\r\n<p>\u91c7\u7528tar xvpfz backup.tgz \u89e3\u538b\u7f29\uff0c\u5c06\u539f\u6709\u7684html\u6539\u540d\u5b57\uff08rmdir\uff09\uff0c\u7136\u540emv\u79fb\u52a8\u6587\u4ef6\u5939\u3002<\/p>\r\n<p>sudo mv wordpress\/* \/var\/www\/html\/<\/p>\r\n<p>sudo chmod -R 777 \/var\/www\/html\/<\/p>\r\n<p>2)\u4fee\u6539wp-config.php \u8bbe\u7f6e\u6570\u636e\u5e93\u540d\u79f0\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801<\/p>\r\n<p>\u5efa\u65b0\u7684\u6570\u636e\u5e93\uff1a<\/p>\r\n<p>mysql -u root -p<br \/>\u521b\u5efa\u4e00\u4e2a\u53ebmywordpress\uff08\u4f60\u4e5f\u53ef\u4ee5\u53eb\u5176\u4ed6\u540d\u5b57\uff09\u7684\u6570\u636e\u5e93<\/p>\r\n<p>CREATE DATABASE mywordpress;<\/p>\r\n<p>\u521b\u5efauser\u7528\u6237\u548c\u5bc6\u7801\uff0c\u548cwp-config.php \u4fdd\u5b58\u4e00\u81f4\u3002<\/p>\r\n<p>CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';<br \/>GRANT ALL PRIVILEGES ON mywordpress.* TO 'user'@'localhost';<br \/>FLUSH PRIVILEGES;<br \/>exit<br \/>\u9000\u51famysql\uff08exit;\uff09<br \/>3)\u5bfc\u5165SQL<br \/>mysql -u user -p mywordpress &lt; astronig_starg.sql<\/p>\r\n<p>\u8fdb\u5165mysql<br \/>mysql -u user -p mywordpress<\/p>\r\n<p>\u4f7f\u7528\u6570\u636e\u5e93\uff1a<br \/>use mywordpress<\/p>\r\n<p>\u4fee\u6539\u57df\u540d\uff1a<br \/>UPDATE wp_options SET option_value = replace( option_value, 'http:\/\/www.stargazer.org.cn', 'http:\/\/www.stargazer.org.cn') WHERE option_name = 'home' OR option_name ='siteurl' ;<\/p>\r\n<p>UPDATE wp_posts SET post_content = replace(post_content, 'http:\/\/www.stargazer.org.cn', 'http:\/\/www.stargazer.org.cn');<\/p>\r\n<p>UPDATE wp_posts SET guid = replace( guid,'http:\/\/www.stargazer.org.cn', 'http:\/\/www.stargazer.org.cn') ;<\/p>\r\n<p>\u89e3\u51b3\u94fe\u63a5\u51fa\u9519\u7684\u95ee\u9898\uff1a<\/p>\r\n<p>- \u767b\u5f55wordpress\u540e\u53f0\uff0c\u627e\u5230\u8bbe\u7f6e--&gt;\u56fa\u5b9a\u94fe\u63a5\uff0c\u628a\u4e4b\u524d\u8bbe\u7f6e\u7684\u81ea\u5b9a\u4e49\u7ed3\u6784\u6539\u4e3a\u9ed8\u8ba4\u3002<\/p>\r\n<p>\u89e3\u51b3\u4e0a\u4f20\u56fe\u7247\u51fa\u9519\u7684\u95ee\u9898:<br \/>1)wp-config.php<br \/>\u5728require_once(ABSPATH . 'wp-settings.php');\u524d\u9762\u589e\u52a0<br \/>define('CONCATENATE_SCRIPTS', false );<br \/>2)chmod -R 777 \/var\/www\/html<br \/>3)\u5982\u679c\u5b9e\u5728\u4e0d\u884c\uff0c\u5728\u540e\u53f0-&gt;\u8bbe\u7f6e-&gt;\u591a\u5a92\u4f53-\u300b\u4ee5\u5e74\u2014\u6708\u76ee\u5f55\u5f62\u5f0f\u7ec4\u7ec7\u4e0a\u4f20\u5185\u5bb9\u53d6\u6d88<\/p>\r\n<p>\u89e3\u9664\u4e0a\u4f20\u6587\u4ef62M\u7684\u9650\u5236\uff1a<\/p>\r\n<p>\u5728wordpress\u6839\u76ee\u5f55\u4e0b\u9762\u589e\u52a0phpinfo.php\u6587\u4ef6\uff0c\u91cc\u9762\u5199\u4e0a\uff1a<\/p>\r\n<p><span class=\"token delimiter important\">&lt;?php<\/span> <span class=\"token function\">phpinfo<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token delimiter important\">?&gt;<\/span><\/p>\r\n<p>\u7136\u540e\u8bbf\u95ee\uff1a\u57df\u540d\/phpinfo.php<\/p>\r\n<p>\u5c31\u53ef\u4ee5\u5f97\u5230\u4e86Php.ini\u7684\u8def\u5f84:<\/p>\r\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1298\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021.jpg\" alt=\"PHP_2021-09-04_124021\" width=\"1366\" height=\"768\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021.jpg 1366w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021-300x169.jpg 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021-1024x576.jpg 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/PHP_2021-09-04_124021-220x124.jpg 220w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\r\n<p>\u7136\u540e\uff0c\u4fee\u6539\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\r\n<p>upload_max_filesize = 64M<br \/>post_max_size = 64M<br \/>max_execution_time = 300<\/p>\r\n<p><strong>4. \u5e38\u7528\u547d\u4ee4<\/strong><\/p>\r\n<p>htop:\u76d1\u63a7CPU\u5185\u5b58\u7ebf\u7a0b\u4fe1\u606f<\/p>\r\n<p>Slurm -i etho:\u76d1\u63a7\u7f51\u7edc\u6d41\u91cf<\/p>\r\n<p>free\uff1a\u5185\u5b58\u5bb9\u91cf<\/p>\r\n<p>df -lh\uff1a\u786c\u76d8\u7684\u4f7f\u7528\u60c5\u51b5<\/p>\r\n<p>mv\uff1a\u79fb\u52a8\u6587\u4ef6\u548c\u6539\u540d\u5b57<\/p>\r\n<p>rm:\u5220\u9664\u6587\u4ef6<\/p>\r\n<p>cp\uff1a\u62f7\u8d1d\u6587\u4ef6<\/p>\r\n<p>netstat -i eth0:\u7f51\u7edc\u7aef\u53e3\u72b6\u6001<\/p>\r\n<p>bmon:\u7f51\u7edc\u72b6\u6001\uff0c\u5f3a\u70c8\u63a8\u8350\uff0c\u5168\u90e8\u7aef\u53e3\uff0c\u5e76\u6709\u56fe\u5f62\u663e\u793a<\/p>\r\n<p>rm -rf :\u5220\u9664\u6587\u4ef6\u5939\uff0c\u4e0d\u9700\u8981\u786e\u8ba4<\/p>\r\n<p>ls -h(\u81ea\u52a8k\uff0cM\uff0cG\u663e\u793a) -l(\u5217\u8868\u663e\u793a) -a(\u663e\u793a\u9690\u85cf\u6587\u4ef6)<\/p>\r\n<p>lsb_release -a\u00a0 \u67e5\u770b\u7cfb\u7edf\u7248\u672c\u4fe1\u606f<\/p>\r\n<p><strong>5. \u7528\u6237\u6743\u9650\u7ba1\u7406<\/strong><\/p>\r\n<p>- \u589e\u52a0\u7528\u6237<\/p>\r\n<p>useradd -r -m -s \/bin\/bash cuinew<\/p>\r\n<p>\u4ee5\u4e0a\u547d\u4ee4\u4e3a\u521b\u5efa\u4e00\u4e2acuinew\u7684\u7528\u6237\uff0c\u53c2\u6570\u7684\u610f\u4e49\u5982\u4e0b\uff1a<\/p>\r\n<p>-r\uff1a\u521b\u5efa\u7cfb\u7edf\u5e10\u53f7<\/p>\r\n<p>-m\uff1a\u81ea\u52a8\u521b\u5efa\u7528\u6237\u7684\u767b\u5165\u76ee\u5f55<\/p>\r\n<p>-s\uff1a\u6307\u5b9a\u7528\u6237\u767b\u5165\u540e\u7684\u8eab\u4efd\u4e3ashell\u7ec4<\/p>\r\n<p>\u67e5\u770b\u65b0\u521b\u5efa\u7684\u7528\u6237\u76ee\u5f55\u662f\u5426\u521b\u5efa\u6210\u529f\uff1a#ls \/home\/<\/p>\r\n<p>\u4fee\u6539\u7528\u6237\u5bc6\u7801<\/p>\r\n<p>\u4fee\u6539\u521a\u521a\u521b\u5efacuinew\u7528\u6237\u5bc6\u7801\uff0c\u5728Ubuntu18.04\u7cfb\u7edf\u91cc\uff0c\u5728\u521b\u5efa\u65b0\u7528\u6237\u7684\u65f6\u5019\u4e0d\u63d0\u793a\u8bbe\u7f6e\u7528\u6237\u5bc6\u7801\uff0c\u9700\u8981\u624b\u52a8\u6267\u884c\u547d\u4ee4\u6765\u4fee\u6539\u7528\u6237\u7684\u5bc6\u7801\u3002<\/p>\r\n<p>\u4fee\u6539\u7528\u6237\u5bc6\u7801\uff1a# passwd cuinew<\/p>\r\n<p>\u4fee\u6539\u7528\u6237\u6743\u9650\u9650<\/p>\r\n<p>\u8fd9\u91cc\u901a\u8fc7\u4fee\u6539\/etc\/sudoers\u6587\u4ef6\u7684\u65b9\u5f0f\u6765\u8d4b\u4e88\u7528\u6237\u76f8\u5173\u6743\u9650\uff0c\u9700\u8981\u7ed9\u8be5\u6587\u4ef6\u589e\u52a0w\u6743\u9650\uff0c\u5f85\u4fee\u6539\u5b8c\u6210\u4fdd\u5b58\u540e\u518d\u53bb\u6389w\u6743\u9650\uff1b<\/p>\r\n<p>\u7ed9\u6587\u4ef6\u589e\u52a0w\u6743\u9650\uff1a# chmod +w \/etc\/sudoers<\/p>\r\n<p>\u4fee\u6539\u6587\u4ef6\uff1a# nano \/etc\/sudoers<\/p>\r\n<p>\u5982\u4e0a\u56fe\u589e\u52a0\u7528\u6237\u6743\u9650\u914d\u7f6e\u8bed\u53e5\uff0c\u5728root ALL=(ALL:ALL) ALL\u540e\u9762\u589e\u52a0\u4e00\u884ccuinew ALL=(ALL:ALL) ALL\uff0c\u5982\u4e0b\uff1a<\/p>\r\n<p># User privilege specification<\/p>\r\n<p>root ALL=(ALL:ALL) ALL<\/p>\r\n<p>cuinew ALL=(ALL:ALL) ALL<\/p>\r\n<p>\u5e76\u4fdd\u5b58\u540e\uff0c\u53bb\u6389\u8be5\u6587\u4ef6\u7684w\u6743\u9650\uff1a# chmod -w \/etc\/sudoers<\/p>\r\n<p>\u5220\u9664\u7528\u6237\uff0c\u5206\u4e3a3\u6b65\uff1a<\/p>\r\n<p>1.\u6267\u884cuserdel\u547d\u4ee4\uff1a# userdel cuinew<\/p>\r\n<p>2.\u5220\u9664\u7528\u6237\u76ee\u5f55\u547d\u4ee4\uff1a# rm -rf \/home\/cuinew<\/p>\r\n<p>3.\u5220\u9664\u7528\u6237\u6743\u9650\u76f8\u5173\u914d\u7f6e\uff1a\u5220\u9664\u6216\u8005\u6ce8\u91ca\u6389\/etc\/sudoers\u4e2d\u5173\u4e8e\u8981\u5220\u9664\u7528\u6237\u7684\u914d\u7f6e\uff0c\u5426\u5219\u65e0\u6cd5\u518d\u6b21\u521b\u5efa\u540c\u540d\u7528\u6237\u3002<\/p>\r\n<p>\u5c0f\u63d0\u793a\uff1a\u5982\u679c\u7528\u6237\u5360\u7740\u8fdb\u7a0b\u65f6\u662f\u65e0\u6cd5\u5bf9\u5176\u8fdb\u884c\u5220\u9664\u7684\uff0c\u53ef\u4ee5\u5148\u65ad\u5f00SHH\u8fde\u63a5\uff0c\u518d\u91cd\u65b0\u7528root\u767b\u9646\u5c31\u53ef\u4ee5\u5220\u9664\u4e86\u3002<\/p>\r\n<p><strong>6.\u5b89\u88c5PhpMyadmin\u63a7\u5236\u9762\u677f\uff1a<\/strong><\/p>\r\n<p>\u5b89\u88c5\u7a0b\u5e8f\uff1aapt-get install phpmyadmin<\/p>\r\n<p>\u521b\u5efa\u8f6f\u8fde\u63a5\uff1aln -s \/usr\/share\/phpmyadmin \/var\/www<br \/>\u56e0\u4e3aphpmyadmin\u7684\u5b89\u88c5\u76ee\u5f55\u5e76\u4e0d\u662f\u5728var\/www\u6587\u4ef6\u5939\u4e0b\uff0c\u6240\u4ee5\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u8f6f\u94fe\u63a5\uff0c<br \/>\u7136\u540e\u5728\u6d4f\u89c8\u5668\u8f93\u5165\uff1a<br \/>http: \/\/localhost\/phpmyadmin<\/p>\r\n<p>\u5982\u679c\u8fd8\u662f404\uff0c\u5219\u7528\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\r\n<p>nano \/etc\/apache2\/apache2.conf<\/p>\r\n<p>\u5728\u6700\u540e\u4e00\u884c\u4e0a\u9762\u589e\u52a0\uff1a<br \/>Include\u00a0\/etc\/phpmyadmin\/apache\u00a0.conf<\/p>\r\n<p>\u91cd\u542fapaches\uff0c\u5373\u53ef\u767b\u5f55:<\/p>\r\n<p>\/etc\/init.d\/apache2 restart<\/p>\r\n<p><strong>7.\u91cd\u7f6eMysql\u7684Root\u5bc6\u7801\uff1a<\/strong><\/p>\r\n<p>\u9996\u5148\u627e\u5230\u7cfb\u7edf\u7528\u6237\u5bc6\u7801\uff1a<\/p>\r\n<p>sudo cat\u00a0\/etc\/mysql\/debian.cnf<\/p>\r\n<p>\u547d\u4ee4\u884c\u8f93\u5165\uff1a<\/p>\r\n<p>mysql -u\u00a0debian-sys-maint -p<\/p>\r\n<p>\u8f93\u5165\u521a\u624d\u7684\u5bc6\u7801\u8fdb\u5165mysql\u6570\u636e\u5e93<\/p>\r\n<p>1)\u3001use mysql;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u8fde\u63a5\u5230mysql\u6570\u636e\u5e93<\/p>\r\n<p>2)\u3001update mysql.user set authentication_string=password('123456') where user='root' and Host ='localhost';\u00a0 \u00a0 #\u4fee\u6539\u5bc6\u7801123456\u662f\u5bc6\u7801<\/p>\r\n<p>3)\u3001update user set\u00a0\u00a0plugin=\"mysql_native_password\";<\/p>\r\n<p>4)\u3001flush privileges;<\/p>\r\n<p>5)\u3001quit;<\/p>\r\n<p>\u4f7f\u7528phpmyadmin\u4e00\u76f4\u63d0\u793a\u8fd9\u4e2a\u8b66\u544a\uff0c\u770b\u7740\u96be\u53d7\uff1a<\/p>\r\n<p>\u89e3\u51b3\uff1a<\/p>\r\n<p>\u4fee\u6539\u6587\u4ef6\uff1a\/etc\/phpmyadmin\/config.inc.php<\/p>\r\n<p>\u5728\u6700\u540e\u6dfb\u52a0\u8fd9\u4e00\u53e5\uff0c<\/p>\r\n<p>$cfg['SendErrorReports'] = 'never';<\/p>\r\n<p><strong>8. wordpress\u7684\u5b89\u88c5\uff1a<\/strong><\/p>\r\n<p>\u9996\u5148\u8981\u77e5\u9053WordPress\u7684\u8fd0\u884c\u9700\u8981php\u8fd0\u884c\u73af\u5883\uff0c\u5373php\uff0cApache, MySQL\u4e09\u4e2a\u670d\u52a1\uff0c\u4e0b\u9762\u6309\u7167\u6b65\u9aa4\u4e00\u6b65\u6b65\u64cd\u4f5c\uff0c\u5982\u679c\u81ea\u5df1\u7cfb\u7edf\u4e2d\u6709php\u8fd0\u884c\u73af\u5883\uff0c\u5219\u8fd9\u4e9b\u6b65\u9aa4\u53ef\u4ee5\u5ffd\u7565<br \/>1\uff0c\u5148\u5b89\u88c5\u4e0aapache<\/p>\r\n<p>sudo apt-get install apache2 -y<br \/>\u5b89\u88c5\u597d\u540e\u901a\u8fc7ip\u5730\u5740\u8bbf\u95ee\uff0c\u53ef\u4ee5\u770b\u89c1apache\u7684\u754c\u9762\u4e86<\/p>\r\n<p>2\uff0c\u88c5\u4e0aPHP<\/p>\r\n<p>sudo apt-get install php7.0 -y<br \/>3\uff0c\u5b89\u88c5PHP\u7684\u76f8\u5173\u7ec4\u4ef6<\/p>\r\n<p>sudo apt-get install libapache2-mod-php7.0<br \/>4\uff0c\u5b89\u88c5mysql\u7684\u670d\u52a1\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u8bbe\u7f6emysql\u7684\u5bc6\u7801<\/p>\r\n<p>sudo apt-get install mysql-server -y<br \/>5\uff0c\u5b89\u88c5php mysql\u7ec4\u4ef6<\/p>\r\n<p>sudo apt-get install php7.0-mysql -y<br \/>6\uff0c\u5b89\u88c5phpmyadmin<\/p>\r\n<p>sudo apt-get install phpmyadmin -y<br \/>7\uff0c\u91cd\u542fmysql\u548capache<\/p>\r\n<p>service apache2 restart<br \/>service mysql restart<br \/>8\uff0c\u8fdb\u5165mysql<\/p>\r\n<p>mysql -u root -p<br \/>\u521b\u5efa\u4e00\u4e2a\u53ebwordpress\uff08\u4f60\u4e5f\u53ef\u4ee5\u53eb\u5176\u4ed6\u540d\u5b57\uff09\u7684\u6570\u636e\u5e93<\/p>\r\n<p>CREATE DATABASE wordpress;<br \/>\u9000\u51famysql<\/p>\r\n<p>exit;<\/p>\r\n<p>9\uff0c\u4e0b\u8f7dwordpress\uff0c\u8fd9\u91cc\u9762\u7684\u4e0b\u8f7d\u4f1a\u5f88\u6162\uff0c\u5efa\u8bae\u53bb\u5b98\u7f51\u4e0b\u8f7d<\/p>\r\n<p>sudo wget https:\/\/wordpress.org\/latest.zip<\/p>\r\n<p>10\uff0c\u89e3\u538bWordPress<\/p>\r\n<p>sudo unzip latest.zip<\/p>\r\n<p>11\uff0c\u5c06wordpress\u7684\u6587\u4ef6\u79fb\u52a8\u5230\/var\/www\/html\/<\/p>\r\n<p>sudo mv wordpress\/* \/var\/www\/html\/<\/p>\r\n<p>12\uff0c\u4fee\u6539\u76ee\u5f55\u6743\u9650\uff0c\u4e0d\u4fee\u6539\u76ee\u5f55\u6743\u9650\u7684\u8bdd\uff0c\u4f1a\u65e0\u6cd5\u4e0b\u8f7d\u4e3b\u9898\u63d2\u4ef6\u7b49<\/p>\r\n<p>sudo chmod -R 777 \/var\/www\/html\/<\/p>\r\n<p>13\uff0c\u91cd\u542fApache<\/p>\r\n<p>sudo service apache2 restart<\/p>\r\n<p>14\uff0c\u63a5\u4e0b\u6765\u5728\u6d4f\u89c8\u5668\u8f93\u5165ip\u5c31\u53ef\u4ee5\u8bbf\u95eewordpress\u9879\u76ee\u4e86<\/p>\r\n<p><strong>9. \u4fee\u6539MTputty\u5b57\u4f53\u5927\u5c0f<\/strong><\/p>\r\n<p>\u6253\u5f00putty<\/p>\r\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1281\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1.png\" alt=\"1\" width=\"1179\" height=\"615\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1.png 1179w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1-300x156.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1-1024x534.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/1-220x115.png 220w\" sizes=\"(max-width: 1179px) 100vw, 1179px\" \/><\/a><\/p>\r\n<p>\u4fdd\u5b58\u8bbe\u7f6e<\/p>\r\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1282\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2.png\" alt=\"2\" width=\"466\" height=\"449\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2.png 466w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2-300x289.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2-156x150.png 156w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><\/a><\/p>\r\n<p>\u6253\u5f00MTputty \u5b57\u4f53\u5df2\u7ecf\u8bbe\u7f6e\u5b8c\u6bd5<\/p>\r\n<p><a href=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1284\" src=\"http:\/\/www.stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457.jpg\" alt=\"2021-08-29_111457\" width=\"1366\" height=\"768\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457.jpg 1366w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457-300x169.jpg 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457-1024x576.jpg 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/2021-08-29_111457-220x124.jpg 220w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\r\n<p><strong>10. \u5b89\u88c5zerotier<\/strong><\/p>\r\n<p>1.\u4e91\u670d\u52a1\u5668\u5fc5\u987b\u6709\u516c\u7f51\u53ef\u8bbf\u95ee\u7684IP\uff0c\u63a8\u8350\u817e\u8baf\u4e91\u6d77\u5916\u670d\u52a1\u5668<br \/>2.\u63a8\u8350\u5b89\u88c5Ubantu 16\u7cfb\u7edf\uff0c\u4e0d\u80fd\u5b89\u88c5windows\u7cfb\u7edf\uff0c\u8bbe\u7f6eMOON\u8282\u70b9\u6709\u95ee\u9898<br \/>3.\u6309\u7167\u8bf4\u660e\u64cd\u4f5c\u5373\u53ef\uff0c\u901f\u5ea6\u53ef\u4ee5\u8fbe\u52301Mbps\uff0c\u65f6\u5ef610~20ms<\/p>\r\n<p>- \u91c7\u7528MTputty\u8fde\u63a5Ubantu\u670d\u52a1\u5668\uff0c\u4ee5root\u7528\u6237\u767b\u5f55<br \/>\u5b89\u88c5ZeroTier<br \/>curl -s https:\/\/install.zerotier.com | sudo bash<br \/>\u52a0\u5165\u7f51\u7edc<br \/>zerotier-cli join zerotierID<\/p>\r\n<p>\u6ce8\u610f\u5728Zerotier\u540e\u53f0\uff0c\u5982\u679c\u9009\u62e9\u4e86PrivateNetwork\uff0c\u8981\u624b\u52a8\u6279\u51c6\u8be5\u8282\u70b9\u52a0\u5165\u3002<\/p>\r\n<p>\u914d\u7f6eMoon<br \/>cd \/var\/lib\/zerotier-one<br \/>zerotier-idtool initmoon identity.public &gt;&gt; moon.json<br \/>\u7f16\u8f91<br \/>nano moon.json<br \/>\u5c06\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684 \"stableEndpoints\": [] \u4fee\u6539\u6210 \"stableEndpoints\": [\"ServerIP\/9993\"]\uff0c\u5c06 ServerIP \u66ff\u6362\u6210\u4e91\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u3002<br \/>\u751f\u6210 .moon \u6587\u4ef6<br \/>zerotier-idtool genmoon moon.json<br \/>\u91cd\u542f zerotier-one \u670d\u52a1<br \/>systemctl restart zerotier-one<br \/>Linux \u7cfb\u7edf\u4e0b\u4f7f\u7528 Moon<br \/>\u5c06\u547d\u4ee4\u4e2d\u7684\u4e24\u7ec4 xxxxxxxxxx \u90fd\u66ff\u6362\u6210 moon \u7684\u8282\u70b9ID\u3002<br \/>zerotier-cli orbit xxxxxxxxxx xxxxxxxxxx<br \/>\u68c0\u67e5\u662f\u5426\u6dfb\u52a0\u6210\u529f<br \/>zerotier-cli listpeers<\/p>\r\n<p>Windows \u7cfb\u7edf\u4e0b\u4f7f\u7528 Moon<br \/>\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00 PowerShell\uff0c\u5c06\u547d\u4ee4\u4e2d\u7684\u4e24\u7ec4 xxxxxxxxxx \u90fd\u66ff\u6362\u6210 moon \u7684\u8282\u70b9ID\u3002<\/p>\r\n<p>C:\\Windows\\system32&gt; zerotier-cli.bat orbit xxxxxxxxxx xxxxxxxxxx<br \/>\u68c0\u67e5\u662f\u5426\u6dfb\u52a0\u6210\u529f<br \/>C:\\Windows\\system32&gt; zerotier-cli.bat listpeers<br \/>\u63d0\u793a\uff1aWindows \u7cfb\u7edf\u7684\u9ed8\u8ba4\u7a0b\u5e8f\u76ee\u5f55\u4f4d\u4e8e C:\\Program Files (x86)\\ZeroTier\\One\u3002<\/p>\r\n<p>\u5b89\u88c5\u81ea\u5efaZerotier\uff1aZTNCUI<\/p>\r\n<p>\u5148\u5b89\u88c5Zerotier\uff0c\u7136\u540e\u5b89\u88c5<\/p>\r\n<blockquote>\r\n<p>curl -O https:\/\/s3-us-west-1.amazonaws.com\/key-networks\/deb\/ztncui\/1\/x86_64\/ztncui_0.8.6_amd64.deb<br \/>sudo apt-get install .\/ztncui_0.8.6_amd64.deb<\/p>\r\n<p>\u53ef\u9009\uff0c\u91c7\u7528SSL\u767b\u5f55<br \/>sudo sh -c \"echo 'HTTPS_PORT=3443' &gt; \/opt\/key-networks\/ztncui\/.env\"<br \/>sudo sh -c \"echo 'NODE_ENV=production' &gt;&gt; \/opt\/key-networks\/ztncui\/.env\"<br \/>sudo systemctl restart ztncui<\/p>\r\n<\/blockquote>\r\n<p><br \/>Connect to port 3443 over HTTPS in your web browser - e.g. https:\/\/my.network.controller:3443<br \/>Log in as user admin with password password.<\/p>\r\n<p>\u76ee\u524dZerotier\u514d\u8d39\u7248\u672c\u53ef\u4ee5\u5e2625\u4e2a\u7528\u6237\uff0c\u9700\u8981\u66f4\u591a\u7684\u7528\u6237\u53ef\u4ee5\u81ea\u5efaZerotier\u670d\u52a1\u5668\uff0c\u63a8\u8350ZTNCUI\u3002<\/p>\r\n<p>https:\/\/key-networks.com\/ztncui\/<\/p>\r\n<p>Ubuntu\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\r\n<ol>\r\n<li>Install\u00a0<strong>zerotier-one<\/strong>\u00a0as per instructions here:\u00a0<a href=\"https:\/\/www.zerotier.com\/download.shtml\" target=\"_blank\" rel=\"noopener\">zerotier.com\/download.shtml<\/a>.<\/li>\r\n<li>\r\n<pre>curl -O https:\/\/s3-us-west-1.amazonaws.com\/key-networks\/deb\/ztncui\/1\/x86_64\/ztncui_0.8.6_amd64.deb<\/pre>\r\n<\/li>\r\n<li>\r\n<pre>sudo apt-get install .\/ztncui_0.8.6_amd64.deb<\/pre>\r\n<\/li>\r\n<li>Optional: install TLS\/SSL certificate\u00a0<a href=\"https:\/\/key-networks.com\/ztncui\/#certificate\">as per instructions below<\/a>, or skip this step to use the default self-signed certificate.<\/li>\r\n<li>Restrict access to port 3443 on the public network interface to your IP address (at least until the admin password is set).<\/li>\r\n<li>\r\n<pre>sudo sh -c \"echo 'HTTPS_PORT=3443' &gt; \/opt\/key-networks\/ztncui\/.env\"<\/pre>\r\n<\/li>\r\n<li>\r\n<pre>sudo sh -c \"echo 'NODE_ENV=production' &gt;&gt; \/opt\/key-networks\/ztncui\/.env\"<\/pre>\r\n<\/li>\r\n<li>\r\n<pre>sudo systemctl restart ztncui<\/pre>\r\n<\/li>\r\n<li>Connect to port 3443 over HTTPS in your web browser - e.g. https:\/\/my.network.controller:3443<\/li>\r\n<li>Log in as user\u00a0<b>admin<\/b>\u00a0with password\u00a0<b>password<\/b>.<\/li>\r\n<\/ol>\r\n<p>\u5982\u679c\u5b9e\u73b0\u901a\u8fc7Zerotier\u8fdc\u7a0b\u8bbf\u95ee\u5c40\u57df\u7f51\uff0c\u53ef\u4ee5\u91c7\u7528Linux\u670d\u52a1\u5668\u8fdb\u884c\u8f6c\u53d1\uff0c\u76ee\u524d\u4e0d\u652f\u6301window\u8f6c\u53d1\u3002<\/p>\r\n<p>https:\/\/zerotier.atlassian.net\/wiki\/spaces\/SD\/pages\/224395274\/Route+between+ZeroTier+and+Physical+Networks<\/p>\r\n<p>\u6ce8\u610f\u4e0d\u8981\u5220\u9664\u9ed8\u8ba4\u8def\u7531\uff0c\u5426\u5219\u7ec8\u7aef\u83b7\u53d6\u4e0d\u5230IP\u5730\u5740\uff1b<\/p>\r\n<p>\u589e\u52a0\u8def\u7531\uff1a192.168.1.0\/23\uff08\u5c40\u57df\u7f51\u5185\u90e8\u7684\u7f51\u6bb5\uff0c\u8bbe\u7f6e\u621023\u66f4\u5bb9\u6613\u627e\u5230\u8def\u7531\uff09 10.147.17.9\uff08linux\u4e3b\u673a\u5730\u5740\uff09<\/p>\r\n<p>\u7136\u540e\u5728linux\u4e0a\u542f\u7528\u8f6c\u53d1\u529f\u80fd\uff0c\u6ce8\u610fVMWare\u865a\u62df\u673a\u9ed8\u8ba4\u7528\u6237\u4e0d\u662froot\uff0c\u5f3a\u5236root\u7684\u65b9\u6cd5:<\/p>\r\n<p>sudo passwd<\/p>\r\n<p>\u7136\u540e\u8f93\u5165\u65b0\u5bc6\u7801\u5373\u662froot\u5bc6\u7801<\/p>\r\n<p>\u7136\u540esu\uff0c\u5373\u53ef\u7528root\u7528\u6237\u767b\u5f55\u3002<\/p>\r\n<p>Zerotier\u7684\u53e6\u5916\u4e00\u79cd\u9009\u62e9\u662ftailscale\uff0c\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\r\n<p>https:\/\/blog.csdn.net\/sillydanny\/article\/details\/120633276<\/p>\r\n<p>\u5efa\u8bae\u7528github\u8d26\u53f7\u767b\u5f55\uff0c\u5982\u679c\u670d\u52a1\u5668\u4e0d\u652f\u6301\u56fe\u5f62\u5316\u754c\u9762\u53ef\u4ee5\u5b89\u88c5links\u83b7\u53d6\u7f51\u9875\u5730\u5740\u3002<\/p>\r\n<pre><code class=\"language-text\">apt install links<\/code><\/pre>\r\n<p>\u8bbf\u95ee\u672c\u5730\u5c40\u57df\u7f51\u7684\u65b9\u6cd5\uff0c\u4f18\u70b9\u662fwindow\u548clinux\u670d\u52a1\u5668\u90fd\u53ef\u4ee5\u8fdb\u884c\u8f6c\u53d1\u3002<\/p>\r\n<p>https:\/\/tailscale.com\/kb\/1019\/subnets\/<\/p>\r\n<p><img data-dominant-color=\"111111\" data-has-transparency=\"true\" style=\"--dominant-color: #111111;\" loading=\"lazy\" width=\"604\" height=\"237\" class=\"has-transparency alignnone wp-image-1433 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5.png 604w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5-300x118.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5-220x86.png 220w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><img data-dominant-color=\"111111\" data-has-transparency=\"true\" style=\"--dominant-color: #111111;\" loading=\"lazy\" width=\"604\" height=\"237\" class=\"has-transparency alignnone wp-image-1433 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5.png 604w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5-300x118.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-5-220x86.png 220w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/p>\r\n<p>Zerotier\uff1a<\/p>\r\n<p>\u4f18\u70b9\u662fIP\u5730\u5740\u53ef\u4ee5\u7075\u6d3b\u5b9a\u5236\uff0c\u53ef\u4ee5\u81ea\u5df1\u624b\u52a8\u642d\u5efa\u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u642d\u5efaMoon\u8282\u70b9\u52a0\u901f\uff0c\u6709\u5f00\u6e90\u7248\u672c\uff0c\u514d\u8d39\u7248\u6700\u591a\u652f\u630125\u4e2a\u7528\u6237\uff0c\u81ea\u5df1\u624b\u52a8\u642d\u5efa\u670d\u52a1\u5668\u5219\u6ca1\u6709\u9650\u5236\u3002<strong>\u6ce8\u610f\uff0c\u5982\u679c\u662f\u81ea\u5df1\u642d\u5efa\u7684\u670d\u52a1\u5668\uff0c\u8def\u7531\u529f\u80fd\u652f\u6301\u4e0d\u597d\uff0c\u4e0d\u80fd\u8fdc\u7a0b\u8bbf\u95ee\u5c40\u57df\u7f51\u3002<\/strong>\u8fdc\u7a0b\u8bbf\u95ee\u672c\u5730\u5c40\u57df\u7f51\u901f\u5ea6\u6bd4Tailscale\u901f\u5ea6\u5feb<strong><span style=\"color: #ff0000;\">50ms<\/span><\/strong>\uff08\u7aef\u5230\u7aef\u65f6\u5ef6\uff0c\u6709\u53ef\u80fd\u662fwindow\u7cfb\u7edf\u95ee\u9898\uff09\uff0c\u57fa\u672c\u4e0a\u6ca1\u6709\u5ef6\u8fdf\u3002<\/p>\r\n<p>\u7f3a\u70b9\u662f\uff0c\u5982\u679c\u518d\u4e2d\u79fb\u52a8\u7684\u7f51\u7edc\uff0c\u901f\u5ea6\u4f1a\u6bd4\u8f83\u6162\uff1b\u8fdc\u7a0b\u8bbf\u95ee\u672c\u5730\u5c40\u57df\u7f51\u5fc5\u987b\u7528linux\u670d\u52a1\u5668\u7684\u8f6c\u53d1\u529f\u80fd\uff0c\u4e0d\u652f\u6301window\u3002<\/p>\r\n<p><strong><span style=\"color: #ff0000;\">\u53ef\u4ee5\u8003\u8651\u6df7\u5408\u7ec4\u7f51\uff1a<\/span><\/strong>\u628a\u76f8\u5173\u670d\u52a1\u5668Linux\u670d\u52a1\u5668\u5b89\u88c5\u5b98\u7f51\u7684Zerotier\u548c\u81ea\u5efa\u7684ZeroTier\uff0c\u5b98\u7f51\u7684Zerotier\u7528\u4e8e\u8bbf\u95ee\u8fdc\u7a0b\u672c\u5730\u5c40\u57df\u7f51\uff0c\u907f\u514d\u7ec8\u7aef\u7684\u9650\u5236\uff1b\u81ea\u5efa\u7684Zerotier\u7528\u4e8e\u8fde\u63a5\u5b89\u88c5\u5176\u4ed6\u7ec8\u7aef\uff0c\u8fd9\u6837\u7f51\u7edc\u7684\u89c4\u6a21\u53ef\u4ee5\u65e0\u9650\u5236\u6269\u5927\u3002\u8fd9\u4e24\u4e2a\u7f51\u7edc\u53ea\u9700\u8981\u5212\u5206\u4e0d\u540c\u7684\u7f51\u6bb5\u5373\u53ef\uff0c\u7528zerotier-cli join \u4e24\u4e2a\u7f51\u7edc\u7684ID\u5373\u53ef\u8f7b\u677e\u5b9e\u73b0\u3002<\/p>\r\n<p><strong>Tailscale\uff1a<\/strong><\/p>\r\n<p>\u4f18\u70b9\u662f\u8bbe\u7f6e\u7b80\u5355\uff0c\u8fdc\u7a0b\u8bbf\u95ee\u5c40\u57df\u7f51\u7528window\u548clinux\u90fd\u652f\u6301\uff0cwindow\u91c7\u7528\u7a0b\u5e8f\u672c\u8eab\u7684\u547d\u4ee4\u5373\u53ef\u5b9e\u73b0\u3002\u636e\u8bf4\u52a0\u5bc6\u529f\u80fd\u6bd4Tailscale\u5f3a\u5927\u3002<\/p>\r\n<p>\u7f3a\u70b9\u662f\uff0c\u514d\u8d39\u7248\u672c\u6700\u591a\u53ea\u652f\u630120\u4e2a\uff0c\u4e0d\u80fd\u81ea\u5df1\u642d\u5efa\u670d\u52a1\u5668\uff0cIP\u5730\u5740\u662f\u81ea\u52a8\u5206\u914d\u597d\u7684\uff0c\u4e0d\u80fd\u81ea\u5df1\u624b\u52a8\u4fee\u6539\u3002<\/p>\r\n<p>Netbird:<\/p>\r\n<p>\u7f51\u5740\uff1anetbird.io<\/p>\r\n<p>\u4f18\u70b9\uff1a\u5b89\u88c5\u6bd4\u8f83\u7b80\u5355\uff0c\u914d\u7f6e\u7b80\u5355\uff0c\u7528github\u8d26\u53f7\u767b\u5f55\u5173\u8054\u3002\u6ce8\u610fubuntu\u7248\u672c\u4e0b\u9762\u9700\u8981\u4e0b\u8f7d.deb\u6587\u4ef6\u5b89\u88c5\u3002\u6e90\u7801\u5f00\u6e90\uff0c\u53ef\u4ee5\u81ea\u5df1\u642d\u5efa\u670d\u52a1\u5668\u3002\u57fa\u4e8ewireguard\u5f00\u53d1\u3002<\/p>\r\n<blockquote>\r\n<p>sudo apt-get update<br \/>sudo apt-get install ca-certificates curl gnupg -y<br \/>curl -sSL https:\/\/pkgs.wiretrustee.com\/debian\/public.key | sudo gpg --dearmor --output \/usr\/share\/keyrings\/wiretrustee-archive-keyring.gpg<br \/>echo 'deb [signed-by=\/usr\/share\/keyrings\/wiretrustee-archive-keyring.gpg] https:\/\/pkgs.wiretrustee.com\/debian stable main' | sudo tee \/etc\/apt\/sources.list.d\/wiretrustee.list<\/p>\r\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span><span class=\"token plain\"> update<\/span><\/p>\r\n<\/blockquote>\r\n<p>https:\/\/github.com\/netbirdio\/netbird\/releases\/tag\/v0.10.2<\/p>\r\n<blockquote>\r\n<p>wget https:\/\/github.com\/netbirdio\/netbird\/releases\/download\/v0.10.2\/netbird_0.10.2_linux_386.deb<\/p>\r\n<p>dpkg -i netbird_0.10.2_linux_386.deb<\/p>\r\n<\/blockquote>\r\n<p>\u5b89\u88c5\u540e\uff1a<\/p>\r\n<blockquote>\r\n<p>netbird up<\/p>\r\n<\/blockquote>\r\n<p>\u4e4b\u540e\u4f1a\u51fa\u73b0\u4e00\u4e2a\u7f51\u5740\uff0c\u7136\u540e\u7528github\u8d26\u53f7\u5173\u8054\u3002\u5982\u679c\u7b2c\u4e00\u6b21\u6ca1\u6709\u6fc0\u6d3b\u6210\u529f\uff0c\u5219\u7528\u547d\u4ee4\uff1a<\/p>\r\n<blockquote>\r\n<p><span class=\"token plain\">netbird up --setup-key <\/span><span class=\"token operator\">&lt;<\/span><span class=\"token plain\">SETUP KEY<\/span><span class=\"token operator\">&gt;<\/span><\/p>\r\n<\/blockquote>\r\n<p>\u4e4b\u540e\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u4fe1\u606f<\/p>\r\n<blockquote>\r\n<p>netbird status -d<\/p>\r\n<\/blockquote>\r\n<p>\u7f3a\u70b9\uff1a\u514d\u8d39\u7248\u53ea\u652f\u630120\u4e2a\uff0cIP\u5730\u5740\u81ea\u52a8\u5206\u914d\uff0c\u4e0d\u80fd\u81ea\u5df1\u624b\u52a8\u4fee\u6539\u3002<\/p>\r\n<p><strong>11. \u7ec8\u6b62\u7a0b\u5e8f<\/strong><\/p>\r\n<p>\u6307\u4ee4\u67e5\u770b\u5f53\u524d\u7684\u8fd0\u884c\u7a0b\u5e8f\u5bf9\u5e94\u7684PID<\/p>\r\n<p><span class=\"hljs-attr\">ps<\/span>\u00a0a<\/p>\r\n<p>\u7136\u540e\u7ec8\u6b62<\/p>\r\n<p>kill PID<\/p>\r\n<p><strong>12. \u5220\u9664xfce4\u684c\u9762:<\/strong><\/p>\r\n<p>\u5982\u679c\u5b89\u88c5\u7684\u662fxfce\u684c\u9762<br \/>\u5378\u8f7dxfce 4<\/p>\r\n<p>$sudo apt-get remove xfce4<\/p>\r\n<p>ubuntu14.04 \u5378\u8f7dxfce\u684c\u9762\u73af\u5883<br \/>\u5378\u8f7d\u76f8\u5173\u8f6f\u4ef6<\/p>\r\n<p>$sudo apt-get remove xfce4*<\/p>\r\n<p>ubuntu14.04 \u5378\u8f7dxfce\u684c\u9762\u73af\u5883<br \/>\u81ea\u52a8\u5378\u8f7d\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6<\/p>\r\n<p>$sudo apt-get autoremove<\/p>\r\n<p>ubuntu14.04 \u5378\u8f7dxfce\u684c\u9762\u73af\u5883<br \/>\u7cfb\u7edf\u6e05\u7406<\/p>\r\n<p>$sudo apt-get clean<\/p>\r\n<p>ubuntu14.04 \u5378\u8f7dxfce\u684c\u9762\u73af\u5883<br \/>\u5982\u679c\u5b89\u88c5\u7684\u662fxubuntu-desktop\u8fd8\u9700\u8981\u5378\u8f7dxubuntu<\/p>\r\n<p>$sudo apt-get remove xubuntu*<\/p>\r\n<p>ubuntu14.04 \u5378\u8f7dxfce\u684c\u9762\u73af\u5883<br \/>\u540c\u6837\u9700\u8981\u5378\u8f7d\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6<\/p>\r\n<p>$sudo apt-get autoremove<\/p>\r\n<p><strong>13:\u00a0root \u767b\u9646\u63d0\u793a ACCESS DENIED \u89e3\u51b3\u529e\u6cd5<\/strong><br \/>nano \/etc\/ssh\/sshd_config<br \/>\u628a\u201cPermitRootLogin without passwd\u201d\u6539\u6210\u201cPermitRootLogin yes\u201d<\/p>\r\n<p>\u6309\u201cctrl+o\u201d\u4fdd\u5b58\u518d\u9000\u51fa\uff0c\u9000\u51fa\u540e\u8bb0\u5f97\u8981\u91cd\u542f reboot\u751f\u6548<br \/><strong>14:\u00a0 \u00a0\u5b89\u88c5tinyproxy\u4ee3\u7406<\/strong><br \/>apt-get install tinyproxy<br \/>cd \/etc\/tinyproxy<br \/>nano tinyproxy.conf<br \/>\u4fee\u6539\u7aef\u53e3\u53f7<br \/>allow ip\u5730\u5740\/(\u7f51\u7edc\u4f4d\u657024\u8868\u793a0~255)<br \/>service tinyproxy restart \u91cd\u542f\u670d\u52a1<\/p>\r\n<p>Tinyproxy\u6709\u95ee\u9898\uff0c\u6539\u4e3asquid\u8f6f\u4ef6\u6548\u679c\u66f4\u597d\u3002<\/p>\r\n<p>sudo apt update<br \/>sudo apt upgrade<\/p>\r\n<p>sudo apt install squid<\/p>\r\n<p>sudo cp \/etc\/squid\/squid.conf \/etc\/squid\/squid.conf.bak<\/p>\r\n<p>sudo nano \/etc\/squid\/squid.conf<\/p>\r\n<p>http_port 3128(9999)<\/p>\r\n<p>acl localnet src 100.76.0.0\/255.255.0.0<br \/>http_access allow localnet<br \/>http_access deny all<\/p>\r\n<p><strong>\u4e8c\u7ea7\u4ee3\u7406\u8bbe\u7f6e\u65b9\u6cd5\uff1a<\/strong><\/p>\r\n<p>cache_peer 1.1.1.1 parent 9999 0 no-query no-digest<br \/>never_direct allow all<\/p>\r\n<p><strong>15\uff1a\u4e0a\u4f20\u6587\u4ef6\u7528winscp\uff0c\u4e0d\u9700\u8981\u5355\u72ec\u67b6\u8bbeFTP\u670d\u52a1\u5668<\/strong><\/p>\r\n<p>\u6ce8\u610fwinscp\u53bb\u6389\u8fde\u63a5-&gt;ftp-&gt;\u88ab\u52a8\u6a21\u5f0f\u3002<\/p>\r\n<p>\u5982\u679c\u662f\u817e\u8baf\u4e91\uff0c\u9700\u8981\u5728\u540e\u53f0\u9632\u706b\u5899\u589e\u52a0ftp\u89c4\u5219\u3002<\/p>\r\n<p><a href=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1304\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845.jpg\" alt=\"tecent ftpconfig-2022-07-30_124845\" width=\"1315\" height=\"583\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845.jpg 1315w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845-300x133.jpg 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845-1024x454.jpg 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/tecent-ftpconfig-2022-07-30_124845-220x98.jpg 220w\" sizes=\"(max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\r\n<p><strong>16. \u5b89\u88c5wordpress\u63d2\u4ef6\u63d0\u793a\u8f93\u5165FTP\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a<\/strong><\/p>\r\n<p>\u5728wp-config.php\u6587\u4ef6\u4e2d\u63d2\u5165\u5982\u4e0b\u7684\u4ee3\u7801\uff1a<\/p>\r\n<p>define(\"FS_METHOD\",\"direct\");<br \/>define(\"FS_CHMOD_DIR\", 0777);<br \/>define(\"FS_CHMOD_FILE\", 0777);<\/p>\r\n\r\n<p><strong>17. \u5f7b\u5e95\u89e3\u51b3\u4e0a\u4f20\u6587\u4ef6\u5c0f\u4e8e2MB\u7684\u95ee\u9898<\/strong><\/p>\r\n\r\n\r\n\r\n<p>\u5347\u7ea7wordpress\u5230\u6700\u65b0\u7248\u672c\uff0c\u7136\u540e\u4e0b\u8f7dbig file upload\u63d2\u4ef6\uff0c\u628a\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u6539\u4e3a16M\u5373\u53ef\u3002<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"477\" class=\"wp-image-1323\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253-1024x477.jpg\" alt=\"\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253-1024x477.jpg 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253-300x140.jpg 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253-768x358.jpg 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253-220x102.jpg 220w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Big-file-upload-2022-08-04_221253.jpg 1132w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p><strong>18. \u6587\u4ef6\u4e0b\u8f7d\u795e\u5668Aria2c\u548cAriaNG<\/strong><\/p>\r\n<blockquote>\r\n<p>sudo apt-get install aria2<br \/>mkdir \/etc\/aria2 #\u65b0\u5efa\u6587\u4ef6\u5939 <br \/>touch \/etc\/aria2\/aria2.session #\u65b0\u5efasession\u6587\u4ef6<br \/>chmod 777 \/etc\/aria2\/aria2.session #\u8bbe\u7f6earia2.session\u53ef\u5199 <br \/>nano \/etc\/aria2\/aria2.conf #\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/p>\r\n<\/blockquote>\r\n<p>\u5728aria2.conf\u5199\u5165<\/p>\r\n<blockquote>\r\n<p>## '#'\u5f00\u5934\u4e3a\u6ce8\u91ca\u5185\u5bb9, \u9009\u9879\u90fd\u6709\u76f8\u5e94\u7684\u6ce8\u91ca\u8bf4\u660e, \u6839\u636e\u9700\u8981\u4fee\u6539 ##<br \/>## \u88ab\u6ce8\u91ca\u7684\u9009\u9879\u586b\u5199\u7684\u662f\u9ed8\u8ba4\u503c, \u5efa\u8bae\u5728\u9700\u8981\u4fee\u6539\u65f6\u518d\u53d6\u6d88\u6ce8\u91ca ##<\/p>\r\n<p>## \u6587\u4ef6\u4fdd\u5b58\u76f8\u5173 ##<\/p>\r\n<p># \u6587\u4ef6\u7684\u4fdd\u5b58\u8def\u5f84(\u53ef\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u6216\u76f8\u5bf9\u8def\u5f84), \u9ed8\u8ba4: \u5f53\u524d\u542f\u52a8\u4f4d\u7f6e<br \/>dir=\/var\/www\/html\/aria<\/p>\r\n<p># \u542f\u7528\u78c1\u76d8\u7f13\u5b58, 0\u4e3a\u7981\u7528\u7f13\u5b58, \u97001.16\u4ee5\u4e0a\u7248\u672c, \u9ed8\u8ba4:16M<br \/>#disk-cache=32M<br \/>#disk-cache=32M<br \/># \u6587\u4ef6\u9884\u5206\u914d\u65b9\u5f0f, \u80fd\u6709\u6548\u964d\u4f4e\u78c1\u76d8\u788e\u7247, \u9ed8\u8ba4:prealloc<br \/># \u9884\u5206\u914d\u6240\u9700\u65f6\u95f4: none &lt; falloc ? trunc &lt; prealloc<br \/># falloc\u548ctrunc\u5219\u9700\u8981\u6587\u4ef6\u7cfb\u7edf\u548c\u5185\u6838\u652f\u6301<br \/># NTFS\u5efa\u8bae\u4f7f\u7528falloc, EXT3\/4\u5efa\u8baetrunc, MAC \u4e0b\u9700\u8981\u6ce8\u91ca\u6b64\u9879<br \/>file-allocation=prealloc<br \/># \u65ad\u70b9\u7eed\u4f20<br \/>continue=true<\/p>\r\n<p>## \u4e0b\u8f7d\u8fde\u63a5\u76f8\u5173 ##<\/p>\r\n<p># \u6700\u5927\u540c\u65f6\u4e0b\u8f7d\u4efb\u52a1\u6570, \u8fd0\u884c\u65f6\u53ef\u4fee\u6539, \u9ed8\u8ba4:5<br \/>max-concurrent-downloads=10<br \/># \u540c\u4e00\u670d\u52a1\u5668\u8fde\u63a5\u6570, \u6dfb\u52a0\u65f6\u53ef\u6307\u5b9a, \u9ed8\u8ba4:1<br \/>max-connection-per-server=10<br \/># \u6700\u5c0f\u6587\u4ef6\u5206\u7247\u5927\u5c0f, \u6dfb\u52a0\u65f6\u53ef\u6307\u5b9a, \u53d6\u503c\u8303\u56f41M -1024M, \u9ed8\u8ba4:20M<br \/># \u5047\u5b9asize=10M, \u6587\u4ef6\u4e3a20MiB \u5219\u4f7f\u7528\u4e24\u4e2a\u6765\u6e90\u4e0b\u8f7d; \u6587\u4ef6\u4e3a15MiB \u5219\u4f7f\u7528\u4e00\u4e2a\u6765\u6e90\u4e0b\u8f7d<br \/>min-split-size=10M<br \/># \u5355\u4e2a\u4efb\u52a1\u6700\u5927\u7ebf\u7a0b\u6570, \u6dfb\u52a0\u65f6\u53ef\u6307\u5b9a, \u9ed8\u8ba4:5<br \/>split=5<br \/># \u6574\u4f53\u4e0b\u8f7d\u901f\u5ea6\u9650\u5236, \u8fd0\u884c\u65f6\u53ef\u4fee\u6539, \u9ed8\u8ba4:0<br \/>#max-overall-download-limit=0<br \/># \u5355\u4e2a\u4efb\u52a1\u4e0b\u8f7d\u901f\u5ea6\u9650\u5236, \u9ed8\u8ba4:0<br \/>#max-download-limit=0<br \/># \u6574\u4f53\u4e0a\u4f20\u901f\u5ea6\u9650\u5236, \u8fd0\u884c\u65f6\u53ef\u4fee\u6539, \u9ed8\u8ba4:0<br \/>#max-overall-upload-limit=0<br \/># \u5355\u4e2a\u4efb\u52a1\u4e0a\u4f20\u901f\u5ea6\u9650\u5236, \u9ed8\u8ba4:0<br \/>#max-upload-limit=0<br \/># \u7981\u7528IPv6, \u9ed8\u8ba4:false<br \/>disable-ipv6=true<\/p>\r\n<p>## \u8fdb\u5ea6\u4fdd\u5b58\u76f8\u5173 ##<\/p>\r\n<p># \u4ece\u4f1a\u8bdd\u6587\u4ef6\u4e2d\u8bfb\u53d6\u4e0b\u8f7d\u4efb\u52a1<br \/>input-file=\/etc\/aria2\/aria2.session<br \/># \u5728Aria2\u9000\u51fa\u65f6\u4fdd\u5b58`\u9519\u8bef\/\u672a\u5b8c\u6210`\u7684\u4e0b\u8f7d\u4efb\u52a1\u5230\u4f1a\u8bdd\u6587\u4ef6<br \/>save-session=\/etc\/aria2\/aria2.session<br \/># \u5b9a\u65f6\u4fdd\u5b58\u4f1a\u8bdd, 0\u4e3a\u9000\u51fa\u65f6\u624d\u4fdd\u5b58, \u97001.16.1\u4ee5\u4e0a\u7248\u672c, \u9ed8\u8ba4:0<br \/>save-session-interval=60<\/p>\r\n<p>## RPC\u76f8\u5173\u8bbe\u7f6e ##<\/p>\r\n<p>enable-rpc=true<br \/>pause=false<br \/>rpc-allow-origin-all=true<br \/>rpc-listen-all=true<br \/>rpc-save-upload-metadata=true<br \/>rpc-secure=false<br \/><span style=\"color: #ff0000;\">rpc-secret=PASSWORD<\/span><br \/># \u542f\u7528RPC, \u9ed8\u8ba4:false<br \/>#enable-rpc=true<br \/># \u5141\u8bb8\u6240\u6709\u6765\u6e90, \u9ed8\u8ba4:false<br \/>#rpc-allow-origin-all=true<br \/># \u5141\u8bb8\u975e\u5916\u90e8\u8bbf\u95ee, \u9ed8\u8ba4:false<br \/>#rpc-listen-all=true<br \/># \u4e8b\u4ef6\u8f6e\u8be2\u65b9\u5f0f, \u53d6\u503c:[epoll, kqueue, port, poll, select], \u4e0d\u540c\u7cfb\u7edf\u9ed8\u8ba4\u503c\u4e0d\u540c<br \/>#event-poll=select<br \/># RPC\u76d1\u542c\u7aef\u53e3, \u7aef\u53e3\u88ab\u5360\u7528\u65f6\u53ef\u4ee5\u4fee\u6539, \u9ed8\u8ba4:6800<br \/>rpc-listen-port=6800<br \/># \u8bbe\u7f6e\u7684RPC\u6388\u6743\u4ee4\u724c, v1.18.4\u65b0\u589e\u529f\u80fd, \u53d6\u4ee3 --rpc-user \u548c --rpc-passwd \u9009\u9879<br \/>#rpc-secure=&lt;taken&gt;<br \/># \u8bbe\u7f6e\u7684RPC\u8bbf\u95ee\u7528\u6237\u540d, \u6b64\u9009\u9879\u65b0\u7248\u5df2\u5e9f\u5f03, \u5efa\u8bae\u6539\u7528 --rpc-secret \u9009\u9879<br \/>#rpc-user=&lt;USER&gt;<br \/># \u8bbe\u7f6e\u7684RPC\u8bbf\u95ee\u5bc6\u7801, \u6b64\u9009\u9879\u65b0\u7248\u5df2\u5e9f\u5f03, \u5efa\u8bae\u6539\u7528 --rpc-secret \u9009\u9879<br \/>#rpc-passwd=&lt;PASSWD&gt;<\/p>\r\n<p>## BT\/PT\u4e0b\u8f7d\u76f8\u5173 ##<\/p>\r\n<p># \u5f53\u4e0b\u8f7d\u7684\u662f\u4e00\u4e2a\u79cd\u5b50(\u4ee5.torrent\u7ed3\u5c3e)\u65f6, \u81ea\u52a8\u5f00\u59cbBT\u4efb\u52a1, \u9ed8\u8ba4:true<br \/>#follow-torrent=true<br \/># BT\u76d1\u542c\u7aef\u53e3, \u5f53\u7aef\u53e3\u88ab\u5c4f\u853d\u65f6\u4f7f\u7528, \u9ed8\u8ba4:6881-6999<br \/>listen-port=51413<br \/># \u5355\u4e2a\u79cd\u5b50\u6700\u5927\u8fde\u63a5\u6570, \u9ed8\u8ba4:55<br \/>#bt-max-peers=55<br \/># \u6253\u5f00DHT\u529f\u80fd, PT\u9700\u8981\u7981\u7528, \u9ed8\u8ba4:true<br \/>enable-dht=true<br \/># \u6253\u5f00IPv6 DHT\u529f\u80fd, PT\u9700\u8981\u7981\u7528<br \/>#enable-dht6=false<br \/># DHT\u7f51\u7edc\u76d1\u542c\u7aef\u53e3, \u9ed8\u8ba4:6881-6999<br \/>#dht-listen-port=6881-6999<br \/># \u672c\u5730\u8282\u70b9\u67e5\u627e, PT\u9700\u8981\u7981\u7528, \u9ed8\u8ba4:false<br \/>bt-enable-lpd=true<br \/># \u79cd\u5b50\u4ea4\u6362, PT\u9700\u8981\u7981\u7528, \u9ed8\u8ba4:true<br \/>enable-peer-exchange=false<br \/># \u6bcf\u4e2a\u79cd\u5b50\u9650\u901f, \u5bf9\u5c11\u79cd\u7684PT\u5f88\u6709\u7528, \u9ed8\u8ba4:50K<br \/>#bt-request-peer-speed-limit=50K<br \/># \u5ba2\u6237\u7aef\u4f2a\u88c5, PT\u9700\u8981<br \/>#peer-id-prefix=-TR2770-<br \/>user-agent=Transmission\/2.92<br \/>#user-agent=netdisk;4.4.0.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia<br \/># \u5f53\u79cd\u5b50\u7684\u5206\u4eab\u7387\u8fbe\u5230\u8fd9\u4e2a\u6570\u65f6, \u81ea\u52a8\u505c\u6b62\u505a\u79cd, 0\u4e3a\u4e00\u76f4\u505a\u79cd, \u9ed8\u8ba4:1.0<\/p>\r\n<p>seed-ratio=1.0<br \/>#\u4f5c\u79cd\u65f6\u95f4\u5927\u4e8e30\u5206\u949f\uff0c\u5219\u505c\u6b62\u4f5c\u79cd<br \/>seed-time=30<br \/># \u5f3a\u5236\u4fdd\u5b58\u4f1a\u8bdd, \u8bdd\u5373\u4f7f\u4efb\u52a1\u5df2\u7ecf\u5b8c\u6210, \u9ed8\u8ba4:false<br \/># \u8f83\u65b0\u7684\u7248\u672c\u5f00\u542f\u540e\u4f1a\u5728\u4efb\u52a1\u5b8c\u6210\u540e\u4f9d\u7136\u4fdd\u7559.aria2\u6587\u4ef6<br \/>#force-save=false<br \/># BT\u6821\u9a8c\u76f8\u5173, \u9ed8\u8ba4:true<br \/>#bt-hash-check-seed=true<br \/># \u7ee7\u7eed\u4e4b\u524d\u7684BT\u4efb\u52a1\u65f6, \u65e0\u9700\u518d\u6b21\u6821\u9a8c, \u9ed8\u8ba4:false<br \/>bt-seed-unverified=true<br \/># \u4fdd\u5b58\u78c1\u529b\u94fe\u63a5\u5143\u6570\u636e\u4e3a\u79cd\u5b50\u6587\u4ef6(.torrent\u6587\u4ef6), \u9ed8\u8ba4:false<br \/>bt-save-metadata=true<br \/>#\u4e0b\u8f7d\u5b8c\u6210\u540e\u5220\u9664.ara2\u7684\u540c\u540d\u6587\u4ef6<br \/>on-download-complete=\/var\/www\/html\/aria\/delete_aria2<br \/>#on-download-complete=\/home\/pi\/aria2\/rasp.sh<\/p>\r\n<\/blockquote>\r\n<p>\u542f\u52a8Aria2c:<\/p>\r\n<blockquote>\r\n<p><span class=\"token function\">sudo<\/span> aria2c --conf-path<span class=\"token operator\">=<\/span>\/etc\/aria2\/aria2.conf\u00a0<\/p>\r\n<p><span class=\"token function\">sudo<\/span> aria2c --conf-path<span class=\"token operator\">=<\/span>\/etc\/aria2\/aria2.conf -D <span class=\"token comment\"># \u4ee5\u5b88\u62a4\u8fdb\u7a0b\u7684\u65b9\u5f0f\u542f\u52a8<\/span><\/p>\r\n<\/blockquote>\r\n<p><strong>\u4e0b\u8f7dAriaNG:<\/strong><\/p>\r\n<p>\u4e0b\u8f7d:<a href=\"https:\/\/github.com\/mayswind\/AriaNg\/releases\">https:\/\/github.com\/mayswind\/AriaNg\/releases<\/a><br \/>AriaNg-1.1.6-AllInOne.zip<\/p>\r\n<p>\u89e3\u538b\uff0c\u653e\u5230\u7f51\u9875\u670d\u52a1\u5668\u76ee\u5f55(Apache: var\/www\/html)<\/p>\r\n<p>\u5728RPC\u8bbe\u7f6e\u4e2d\u8f93\u5165\u5bc6\u7801\uff0c\u5237\u65b0\u9875\u9762\u5373\u53ef\u663e\u793a\u8fde\u63a5\u3002\u7279\u522b\u4e3b\u8981\u4e0d\u8981\u91c7\u7528https\uff0c\u800c\u662f\u8981\u91c7\u7528http.<\/p>\r\n<p><img data-dominant-color=\"dfe0e2\" data-has-transparency=\"true\" style=\"--dominant-color: #dfe0e2;\" loading=\"lazy\" width=\"1360\" height=\"406\" class=\"has-transparency alignnone wp-image-1422 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2.png 1360w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2-300x90.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2-1024x306.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2-768x229.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-2-220x66.png 220w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/p>\r\n<p>\u6b64\u5916\uff0c\u4f7f\u7528celeron-dude-indexer-main.zip\uff0c\u53ef\u4ee5\u81ea\u52a8\u68c0\u7d22\u5f53\u524d\u76ee\u5f55\u6240\u6709\u6587\u4ef6\u5e76\u751f\u6210\u7f51\u9875\u6587\u4ef6\uff0c\u975e\u5e38\u65b9\u4fbf\u4e0b\u8f7d\u3002<\/p>\r\n<p><img data-dominant-color=\"f8f9fa\" data-has-transparency=\"true\" style=\"--dominant-color: #f8f9fa;\" loading=\"lazy\" width=\"665\" height=\"246\" class=\"has-transparency alignnone wp-image-1424 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-3.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-3.png 665w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-3-300x111.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-3-220x81.png 220w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/p>\r\n<p>\u4e0b\u8f7d\u6587\u4ef6\u6539\u540d\uff1a\u9ad8\u7ea7\u8bbe\u7f6e-&gt;\u5f3a\u5236\u4fdd\u5b58\u6539\u4e3aFalse<\/p>\r\n<p><img data-dominant-color=\"dcdddf\" data-has-transparency=\"true\" style=\"--dominant-color: #dcdddf;\" loading=\"lazy\" width=\"1357\" height=\"642\" class=\"has-transparency alignnone wp-image-1443 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7.png 1357w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7-300x142.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7-1024x484.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7-768x363.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-7-220x104.png 220w\" sizes=\"(max-width: 1357px) 100vw, 1357px\" \/><\/p>\r\n<p>\u7136\u540e\u91cd\u542fAria\uff0c<\/p>\r\n<blockquote>\r\n<p><span class=\"token function\">sudo<\/span> aria2c --conf-path<span class=\"token operator\">=<\/span>\/etc\/aria2\/aria2.conf -D <span class=\"token comment\"># \u4ee5\u5b88\u62a4\u8fdb\u7a0b\u7684\u65b9\u5f0f\u542f\u52a8<\/span><\/p>\r\n<\/blockquote>\r\n<p>\u4e0b\u8f7d\u65f6\uff0c\u5728\u9009\u9879\u4e2d\uff0c\u52fe\u9009http\u9009\u9879\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u5728\u6587\u4ef6\u540d\u9009\u9879\u4e2d\u81ea\u5b9a\u4e49\u4e0b\u8f7d\u6587\u4ef6\u540d\u4e86<\/p>\r\n<p><img data-dominant-color=\"dee0e1\" data-has-transparency=\"true\" style=\"--dominant-color: #dee0e1;\" loading=\"lazy\" width=\"1346\" height=\"611\" class=\"has-transparency alignnone wp-image-1444 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8.png 1346w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8-300x136.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8-1024x465.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8-768x349.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-8-220x100.png 220w\" sizes=\"(max-width: 1346px) 100vw, 1346px\" \/><\/p>\r\n<p><strong>19. \u4e0b\u8f7dyoutube\u795e\u5668 - youtube-dl<\/strong><\/p>\r\n\r\n\r\n\r\n<blockquote>\r\n<p>sudo apt purge youtube_dl<\/p>\r\n<p>sudo pip3 install youtube-dl<\/p>\r\n<p>hash youtube-dl<\/p>\r\n<\/blockquote>\r\n<p>\u7528\u6cd5\uff0c\u5217\u51fa\u683c\u5f0f\uff1a<\/p>\r\n<blockquote>\r\n<p>youtube-dl -F https:\/\/www.youtube.com\/watch?v=TkoJPVQGHCw<\/p>\r\n<\/blockquote>\r\n<p><img data-dominant-color=\"0c0c0c\" data-has-transparency=\"true\" style=\"--dominant-color: #0c0c0c;\" loading=\"lazy\" width=\"1092\" height=\"658\" class=\"has-transparency alignnone wp-image-1416 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1.png 1092w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1-300x181.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1-1024x617.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1-768x463.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1-220x133.png 220w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/p>\r\n<p>\u89c6\u9891\u548c\u58f0\u97f3\u4e0b\u8f7d\u5408\u6210\uff0c\u6ce8\u610f\u8981\u5b89\u88c5ffmpeg\u63d2\u4ef6\uff0c\u5e76\u8c03\u7528aria2c\u52a0\u901f\uff1a<\/p>\r\n<blockquote>\r\n<p>youtube-dl -f 303+104 -o xx.mp4 https:\/\/www.youtube.com\/watch?v=TkoJPVQGHCw --external-downloader aria2c --external-downloader-args \"-x 16 -k 1M\"<\/p>\r\n<\/blockquote>\r\n<p><strong>20. \u4e0b\u8f7d\u89c6\u9891\u7f51\u7ad9\u6587\u4ef6\u795e\u5668you-get<\/strong><\/p>\r\n<blockquote>\r\n<p>sudo pip3 install you-get<\/p>\r\n<\/blockquote>\r\n<p>\u67e5\u770b\u89c6\u9891\u4e0b\u8f7d\u4fe1\u606f\uff08\u5305\u62ecyoutube\uff09<\/p>\r\n<blockquote>\r\n<p>you<span class=\"hljs-operator\">-<\/span><span class=\"hljs-keyword\">get<\/span> <span class=\"hljs-operator\">-<\/span>i \u89c6\u9891\u7f51\u5740<\/p>\r\n<\/blockquote>\r\n<p><img data-dominant-color=\"060606\" data-has-transparency=\"true\" style=\"--dominant-color: #060606;\" loading=\"lazy\" width=\"1037\" height=\"639\" class=\"has-transparency alignnone wp-image-1420 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted.png 1037w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-300x185.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-1024x631.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-768x473.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-220x136.png 220w\" sizes=\"(max-width: 1037px) 100vw, 1037px\" \/><\/p>\r\n<p>\u8bbe\u7f6e\u8f93\u51fa\u683c\u5f0f\u5e76\u4e0b\u8f7d\uff1a<\/p>\r\n<blockquote>\r\n<p>you-get -format flv https:\/\/www.bilibili.com\/video\/BV1HY4y1w7GW?zw<\/p>\r\n<\/blockquote>\r\n<p><strong>21. gdown\u4e0b\u8f7dgoogle drive<\/strong><\/p>\r\n<blockquote>\r\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/wkentaro\/gdown.git<\/p>\r\n<p><span class=\"token builtin class-name\">cd<\/span> gdown<\/p>\r\n<p>pip <span class=\"token function\">install<\/span> gdown<\/p>\r\n<\/blockquote>\r\n<p>\u6bd4\u5982\u4e0b\u8f7d\u6587\u4ef6\uff1ahttps:\/\/drive.google.com\/file\/d\/1jUB5yD7DP97-EqqU2A9mmr61JpNwZBVK\/view<\/p>\r\n<blockquote>\r\n<p>gdown https:\/\/drive.google.com\/uc?id=\u6807\u8bc6\u7b26<\/p>\r\n<\/blockquote>\r\n<p><strong>22.\u00a0 bypy\u767e\u5ea6\u4e91\u76d8\u4e0a\u4f20\u4e0b\u8f7d<\/strong><\/p>\r\n<p>1.\u5b89\u88c5<br \/># sudo pip install bypy<br \/><br \/>2.\u9a8c\u8bc1\u8bb8\u53ef:<br \/># bypy info<br \/>Please visit:<br \/>https:\/\/openapi.baidu.com\/oauth\/2.0\/xxxx<br \/>And authorize this app<br \/>Paste the Authorization Code here within 10 minutes.<br \/>Press [Enter] when you are done<br \/><br \/><br \/>\u8bbf\u95eehttps:\/\/openapi.baidu.com\/oauth\/2.0\/xxxx\u5c06\u9a8c\u8bc1\u7801\u8f93\u5165\u5230bypy info\u547d\u4ee4\u4e0b<br \/><br \/>3.\u4e0a\u4f20\u4e0e\u4e0b\u8f7d<br \/>&lt;1&gt;.\u4e0a\u4f20\u6587\u4ef6:<br \/># bypy upload [file_name]<br \/><br \/><br \/># bypy upload \"VMware Workstation Pro 14.1.0 Linux x64.rar\" .<br \/>\u6ce8\u610f:\u9700\u4e0a\u4f20\u81f3\u7f51\u76d8\u76ee\u5f55\uff1a\u6211\u7684\u5e94\u7528\u6570\u636e\/bypy\/\u4e0b<br \/><br \/># bypy upload \"VMware Workstation Pro 14.1.0 Linux x64.rar\" .<br \/>\u67e5\u770b<br \/># bypy ls<br \/>F 1111.txt 4 <br \/><br \/><br \/>&lt;2&gt;.\u4e0b\u8f7d\u6587\u4ef6<br \/># bypy downfile [file_name]<br \/><br \/># bypy --processes 5 downfile 1111.txt .\/<br \/>--processes 5: \u540c\u65f6\u4f7f\u75285\u4e2acpu\u7ebf\u7a0b\u4e0b\u8f7d<br \/><br \/>4.\u76ee\u5f55\u4e0e\u6587\u4ef6\u64cd\u4f5c<br \/>\/\/\u521b\u5efa\u76ee\u5f55<br \/># bypy mkdir 123<br \/><br \/><br \/>\/\/\u5220\u9664\u76ee\u5f55<br \/># bypy rm 123<br \/><br \/><br \/>\/\/\u4fee\u6539\u76ee\u5f55\u540d\u5b57<br \/># bypy mv 123 000<br \/><br \/>\u516c\u53f8\u91cc\u9762\u7531\u4e8e\u4e0d\u80fd\u4f7f\u7528\u7f51\u76d8\uff0c\u53ef\u4ee5\u91c7\u7528<\/p>\r\n<p>\u65b9\u6cd51\uff09\u5b89\u5353\u624b\u673a\u7684\u767e\u5ea6\u7f51\u76d8\u4e0b\u8f7d\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7USB\u63a5\u5230\u7535\u8111\u4e0a\u62f7\u8d1d\u6587\u4ef6<\/p>\r\n<p>\u65b9\u6cd52) \u628a\u5171\u4eab\u6587\u4ef6\u653e\u5230bypy\u7684\u76ee\u5f55\u91cc\uff0c\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u7684ubuntu\u8fd0\u884c bypy download filename \/var\/www\/html\/aria\uff1b\u7136\u540e\u518d\u767b\u5f55\u7f51\u5740\u5373\u53ef\u4e0b\u8f7d<\/p>\r\n<p>\u5728\u5bb6\u91cc\u9762\uff0c\u53ef\u4ee5\u91c7\u7528\uff1a<\/p>\r\n<p>1\uff09\u91c7\u7528\u767e\u5ea6\u4e91\u76d8\u4e0a\u4f20\u4e0b\u8f7d<\/p>\r\n<p>2\uff09\u91c7\u7528\u4e91\u670d\u52a1\u5668\u4f5c\u4e3aftp\u670d\u52a1\u5668\u8fdb\u884c\u4e0a\u4f20\u4e0b\u8f7d<\/p>\r\n<p><strong>23.\u00a0 Webmin\u8fdc\u7a0b\u7f51\u7ba1\u5229\u5668<\/strong><\/p>\r\n<p><img data-dominant-color=\"cfdbea\" data-has-transparency=\"true\" style=\"--dominant-color: #cfdbea;\" loading=\"lazy\" width=\"1358\" height=\"697\" class=\"has-transparency alignnone wp-image-1428 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4.png 1358w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4-300x154.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4-1024x526.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4-768x394.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-4-220x113.png 220w\" sizes=\"(max-width: 1358px) 100vw, 1358px\" \/><\/p>\r\n<blockquote>\r\n<p>sudo apt update<br \/>sudo apt install software-properties-common apt-transport-https wget<\/p>\r\n<p>wget -q http:\/\/www.webmin.com\/jcameron-key.asc -O- | sudo apt-key add -<\/p>\r\n<p>sudo add-apt-repository \"deb [arch=amd64] http:\/\/download.webmin.com\/download\/repository sarge contrib\"<\/p>\r\n<p>sudo apt install webmin<\/p>\r\n<p>sudo ufw allow 10000\/tcp<\/p>\r\n<\/blockquote>\r\n<p><strong>24. \u89e3\u51b3SSH\u65ad\u7ebf\u4e0d\u7a33\u5b9a\u7684\u95ee\u9898<\/strong><\/p>\r\n<p>nano \/etc\/ssh\/sshd_config<br \/>\u627e\u5230\u4e0b\u9762\u4e24\u884c<\/p>\r\n<p>ClientAliveInterval 0<br \/>ClientAliveCountMax 3<br \/>\u53bb\u6389\u6ce8\u91ca\uff0c\u6539\u6210<\/p>\r\n<p>ClientAliveInterval 30<br \/>ClientAliveCountMax 86400<\/p>\r\n<p>\u8fd9\u4e24\u884c\u7684\u610f\u601d\u5206\u522b\u662f<\/p>\r\n<p>1\u3001\u5ba2\u6237\u7aef\u6bcf\u9694\u591a\u5c11\u79d2\u5411\u670d\u52a1\u53d1\u9001\u4e00\u4e2a\u5fc3\u8df3\u6570\u636e<\/p>\r\n<p>2\u3001\u5ba2\u6237\u7aef\u591a\u5c11\u79d2\u6ca1\u6709\u76f8\u5e94\uff0c\u670d\u52a1\u5668\u81ea\u52a8\u65ad\u6389\u8fde\u63a5<\/p>\r\n<p>\u91cd\u542fsshd\u670d\u52a1<\/p>\r\n<p>sudo systemctl resatrt sshd<br \/><br \/><\/p>\r\n<p><strong>25. install Finalshell<\/strong><\/p>\r\n<p>\u4e00\u952e\u5b89\u88c5\u811a\u672c<br \/>rm -f finalshell_install_linux.sh ;wget www.hostbuf.com\/downloads\/finalshell_install_linux.sh;chmod +x finalshell_install_linux.sh;.\/finalshell_install_linux.sh;<br \/><br \/>\u5b89\u88c5\u8def\u5f84<br \/>\/usr\/lib\/FinalShell\/<br \/>\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<br \/>\/home\/$USER\/.finalshell\/<br \/><br \/>\u5378\u8f7d<br \/>\u5220\u9664\u5b89\u88c5\u76ee\u5f55 \/usr\/lib\/FinalShell\/<\/p>\r\n<p><strong>26. Install Chrome<\/strong><\/p>\r\n<p>wget https:\/\/dl.google.com\/linux\/direct\/google-chrome-stable_current_amd64.deb<\/p>\r\n<p>sudo dpkg -i google-chrome-stable_current_amd64.deb<\/p>\r\n<p>sudo apt-get -f install<\/p>\r\n<p><strong>27. \u8fdc\u7a0b\u684c\u9762\u8f6f\u4ef6\u00a0<\/strong><\/p>\r\n<p>1\uff09\u7cfb\u7edf\u81ea\u5e26\u7684Remmia\uff0c\u9700\u8981\u624b\u52a8\u5efa\u7acbProfile\uff0c\u6ce8\u610f\u8bbe\u7f6e\u5206\u8fa8\u7387\uff0c\u6548\u679c\u4e0d\u9519\u3002\u53ef\u4ee5\u914d\u5408Netbird\u7ec4\u5efa\u5e7f\u57df\u5c40\u57df\u7f51\uff0c\u65b9\u4fbf\u591a\u5730\u7535\u8111\u63a7\u5236\u548c\u7ba1\u7406\u3002\u6587\u4ef6\u5c3d\u91cf\u4e0a\u4f20\u5230\u7f51\u76d8\u4e0a\uff0c\u91c7\u7528\u5171\u4eab\u76ee\u5f55\uff0c\u901f\u5ea6\u6bd4\u8f83\u6162\uff0c\u6ce8\u610f\u5c3d\u91cf\u5c11\u6587\u4ef6\uff0c\u6709\u65f6\u5237\u65b0\u4f1a\u6b7b\u673a\uff0c\u9002\u5408\u5c11\u91cf\u7684\u6587\u4ef6\u5171\u4eab\u3002\u53ef\u4ee5\u4f7f\u7528\u526a\u5207\u677f\uff0c\u65b9\u4fbf\u4fe1\u606f\u4f20\u9012\u3002<\/p>\r\n<p>\u91c7\u7528\u8fdc\u7a0b\u684c\u9762\u53ef\u4ee5\u91c7\u7528\u82b1\u751f\u58f3\u5185\u7f51\u7a7f\u900f+\u82b1\u751f\u58f3\u57df\u540d\u89e3\u6790\uff0c\u76ee\u524d\u82b1\u751f\u76d2\u5b50\u7545\u4eab\u7248\u6bcf\u4e2a\u67082G\u6d41\u91cf\uff0c1M\u5e26\u5bbd\uff0c\u57fa\u672c\u6ee1\u8db3\u8fdc\u7a0b\u63a7\u5236\u9700\u8981\u3002\u4f46\u662f\u4e0d\u9002\u5408\u6587\u4ef6\u4e0b\u8f7d\uff0c\u89c6\u9891\u76d1\u63a7\u5927\u6d41\u91cf\u573a\u666f\u3002\u53e6\u5916\uff0c\u82b1\u751f\u58f3\u5185\u7f51\u7a7f\u900f\u53ea\u67092\u6761\u89e3\u6790\u7aef\u53e3\uff0c\u4e00\u822c80\u7f51\u9875\u8bbf\u95ee\uff0c\u53e6\u5916\u4e00\u4e2a\u968f\u673a\u5206\u914d\u7528\u4e8e\u8fdc\u7a0b\u684c\u9762\u3002\u53ef\u4ee5\u5229\u7528\u89e3\u6790\u8bb0\u5f55\u4e0d\u540c\u7684IP\u5730\u5740\uff0c\u6765\u8bbf\u95ee\u5c40\u57df\u7f51\u5185\u4e0d\u540c\u7684\u670d\u52a1\u5668\u3002<\/p>\r\n<p>2\uff09Rdesktop\uff1a\u529f\u80fd\u6bd4\u8f83\u7b80\u5355\uff0c\u753b\u8d28\u548c\u5b57\u4f53\u663e\u793a\u6bd4\u8f83\u597d\uff0c\u4f46\u662f\u5f53\u7f51\u7edc\u4e0d\u597d\u65f6\uff0c\u5361\u987f\u5927\u3002<\/p>\r\n<p>rdesktop 192.168.50.118 -u zhankun -p LPjj1234 -z -a 16 -x lan -r clipboard -g 1920x1050+0+0 -r sound:local -r disk:share=\/home\/lyp\/zk_share<\/p>\r\n<p>3\uff09\u5411\u65e5\u8475\uff1a\u9ed1\u5c4f\u94fe\u63a5\u5931\u8d25\u65f6\uff0c\u8bd5\u7740\u5378\u8f7d\u540e\u91cd\u65b0\u5b89\u88c5\uff0c\u6216\u8005\u91c7\u7528\u7cfb\u7edf\u7684\u53f3\u952e\u83dc\u5355\u5b89\u88c5\u3002\u901f\u5ea6\u6bd4\u8f83\u6d41\u7545\uff0c\u4f46\u65e0\u6cd5\u4f7f\u7528\u526a\u5207\u677f\u3002<\/p>\r\n<p><strong>28. \uff35bunt\u548c\uff37indow\u7684\u65f6\u949f\u76f8\u5dee8\u5c0f\u65f6<\/strong><\/p>\r\n<p>\u5728Ubuntu\u4e0b\u8f93\u5165\u547d\u4ee4\uff1asudo timedatectl set-local-rtc 1<br \/>\u7136\u540e\u5728Win 7\u4e0b\u5c06\u65f6\u95f4\u8c03\u51c6\u786e\u5373\u53ef<\/p>\r\n<p><strong>29. \u5b89\u88c5java\u73af\u5883<\/strong><\/p>\r\n<p>apt-get update<\/p>\r\n<p>sudo apt install default-jdk<\/p>\r\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u67e5\u770bjava\u7248\u672c\uff1a<\/p>\r\n<p>javac --version<\/p>\r\n<p>Java\u7f16\u8bd1\uff0c\u751f\u6210.class\u6587\u4ef6<\/p>\r\n<p>javac FinalShell.java<\/p>\r\n<p>\u6ce8\u610f\u6587\u4ef6\u540d\u548cClass\u540d\u79f0\u4fdd\u6301\u4e00\u76f4\u3002<\/p>\r\n<p>\u8fd0\u884c\u7a0b\u5e8f(\u4e0d\u52a0.class\u540e\u7f00\u540d)\uff1a<\/p>\r\n<p>java FinalShell<\/p>\r\n<p><strong>30.\u3000\u5236\u4f5cUbuntu to Go\u79fb\u52a8\u786c\u76d8<\/strong><\/p>\r\n<p>\u5efa\u8bae\u7528\u6700\u65b0\u7684\u79fb\u52a8\u56fa\u6001\u786c\u76d8\uff0c\u4e0d\u5efa\u8bae\u7528\uff35\u76d8\uff0c\u4e0d\u7a33\u5b9a\u800c\u4e14\u4f1a\u51fa\u73b0\u5f88\u591a\u5947\u602a\u7684\u9519\u8bef\uff0c\u8981\u7528USB3.0\u63a5\u53e3\u8005\u8fd9\u6837\u901f\u5ea6\u5feb\u3002<\/p>\r\n<p>\u9996\u5148\uff0c\u7528\uff35\u76d8\u5236\u4f5cUbuntu\u542f\u52a8\u76d8\u3002\u5728Ubuntu\u5b98\u7f51\u4e0b\u8f7d.iso\u6587\u4ef6\uff0c\u6700\u597d\u662f20.0\u4ee5\u4e0a\u3002\u5236\u4f5c\u5de5\u5177\u7528rufus\u3002<\/p>\r\n<p>\u7136\u540e\uff0c\u8fdb\u5165\u7535\u8111Bios\u8bbe\u7f6e\u6210U\u76d8\u542f\u52a8\uff0c\u9009\u62e9Try and Install\u3002<\/p>\r\n<p>\u6ce8\u610f\u9009\u62e9\u624b\u52a8\u5206\u533a\uff1a<\/p>\r\n<p>EFI\uff1a500M\uff0c<\/p>\r\n<p>Boot\uff1a2G\uff0cext4\uff0c\/boot<\/p>\r\n<p>\u7cfb\u7edf\uff1a50G\uff0cext4\uff0c\/<\/p>\r\n<p>Home\uff1a100G\uff0cext4\uff0c\/<\/p>\r\n<p>\u6ce8\u610f:ubuntu\u6700\u591a4\u4e2aPrimary\u5206\u533a\uff0c\u4e0d\u8981\u591a\uff0c\u5269\u4e0b\u7684\u9009\u62e9\u903b\u8f91\u5206\u533a\uff0c\u8fd9\u6837\u5c31\u6ca1\u6709\u5206\u533a\u7684\u9650\u5236\u3002<\/p>\r\n<p>\u5176\u4f59\u7a7a\u95f4\u53ef\u4ee5\u81ea\u5df1\u5b9a\u4e49\u3002<\/p>\r\n<p>\u6b63\u5e38\u5b89\u88c5\u5373\u53ef\uff0c\u6bcf\u6b21\u63d2\u5165\u65b0\u7535\u8111\uff0c\u8bb0\u5f97\u8fdb\u5165Bios\u8bbe\u7f6e\u6210Ubuntu\u542f\u52a8\u3002<\/p>\r\n<p>Window 10\u9700\u8981\u7981\u7528\u5feb\u901f\u542f\u52a8\uff0c\u5426\u5219\u65e0\u6cd5\u8fdb\u5165Bios\u3002<\/p>\r\n<p>\u8bbe\u7f6e\u65b9\u6cd5\uff1a<\/p>\r\n<p><strong>1\uff09\u70b9\u51fb\u7cfb\u7edf\uff0c<\/strong>\u6253\u5f00\u7535\u8111\u8bbe\u7f6e\uff0c\u70b9\u51fb\u7cfb\u7edf\u3002<\/p>\r\n<p>2\uff09\u70b9\u51fb\u7a97\u53e3\u5de6\u8fb9\u7684\u7535\u6e90\u548c\u7761\u7720\u3002<\/p>\r\n<p>3\uff09\u70b9\u51fb\u7a97\u53e3\u53f3\u8fb9\u7684\u5176\u4ed6\u7535\u6e90\u8bbe\u7f6e<\/p>\r\n<p>4\uff09\u70b9\u51fb\u9009\u62e9\u7535\u6e90\u6309\u94ae\u7684\u529f\u80fd\u3002<\/p>\r\n<p>5\uff09\u70b9\u51fb\u53d6\u6d88\u5feb\u901f\u542f\u52a8\u9009\u9879\u5373\u53ef\u3002\u8bbe\u7f6e\u9009\u9879\u662f\u7070\u8272\u7684\uff0c\u65e0\u6cd5\u66f4\u6539\u8bbe\u7f6e\u3002\u8fd9\u65f6\u5019\u600e\u4e48\u529e\uff1f\u5f88\u7b80\u5355\uff0c\u53ea\u8981\u70b9\u51fb\u4e0a\u65b9\u84dd\u8272\u5b57\u4f53\u7684\u201c<strong>\u66f4\u6539\u5f53\u524d\u4e0d\u53ef\u7528\u7684\u8bbe\u7f6e<\/strong>\u201d\u9009\u9879\u3002\u7b2c\u56db\u6b65\uff1a\u6253\u5f00\u66f4\u6539\u5f53\u524d\u4e0d\u53ef\u7528\u7684\u8bbe\u7f6e\u540e\uff0c\u5728\u201c<strong>\u5173\u673a\u8bbe\u7f6e<\/strong>\u201d\u4e0b\u65b9\uff0c\u5c31\u53ef\u4ee5\u5bf9\u5feb\u901f\u542f\u52a8\u8fdb\u884c\u5f00\u542f\u6216\u8005\u5173\u95ed\u64cd\u4f5c\u4e86\uff0c\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u5e95\u90e8\u7684\u201c<strong>\u4fdd\u5b58\u4fee\u6539<\/strong>\u201d\u5c31\u597d\u4e86\u3002<\/p>\r\n<p><strong>31. Setting GUI can't display<\/strong><\/p>\r\n<p>xrandr --size 800x600<br \/>xrandr --size 800x600<br \/>xrandr --size 1366x768<\/p>\r\n<p>Display Mode-&gt;Single Dispaly-&gt;Apply<\/p>\r\n<p><strong>32. \u5b89\u88c5Stellarium<\/strong><\/p>\r\n<p>1. \u8fdb\u5165\u7535\u8111\u7684ubuntu\u7cfb\u7edf\u3002<\/p>\r\n<p>2. \u5728\u684c\u9762\u53f3\u952e\uff0c\u70b9\u51fb\u8fdb\u5165\u7ec8\u7aef\u3002<\/p>\r\n<p>3. \u4f9d\u6b21\u8f93\u5165\u4e0b\u9762\u4e09\u53e5\u6307\u4ee4\uff1a<\/p>\r\n<p>sudo add-apt-repository ppa:stellarium\/stellarium-releases<\/p>\r\n<p>sudo apt update<\/p>\r\n<p>sudo apt install stellarium<\/p>\r\n<p>4. \u5982\u679c\u63d0\u793a\u9700\u8981\u8f93\u5165\u672c\u8bbe\u5907\u7684\u5bc6\u7801\uff0c\u76f4\u63a5\u8f93\u5165\u5bc6\u7801\u5373\u53ef\uff1b\u5982\u679c\u63d0\u793a\u9700\u8981\u8f93\u5165Y\/n\u7ee7\u7eed\u6267\u884c\u5b89\u88c5\u6b65\u9aa4\uff0c\u76f4\u63a5\u8f93\u5165y\u5373\u53ef\u3002<\/p>\r\n<p>5. \u5982\u82e5\u8fd0\u884c\u8be5\u8f6f\u4ef6\uff0c\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\uff1a<\/p>\r\n<p>stellarium<\/p>\r\n<p>6. \u5982\u82e5\u5378\u8f7d\u8be5\u8f6f\u4ef6\uff0c\u8bf7\u8f93\u5165\u5982\u4e0b\u6307\u4ee4\uff1a<\/p>\r\n<p>sudo apt-get remove --autoremove stellarium\u00a0<\/p>\r\n<p>33. \u5173\u95ed\u5185\u90e8\u9519\u8bef\u4fe1\u606f\u63d0\u793a<\/p>\r\n<p>\u5173\u95ed\u670d\u52a1\uff0c\u5982\u679c\u542f\u7528\u5219\u6539\u4e3a0<\/p>\r\n<p>sudo service apport start force_start=1<\/p>\r\n<p>\u5f7b\u5e95\u5378\u8f7d\uff1a<\/p>\r\n<p>sudo apt purge apport<\/p>\r\n<p><strong>34.\u5b89\u88c5\u519c\u5386\u65e5\u5386\uff08\u4e91\u65e5\u5386\uff09<\/strong><\/p>\r\n<p>1.\u4e0b\u8f7d\u00a0<\/p>\r\n<p>wget https:\/\/d.ruanmei.com\/mytime\/linux\/mytime_linux_1.02_amd64.deb<\/p>\r\n<p>2.\u5b89\u88c5<\/p>\r\n<p>sudo dpkg -i mytime_linux_1.02_amd64.deb<\/p>\r\n<p>3.\u5378\u8f7d<\/p>\r\n<p>dpkp -P \u7a0b\u5e8f\u7684\u540d\u79f0<\/p>\r\n<p><strong>35.\u5b89\u88c5skychart<\/strong><\/p>\r\n<pre class=\"code\">bash &lt;(wget -qO- https:\/\/raw.githubusercontent.com\/pchev\/skychart\/master\/setup_skychart_deb.sh) <\/pre>\r\n<pre class=\"code\">sudo apt update<\/pre>\r\n<pre class=\"code\">sudo apt install --no-install-recommends skychart<\/pre>\r\n<pre class=\"code\">sudo apt-get install skychart-data-stars skychart-data-dso skychart-data-pictures<\/pre>\r\n<p><strong>36.\u8d85\u5f3a\u5378\u8f7d\u5de5\u5177Stacer<\/strong><\/p>\r\n<p>sudo add-apt-repository ppa:oguzhaninan\/stacer -y<\/p>\r\n<p>sudo apt-get update<\/p>\r\n<p>sudo apt-get install stacer -y<\/p>\r\n<p><strong>37.Windows\u548cUbuntu\u53cc\u7cfb\u7edf\u5b89\u88c5\u65b9\u6cd5<\/strong><\/p>\r\n<p><a href=\"https:\/\/blog.csdn.net\/sixiwanzi100\/article\/details\/107401675?spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-107401675-blog-124953661.pc_relevant_3mothn_strategy_recovery&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-3-107401675-blog-124953661.pc_relevant_3mothn_strategy_recovery&amp;utm_relevant_index=6\" target=\"_blank\" rel=\"noopener\">\u53cc\u7cfb\u7edf\u65b9\u6cd5<\/a><\/p>\r\n<p><strong>38. SSH\u94fe\u63a5\u670d\u52a1\u5668\u4e0d\u663e\u793a\u7cfb\u7edf\u4fe1\u606f<\/strong><\/p>\r\n<p>\u663e\u793aSystem information disabled due to load higher than 2.0\u3002<\/p>\r\n<p>\u65b9\u6cd51\uff1a\u76f4\u63a5\u8fd0\u884c<\/p>\r\n<blockquote>\r\n<p>landscape-sysinfo<\/p>\r\n<\/blockquote>\r\n<p>\u65b9\u6cd52\uff1a\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\r\n<blockquote>\r\n<p>nano \/usr\/share\/landscape\/landscape-sysinfo.wrapper<\/p>\r\n<\/blockquote>\r\n<p>\u5728if\u524d\u9762\u589e\u52a0sleep 1\uff0c\u5ef6\u65f6\u4e00\u79d2\u949f\uff0c\u907f\u514d\u4efb\u52a1\u51b2\u7a81\u5373\u53ef\u3002\u5982\u679c\u8fd8\u4e0d\u591f\uff0c\u589e\u52a0\u65f6\u95f4\uff0c\u6216\u8005\u53bb\u6389if else fi\u8bed\u53e5\u3002<\/p>\r\n<p><img data-dominant-color=\"0c0c0a\" data-has-transparency=\"true\" style=\"--dominant-color: #0c0c0a;\" loading=\"lazy\" width=\"1013\" height=\"434\" class=\"has-transparency alignnone wp-image-1476 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-9.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-9.png 1013w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-9-300x129.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-9-768x329.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-9-220x94.png 220w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/p>\r\n<p><strong>39. \u4f7f\u7528Thunderbird\u6536\u53d6163\u90ae\u7bb1<\/strong><\/p>\r\n<p>1 . 163\u90ae\u7bb1\u7aef\u64cd\u4f5c<\/p>\r\n<p>\u9996\u5148\u5728\u6d4f\u89c8\u5668\u4e0a\u767b\u5f55\u4f60\u7684163\u90ae\u7bb1,\u70b9\u51fb\u8bbe\u7f6e,\u9009\u62e9\"POP3\/SMTP\/IMAP\"\uff0c\u786e\u8ba4\u670d\u52a1\u5f00\u542f<\/p>\r\n<p>2.\u65b0\u589e\u767b\u5f55\u8bbe\u5907,\u5e76\u4fdd\u5b58\u6388\u6743\u7801(\u8fd9\u4e2a\u6388\u6743\u7801\u662f\u540e\u9762\u5728\u5ba2\u6237\u7aef\u4e0a\u767b\u5f55163\u90ae\u7bb1\u8981\u7528\u7684\u5bc6\u7801)<\/p>\r\n<p>3.\u8bbe\u7f6eThunderbird\u670d\u52a1\u5668<\/p>\r\n<p><strong>\u63a5\u6536\u7aef<\/strong>\uff1apop.163.com<\/p>\r\n<p>\u7aef\u53e3\uff1a995<\/p>\r\n<p>\u8fde\u63a5\u5b89\u5168\uff1aSSL\/TLS<\/p>\r\n<p>\u9a8c\u8bc1\u65b9\u5f0f\uff1a\u666e\u901a\u5bc6\u7801<\/p>\r\n<p><strong>\u53d1\u9001\u7aef<\/strong>\uff1asmtp.163.com<\/p>\r\n<p>\u7aef\u53e3\uff1a465<\/p>\r\n<p>\u8fde\u63a5\u5b89\u5168\uff1aSSL\/TLS<\/p>\r\n<p>\u9a8c\u8bc1\u65b9\u5f0f\uff1a\u666e\u901a\u5bc6\u7801<\/p>\r\n<p>QQ\u90ae\u7bb1\u4e5f\u7c7b\u4f3c\uff0c\u4ece\u7f51\u9875\u7248\u5f00\u542fpop3\u529f\u80fd\uff0c\u83b7\u5f97\u5bc6\u7801\u3002\u53ea\u4e0d\u8fc7\u7f51\u6613\u90ae\u7bb1\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u5bc6\u7801\uff0c\u800cQQ\u90ae\u7bb1\u53ea\u80fd\u8bbe\u4e00\u4e2a\u3002<\/p>\r\n<p><strong>40.\u5b89\u88c5\u5fae\u4fe1<\/strong><\/p>\r\n<p>\u4e0b\u8f7d\u4f18\u9e92\u9e9f\u5fae\u4fe1\uff1a<\/p>\r\n<p>https:\/\/www.ubuntukylin.com\/applications\/106-cn.html<\/p>\r\n<p>sudo dpkg -i weixin*.deb<\/p>\r\n<p>\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\uff0c\u552f\u4e00\u7684\u95ee\u9898\u662f\u7a0b\u5e8f\u7684\u540d\u79f0\u662funnamed\u3002<\/p>\r\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\r\n<p>cd \/usr\/share\/applications<\/p>\r\n<p>nano weixin.desktop<\/p>\r\n<p>\u4fee\u6539\u5982\u4e0b\uff0c\u53bb\u6389\u4e2d\u6587\uff0c\u6539\u4e3aUTF-8<br \/>[Desktop Entry]<br \/>Name=weixin<br \/>Exec=\/opt\/weixin\/weixin %U<br \/>Terminal=false<br \/>Type=Application<br \/>Icon=weixin<br \/>StartupWMClass=weixin<br \/>Comment=weixin<br \/>Encoding=UTF-8<br \/>Categories=Utility;<\/p>\r\n<p><strong>41. \u684c\u9762\u4fbf\u7b3a\u8f6f\u4ef6Knotes<\/strong><\/p>\r\n<p>sudo apt install knotes<\/p>\r\n<p>\u5b89\u88c5\u8fc7\u7a0b\u7a0d\u957f\uff0c\u6ca1\u6709\u6309\u94ae\uff0c\u754c\u9762\u7b80\u6d01\u3002<\/p>\r\n<p>\u53e6\u5916\u91c7\u7528\u6807\u9898+\u5185\u5bb9\u7684\u65b9\u5f0f\uff0c\u6709\u5229\u4e8e\u6574\u7406\u601d\u8def\u3002<\/p>\r\n<p><strong>42. \u622a\u56fe\u5feb\u6377\u952e<\/strong><\/p>\r\n<p>\u5728\u8bbe\u7f6e-\u300b\u952e\u76d8\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u622a\u56fe\u5230\u526a\u5207\u677f\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u622a\u56fe\u5230\u6587\u4ef6\uff0c\u4fdd\u5b58\u5728\/home\/pictures\u76ee\u5f55\u4e0b\u3002<\/p>\r\n<p><img data-dominant-color=\"f4edeb\" data-has-transparency=\"true\" style=\"--dominant-color: #f4edeb;\" loading=\"lazy\" width=\"1734\" height=\"568\" class=\"has-transparency alignnone wp-image-1485 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10.png 1734w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10-300x98.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10-1024x335.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10-768x252.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10-1536x503.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-10-220x72.png 220w\" sizes=\"(max-width: 1734px) 100vw, 1734px\" \/><\/p>\r\n<p><strong>43.\u5b89\u88c5\u817e\u8baf\u4f1a\u8bae<\/strong><\/p>\r\n<p>\u4e0b\u8f7d\u5b89\u88c5\u6587\u4ef6<\/p>\r\n<p>https:\/\/updatecdn.meeting.qq.com\/cos\/9b74d4127a16a011db8cb6300fa5fbc9\/TencentMeeting_0300000000_3.11.0.402_x86_64_default.publish.deb<\/p>\r\n<p>\u5b89\u88c5\uff1a<\/p>\r\n<p>dpkg -i Tencent*.deb<\/p>\r\n<p><img data-dominant-color=\"e7f0fb\" data-has-transparency=\"true\" style=\"--dominant-color: #e7f0fb;\" loading=\"lazy\" class=\"has-transparency alignnone wp-image-1488 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-11.png\" width=\"352\" height=\"658\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-11.png 748w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-11-161x300.png 161w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-11-548x1024.png 548w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-11-80x150.png 80w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/p>\r\n<p><strong>44. Filezilla\u76ee\u5f55\u4e71\u7801<\/strong><\/p>\r\n<p>\u4e3a\u4e86\u89e3\u51b3FileZilla\u4f20\u8f93\u6587\u4ef6\u4e2d\u6587\u4e71\u7801\u7684\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u5728FileZilla\u7684\u9876\u90e8\u83dc\u5355\u680f\uff0c\u9009\u62e9\u201c\u6587\u4ef6\u201d\uff0c\u70b9\u51fb\u201c\u7ad9\u70b9\u7ba1\u7406\u5668\u201d\uff0c\u7136\u540e\u5728\u5f39\u51fa\u7684\u7ad9\u70b9\u7ba1\u7406\u5668\u5bf9\u8bdd\u6846\uff0c\u5de6\u952e\u5355\u51fb\u51fa\u73b0\u4e71\u7801\u7684\u7ad9\u70b9\u3002<\/p>\r\n<p>\u5b57\u7b26\u96c6\u680f\u4e2d\uff0c\u9009\u62e9\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5b57\u7b26\u96c6\uff08C\uff09\uff0c\u5728\u7f16\u7801\uff08E\uff09\u5bf9\u5e94\u7684\u6587\u672c\u6846\u4e2d\u8f93\u5165gb2312\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5982\u679c\u8fd8\u6709\u4e71\u7801\uff0c\u8bd5\u8bd5\u5176\u4ed6\u7684\u7f16\u7801\uff0c\u6bd4\u5982gb18030<\/p>\r\n<p><span style=\"color: #ff0000;\">Window\u7cfb\u7edf\u53ef\u4ee5\u4f7f\u7528Ftpserver\u914d\u5408Netbird\u8f6f\u4ef6\u5b9e\u73b0\u5185\u7f51\u7a7f\u900f\uff0c\u5229\u7528Filezilla\u8fdc\u7a0b\u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff0c\u975e\u5e38\u65b9\u4fbf\u3002<\/span><\/p>\r\n<p><img data-dominant-color=\"f0efee\" data-has-transparency=\"true\" style=\"--dominant-color: #f0efee;\" loading=\"lazy\" width=\"1800\" height=\"1214\" class=\"has-transparency alignnone wp-image-1492 size-full\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12.png\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12.png 1800w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12-300x202.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12-1024x691.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12-768x518.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12-1536x1036.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Pasted-12-220x148.png 220w\" sizes=\"(max-width: 1800px) 100vw, 1800px\" \/><\/p>\r\n<p><strong>45\uff09Ubuntu\u548cwindow\u7cfb\u7edf\u5171\u4eab\u6587\u4ef6\u7684\u65b9\u6cd5<\/strong><\/p>\r\n<p>Ubuntu-&gt;\u767e\u5ea6\u7f51\u76d8\/\u4e91\u4e3b\u673a-&gt;window\uff1a\u901f\u5ea6\u76f8\u5bf9\u6bd4\u8f83\u5feb\uff0c\u4f46\u662f\u8981\u8fdc\u7a0b\u64cd\u4f5c\u684c\u9762\uff0c\u62f7\u8d1d\u6587\u4ef6\u5230\u5236\u5b9a\u76ee\u5f55\u3002<\/p>\r\n<p>Ubuntu\uff08Netbird\uff09-&gt;FTP(Filezilla)-&gt;Window(Netbird\/Serv-U)\uff0c\u597d\u5904\u662f\u76f4\u63a5\u5b9e\u65f6\u540c\u6b65\uff0cServ-U\u5728\u6587\u4ef6\u6ca1\u6709\u4e0a\u4f20\u5b8c\u6bd5\u65f6\u4f1a\u9501\u4f4f\u6587\u4ef6\uff0c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u4e0a\u4f20\u5de5\u4f5c\uff0c\u6bd4\u8f83\u7701\u4e8b\u3002<\/p>\r\n<p>Remmina\u53ea\u80fd\u62f7\u8d1d\u5c11\u91cf\u6587\u4ef6\uff0c\u901f\u5ea6\u5f88\u6162\uff0c\u53ef\u4ee5\u505a\u4e34\u65f6\u65b9\u6848\u3002<\/p>\r\n<p><strong>46\uff09\u6e05\u7406\u5de5\u5177Bleachbit<\/strong><\/p>\r\n<p>apt-get install bleachbit<\/p>\r\n<p><img data-dominant-color=\"383838\" data-has-transparency=\"true\" style=\"--dominant-color: #383838;\" loading=\"lazy\" class=\"has-transparency alignnone wp-image-1502 \" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-1024x840.png\" alt=\"\" width=\"635\" height=\"521\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-1024x840.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-300x246.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-768x630.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-1536x1260.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45-183x150.png 183w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-14-39-45.png 1704w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/p>\r\n<p><strong>47\uff09\u8f7b\u91cf\u5316\u56fe\u7247\u4fee\u6539\u548c\u67e5\u770b\u5de5\u5177gThumb<\/strong><\/p>\r\n<p>apt update<\/p>\r\n<p>apt install gthumb<\/p>\r\n<p><img data-dominant-color=\"4b615f\" data-has-transparency=\"false\" style=\"--dominant-color: #4b615f;\" loading=\"lazy\" class=\"not-transparent alignnone wp-image-1500 size-large\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58-1024x576.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58-300x169.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58-768x432.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58-220x124.png 220w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2022\/11\/Screenshot-from-2022-11-17-14-29-58.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n<p><strong>48\uff09\u4fee\u6539\u9ed8\u8ba4\u7684\u56fe\u7247\u6253\u5f00\u7a0b\u5e8f<\/strong><\/p>\r\n<p><a href=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10.png\"><img data-dominant-color=\"eceaea\" data-has-transparency=\"true\" style=\"--dominant-color: #eceaea;\" loading=\"lazy\" class=\"has-transparency alignnone size-large wp-image-1505\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-1024x862.png\" alt=\"\" width=\"1024\" height=\"862\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-1024x862.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-300x253.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-768x647.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-1536x1293.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-2048x1725.png 2048w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-17-19-05-10-178x150.png 178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\r\n<p><strong>49\uff09\u7cfb\u7edf\u6e05\u7406\u5de5\u5177Bleachbit<\/strong><\/p>\r\n<p>\u4e0b\u8f7d\u5bf9\u5e94\u7684\u7248\u672c<\/p>\r\n<p>https:\/\/www.bleachbit.org\/download\/linux<\/p>\r\n<p>wget https:\/\/download.bleachbit.org\/bleachbit_4.4.2-0_all_ubuntu2004.deb<\/p>\r\n<p>dpkg -i bleachbit*.deb<\/p>\r\n<p><a href=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18.png\"><img data-dominant-color=\"434343\" data-has-transparency=\"true\" style=\"--dominant-color: #434343;\" loading=\"lazy\" class=\"has-transparency alignnone  wp-image-1507\" src=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-1024x840.png\" alt=\"\" width=\"741\" height=\"608\" srcset=\"http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-1024x840.png 1024w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-300x246.png 300w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-768x630.png 768w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-1536x1260.png 1536w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18-183x150.png 183w, http:\/\/stargazer.org.cn\/blog\/wp-content\/uploads\/2021\/08\/Screenshot-from-2022-11-18-09-12-18.png 1704w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/a><\/p>\r\n<p><strong>49)\u589e\u52a0\u4ea4\u6362\u5206\u533a\u63d0\u5347\u901f\u5ea6<\/strong><\/p>\r\n<p>\u6269\u5927\u4ea4\u6362\u7a7a\u95f4:<br \/>\u5148\u7528free -m\u67e5\u770b\u5f53\u524d\u5206\u533a\u60c5\u51b5,swap\u5206\u533a\u663e\u793a\u4e3a0<\/p>\r\n<blockquote>\r\n<p>free -m<\/p>\r\n<\/blockquote>\r\n<p>\u8bbe\u7f6e\u4ea4\u6362\u6587\u4ef6\uff0c\u4e00\u822c\u4e3a\u5185\u5b58\u76842\u500d\uff0c\u4ee52G\u5185\u5b58\u4e3a\u4f8b\uff0c\u4ea4\u6362\u5206\u533a\u4e3a4G\u6bd4\u8f83\u5408\u9002\u3002<\/p>\r\n<blockquote>\r\n<p>dd if=\/dev\/zero of=\/root\/swap bs=2K count=2M<\/p>\r\n<\/blockquote>\r\n<p>\u628a\u8fd9\u4e2a\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u4ea4\u6362\u5206\u533a\u6587\u4ef6<\/p>\r\n<blockquote>\r\n<p>mkswap \/root\/swap<\/p>\r\n<\/blockquote>\r\n<p>\u4fee\u6539\u6587\u4ef6\u6743\u9650\u4e3a600<\/p>\r\n<blockquote>\r\n<p>chmod 600 \/root\/swap<\/p>\r\n<\/blockquote>\r\n<p>\u542f\u7528\u4ea4\u6362\u5206\u533a\u6587\u4ef6<\/p>\r\n<blockquote>\r\n<p>swapon \/root\/swap<\/p>\r\n<\/blockquote>\r\n<p>\u5f00\u673a\u81ea\u542f\u52a8<br \/>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\uff0c\u9700\u4fee\u6539\u4fee\u6539\u6587\u4ef6\/etc\/fstab \uff0c\u5728\u6700\u540e\u6dfb\u52a0\u4e00\u884c \/root\/swap swap swap defaults 0 0<br \/>nano \/etc\/fstab<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>\u5220\u9664swap\u5206\u533a<\/p>\r\n<blockquote>\r\n<p>swapoff \/root\/swap<br \/>rm -f \/root\/swap<\/p>\r\n<\/blockquote>\r\n<p>&nbsp;<\/p><p class=\"post-copyright\">\u672a\u7ecf\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\uff1a<a href=\"http:\/\/stargazer.org.cn\/blog\">\u5de1\u661f\u4eba<\/a> &raquo; <a href=\"http:\/\/stargazer.org.cn\/blog\/?p=1261\">Ubuntu\u76f8\u5173\u4f7f\u7528\u547d\u4ee4\u4ecb\u7ecd<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>1. \u5907\u4efd\u548c\u6062\u590d\u7cfb\u7edf \u7cfb\u7edf\u6839\u76ee\u5f55\uff1acd \/\u5907\u4efd\u7cfb\u7edf\uff1atar cvpzf backup.tar.gz --exclude=\/proc --exclude=\/lost+found --exclude=\/backup.tar.gz --exclu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1263,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1261"}],"collection":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1261"}],"version-history":[{"count":0,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1261\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=\/wp\/v2\/media\/1263"}],"wp:attachment":[{"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1261"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stargazer.org.cn\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}