{"id":1899,"date":"2025-12-17T09:58:01","date_gmt":"2025-12-17T09:58:01","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=1899"},"modified":"2025-12-18T15:42:38","modified_gmt":"2025-12-18T15:42:38","slug":"%d0%b4%d0%be%d0%bc%d0%b0%d1%88%d0%bd%d0%b8%d0%b9-%d1%80%d0%b5%d0%bf%d0%be%d0%b7%d0%b8%d1%82%d0%be%d1%80%d0%b8%d0%b9","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=1899","title":{"rendered":"\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439"},"content":{"rendered":"\n<p>\u041f\u0430\u043a\u0435\u0442 <code>apt-mirror<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Debian\/Ubuntu. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0444\u0430\u0439\u043b <code>\/etc\/apt\/mirror.list<\/code>, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>apt-mirror<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0432 <code>sources.list<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcd8 \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e <code>apt-mirror<\/code><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u0430<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install apt-mirror<\/code><\/pre>\n\n\n\n<p><code>apt-mirror<\/code> \u2014 \u044d\u0442\u043e Perl\u2011\u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 <a href=\"https:\/\/help.ubuntu.ru\/wiki\/apt-mirror\">\u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Ubuntu<\/a> <a href=\"https:\/\/sysadminium.ru\/local_mirror_linux_repository-apt_mirror\/\">sysadminium.ru<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/h3>\n\n\n\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: <code>\/etc\/apt\/mirror.list<\/code>.<\/p>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n############# config ##################\nset base_path    \/home\/alex\/HDD_4Tb\/BaseSoft\/SystemUtils\/Debian_12\nset mirror_path  $base_path\/mirror\nset skel_path    $base_path\/skel\nset var_path     $base_path\/var\nset cleanscript  $var_path\/clean.sh\nset defaultarch  amd64\nset nthreads     20\nset _tilde 0\n############# end config ##############\n\n# \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Debian\ndeb http:\/\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware\ndeb-src http:\/\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware\n\n# \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f Bookworm\ndeb http:\/\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware\ndeb-src http:\/\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware\n\n# \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438\ndeb http:\/\/security.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware\ndeb-src http:\/\/security.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware\n\n# Backports (\u043d\u043e\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432)\ndeb http:\/\/deb.debian.org\/debian bookworm-backports main contrib non-free non-free-firmware\ndeb-src http:\/\/deb.debian.org\/debian bookworm-backports main contrib non-free non-free-firmware\n\n# \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0438 \u043c\u0430\u043d\u0443\u0430\u043b\u044b\n# deb http:\/\/deb.debian.org\/debian bookworm-doc main\n# deb-src http:\/\/deb.debian.org\/debian bookworm-doc main\n\n# \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432\nclean http:\/\/deb.debian.org\/debian\nclean http:\/\/security.debian.org\/debian-security<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>set base_path<\/code><\/strong> \u2014 \u043a\u0443\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u043e.<\/li>\n\n\n\n<li><strong><code>set defaultarch<\/code><\/strong> \u2014 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>amd64<\/code>).<\/li>\n\n\n\n<li><strong><code>deb<\/code> \u0441\u0442\u0440\u043e\u043a\u0438<\/strong> \u2014 \u0430\u043d\u0430\u043b\u043e\u0433 <code>sources.list<\/code>, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442, \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/li>\n\n\n\n<li><strong><code>clean<\/code><\/strong> \u2014 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u0417\u0430\u043f\u0443\u0441\u043a \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-mirror<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u0430\u043a\u0435\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u0430\u0447\u0430\u043d\u044b \u0432 <code>$base_path\/mirror<\/code>.<\/li>\n\n\n\n<li>\u041b\u043e\u0433\u0438 \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u2014 \u0432 <code>$base_path\/var<\/code>.<\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0447\u0430\u0441\u044b \u0438 \u0441\u043e\u0442\u043d\u0438 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 <a href=\"https:\/\/help.ubuntu.ru\/wiki\/apt-mirror\">\u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Ubuntu<\/a> <a href=\"https:\/\/habr.com\/ru\/articles\/110444\/\">Habr<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439<\/h3>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0432 <code>cron<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo crontab -e<\/code><\/pre>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 3 * * * \/usr\/bin\/apt-mirror &gt; \/srv\/apt-mirror\/var\/cron.log<\/code><\/pre>\n\n\n\n<p>\u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 3:00 \u043d\u043e\u0447\u0438 <a href=\"https:\/\/help.ubuntu.ru\/wiki\/apt-mirror\">\u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Ubuntu<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430<\/h3>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 <code>\/etc\/apt\/sources.list<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb file:\/srv\/apt-mirror\/mirror\/deb.debian.org\/debian bookworm main\ndeb file:\/srv\/apt-mirror\/mirror\/security.debian.org\/debian-security bookworm-security main<\/code><\/pre>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u0438 \u0438\u043d\u0434\u0435\u043a\u0441:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041c\u043e\u0436\u043d\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440<\/strong> (amd64, i386 \u0438 \u0434\u0440.), \u043d\u043e \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440.<\/li>\n\n\n\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f <strong>\u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430<\/strong> (<code>set nthreads<\/code>).<\/li>\n\n\n\n<li>\u041c\u043e\u0436\u043d\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0447\u0435\u0440\u0435\u0437 <strong>Apache\/Nginx<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u0441\u0435\u0442\u0438.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u2705 <strong>\u0418\u0442\u043e\u0433\u043e:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438 <code>apt-mirror<\/code>.<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439 <code>mirror.list<\/code>.<\/li>\n\n\n\n<li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438 <code>apt-mirror<\/code>.<\/li>\n\n\n\n<li>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0432 <code>sources.list<\/code>.<\/li>\n\n\n\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 <code>cron<\/code>.<\/li>\n<\/ol>\n\n\n\n<p>\u042d\u0442\u043e \u0434\u0430\u0441\u0442 \u0442\u0435\u0431\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u043e\u0444\u043b\u0430\u0439\u043d\u2011\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0434\u043b\u044f Debian\/Ubuntu.<\/p>\n\n\n\n<p>\u0425\u043e\u0447\u0435\u0448\u044c, \u044f \u0441\u043e\u0431\u0435\u0440\u0443 \u0434\u043b\u044f \u0442\u0435\u0431\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 <code>mirror.list<\/code> \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434 <strong>Ubuntu 22.04 LTS amd64<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c?<\/p>\n\n\n\n<p>Sources: <a href=\"https:\/\/help.ubuntu.ru\/wiki\/apt-mirror\">\u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e Ubuntu<\/a> <a href=\"https:\/\/habr.com\/ru\/articles\/110444\/\">Habr<\/a> <a href=\"https:\/\/sysadminium.ru\/local_mirror_linux_repository-apt_mirror\/\">sysadminium.ru<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<\/p>\n<\/blockquote>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0432\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <strong>\u043f\u043e \u0441\u0435\u0442\u0438 (\u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e LAN)<\/strong>, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP\u2011\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0421\u0430\u043c <code>apt-mirror<\/code> \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u043a\u0435\u0442\u044b, \u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0432\u0435\u0431\u2011\u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd27 \u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438 \u0432\u0435\u0431\u2011\u0441\u0435\u0440\u0432\u0435\u0440<\/h3>\n\n\n\n<p>\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u2014 Apache \u0438\u043b\u0438 Nginx:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apache2<\/code><\/pre>\n\n\n\n<p>\u0438\u043b\u0438<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u0421\u043e\u0437\u0434\u0430\u0439 \u0441\u0438\u043c\u043b\u0438\u043d\u043a \u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433<\/h3>\n\n\n\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0442\u0432\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043b\u0435\u0436\u0438\u0442 \u0432:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/home\/alex\/HDD_4Tb\/BaseSoft\/SystemUtils\/Debian_12\/mirror\/<\/code><\/pre>\n\n\n\n<p>\u0414\u043b\u044f Apache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ln -s \/home\/alex\/HDD_4Tb\/BaseSoft\/SystemUtils\/Debian_12\/mirror \/var\/www\/html\/debian<\/code><\/pre>\n\n\n\n<p>\u0414\u043b\u044f Nginx \u2014 \u0434\u043e\u0431\u0430\u0432\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name your-server-domain;\n\n    location \/debian {\n        root \/home\/alex\/HDD_4Tb\/BaseSoft\/SystemUtils\/mirror;\n        autoindex on;\n    }\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u041f\u0440\u043e\u0432\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c<\/h3>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u043e\u0439 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;&lt;\u0442\u0432\u043e\u0439-IP&gt;\/debian\/<\/code><\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0448\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/h3>\n\n\n\n<p>\u0412 <code>\/etc\/apt\/sources.list<\/code> \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb https:\/\/tolerate.ru\/debian\/deb.debian.org\/debian bookworm main contrib non-free non-free-firmware\ndeb https:\/\/tolerate.ru\/debian\/deb.debian.org\/debian bookworm-updates main contrib non-free non-free-firmware\ndeb https:\/\/tolerate.ru\/debian\/security.debian.org\/debian-security bookworm-security main contrib non-free non-free-firmware\ndeb https:\/\/tolerate.ru\/debian\/deb.debian.org\/debian bookworm-backports main contrib non-free non-free-firmware<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u041e\u0431\u043d\u043e\u0432\u0438 \u0438\u043d\u0434\u0435\u043a\u0441<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u26a1 \u0421\u043e\u0432\u0435\u0442\u044b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043e\u0442\u043a\u0440\u043e\u0439 \u043f\u043e\u0440\u0442 80\/443 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f.<\/li>\n\n\n\n<li>\u0414\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c HTTPS (\u0447\u0435\u0440\u0435\u0437 <code>certbot<\/code> \u0438 Let\u2019s Encrypt).<\/li>\n\n\n\n<li>\u0415\u0441\u043b\u0438 \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435, \u043f\u043e\u0434\u0443\u043c\u0430\u0439 \u043e <code>rsync<\/code> \u0438\u043b\u0438 <code>nginx autoindex<\/code> \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-41f4cfa7c99422d203abe8e7b2b0b472\">\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h3>\n\n\n\n<p class=\"has-vivid-green-cyan-color has-text-color has-link-color wp-elements-584fe248289d882e8f30ad8306be9ed2\">\u041a\u0430\u0442\u0430\u043b\u043e\u0433 <code>\/home\/alex<\/code> \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 <code>drwx------<\/code>. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e <strong>\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <\/strong><code>alex<\/code><strong> <\/strong><strong>\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c<\/strong>, \u0430 Apache (<code>www-data<\/code>) \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 <code>\/home\/alex<\/code> \u043a \u0437\u0435\u0440\u043a\u0430\u043b\u0443. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0441\u0430\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0437\u0435\u0440\u043a\u0430\u043b\u0430 (<code>mirror<\/code>) \u043e\u0442\u043a\u0440\u044b\u0442 (<code>drwxr-xr-x<\/code>), \u043f\u0443\u0442\u044c \u0434\u043e \u043d\u0435\u0433\u043e \u0437\u0430\u043a\u0440\u044b\u0442.<\/p>\n\n\n\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0442\u0432\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 HTTP\u2011\u0437\u0435\u0440\u043a\u0430\u043b\u043e, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043a \u043e\u0431\u044b\u0447\u043d\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u2011\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e.<\/p>\n\n\n\n<p>\u0425\u043e\u0447\u0435\u0448\u044c, \u044f \u0434\u0430\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <strong>Apache VirtualHost<\/strong> \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0432\u043e\u0435\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430 Debian?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e apt-mirror: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 mirror.list, \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Debian\/Ubuntu, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 cron \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430<\/p>\n","protected":false},"author":1,"featured_media":1900,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[33],"tags":[248,271,213,273,272,263,270,267,269,268],"class_list":["post-1899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-33","tag-apt-mirror","tag-cron-","tag-debian","tag-linux-","tag-offline-repository","tag-ubuntu","tag-270","tag-267","tag--mirror-list","tag---2"],"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1899"}],"version-history":[{"count":9,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1899\/revisions"}],"predecessor-version":[{"id":1912,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/1899\/revisions\/1912"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/1900"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}