{"id":46047,"date":"2023-04-16T01:27:37","date_gmt":"2023-04-15T17:27:37","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=46047"},"modified":"2023-04-16T01:27:37","modified_gmt":"2023-04-15T17:27:37","slug":"apt-mirror-yum","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/apt-mirror-yum.html","title":{"rendered":"\u4f7f\u7528 APT-mirror \u56db\u6b65\u914d\u7f6e Ubuntu \u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u6211\u4eec\u5c06\u5411\u4f60\u5c55\u793a\u5982\u4f55\u5728\u4f60\u7684 Ubuntu \u4e2a\u4eba\u7535\u8111\u6216 Ubuntu \u670d\u52a1\u5668\u4e2d\uff0c\u76f4\u63a5\u901a\u8fc7 Ubuntu \u5b98\u65b9\u8f6f\u4ef6\u4ed3\u5e93\u6765\u914d\u7f6e\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\u3002\u5728\u4f60\u7684\u7535\u8111\u4e2d\u521b\u5efa\u4e00\u4e2a\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\u6709\u7740\u8bb8\u591a\u7684\u597d\u5904\u3002\u5047\u5982\u4f60\u6709\u8bb8\u591a\u7535\u8111\u9700\u8981\u5b89\u88c5\u8f6f\u4ef6 \u3001\u5b89\u5168\u5347\u7ea7\u548c\u4fee\u590d\u8865\u4e01\uff0c\u90a3\u4e48\u914d\u7f6e\u4e00\u4e2a\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\u662f\u4e00\u4e2a\u505a\u8fd9\u4e9b\u4e8b\u60c5\u7684\u9ad8\u6548\u65b9\u6cd5\u3002\u56e0\u4e3a\uff0c\u6240\u6709\u9700\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u90fd\u53ef\u4ee5\u901a\u8fc7\u5feb\u901f\u7684\u5c40\u57df\u7f51\u8fde\u63a5\u4ece\u4f60\u7684\u672c\u5730\u670d\u52a1\u5668\u4e2d\u4e0b\u8f7d\uff0c\u8fd9\u6837\u53ef\u4ee5\u8282\u7701\u4f60\u7684\u7f51\u7edc\u5e26\u5bbd\uff0c\u964d\u4f4e\u4e92\u8054\u7f51\u63a5\u5165\u7684\u5e74\u5ea6\u5f00\u652f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4ecb\u7ecdAPT-Mirror<\/strong><\/div>\n \u4f60\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5de5\u5177\u5728\u4f60\u7684\u672c\u5730\u4e2a\u4eba\u7535\u8111\u6216\u670d\u52a1\u5668\u4e2d\u914d\u7f6e\u4e00\u4e2a Ubuntu \u7684\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u4f46\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4e3a\u4f60\u4ecb\u7ecd APT-Mirror\u3002\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u628a\u9ed8\u8ba4\u7684\u955c\u50cf\u5305\u955c\u50cf\u5230\u6211\u4eec\u672c\u5730\u7684\u670d\u52a1\u5668\u6216\u4e2a\u4eba\u7535\u8111\u4e2d\uff0c\u5e76\u4e14\u5728\u4f60\u7684\u672c\u5730\u6216\u5916\u7f6e\u786c\u76d8\u4e2d\uff0c\u6211\u4eec\u81f3\u5c11\u9700\u8981 120 GB \u6216\u66f4\u591a\u7684\u53ef\u7528\u7a7a\u95f4\u624d\u884c\u3002 \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4e00\u4e2a HTTP \u6216 FTP \u670d\u52a1\u5668\u6765\u4e0e\u672c\u5730\u7cfb\u7edf\u5ba2\u6237\u7aef\u5171\u4eab\u8fd9\u4e2a\u8f6f\u4ef6\u4ed3\u5e93\u3002<\/p>\n <\/p>\n \n\u6211\u4eec\u9700\u8981\u5b89\u88c5 Apache \u7f51\u7edc\u670d\u52a1\u5668\u548c APT-Mirror \u6765\u4f7f\u5f97\u6211\u4eec\u7684\u5de5\u4f5c\u5f97\u4ee5\u5f00\u59cb\u3002\u4e0b\u9762\u662f\u914d\u7f6e\u4e00\u4e2a\u53ef\u5de5\u4f5c\u7684\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\u7684\u6b65\u9aa4\uff1a\n<\/p>\n 1. \u5b89\u88c5\u9700\u8981\u7684\u8f6f\u4ef6\u5305<\/strong><\/div>\n \u6211\u4eec\u9700\u8981\u4ece Ubuntu \u7684\u516c\u5171\u8f6f\u4ef6\u5305\u4ed3\u5e93\u4e2d\u53d6\u5f97\u6240\u6709\u7684\u8f6f\u4ef6\u5305\uff0c\u7136\u540e\u5728\u6211\u4eec\u672c\u5730\u7684 Ubuntu \u670d\u52a1\u5668\u786c\u76d8\u4e2d\u4fdd\u5b58\u5b83\u4eec\u3002<\/p>\n \u9996\u5148\u6211\u4eec\u5b89\u88c5\u4e00\u4e2aWeb \u670d\u52a1\u5668\u6765\u627f\u8f7d\u6211\u4eec\u7684\u672c\u5730\u8f6f\u4ef6\u4ed3\u5e93\u3002\u8fd9\u91cc\u6211\u4eec\u5c06\u5b89\u88c5 Apache Web \u670d\u52a1\u5668\uff0c\u4f46\u4f60\u53ef\u4ee5\u5b89\u88c5\u4efb\u4f55\u4f60\u4e2d\u610f\u7684 Web \u670d\u52a1\u5668\u3002\u5bf9\u4e8e http \u534f\u8bae\uff0cWeb \u670d\u52a1\u5668\u662f\u5fc5\u987b\u7684\u3002\u5047\u5982\u4f60\u9700\u8981\u914d\u7f6e ftp \u534f\u8bae \u53ca rsync \u534f\u8bae\uff0c\u4f60\u8fd8\u53ef\u4ee5\u518d\u5206\u522b\u989d\u5916\u5b89\u88c5 FTP \u670d\u52a1\u5668\uff0c\u5982 proftpd, vsftpd \u7b49\u7b49 \u548c Rsync \u3002\n<\/p>\n 1.$ sudo apt-get install apache2<\/pre>\n |