{"id":299531,"date":"2020-03-02T09:00:21","date_gmt":"2020-03-02T09:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=299531"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=299531","title":{"rendered":"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 rpm \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Inotify \u0438 webdav"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/490644\/\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 rpm \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 inotify + createrepo. \u0417\u0430\u043b\u0438\u0432\u043a\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 webdav \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f apache httpd. \u041f\u043e\u0447\u0435\u043c\u0443 apache httpd \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u043a\u043e\u043d\u0446\u0443 \u043f\u043e\u0441\u0442\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"itak-reshenie-dolzhno-otvechat-cleduyuschim-trebovaniyam-dlya-organizacii-tolko-rpm-hranilischa\">\u0418\u0442\u0430\u043a, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c c\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u043e\u043b\u044c\u043a\u043e RPM \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430:<\/h3>\n<p>  <\/p>\n<ul>\n<li>\n<p>\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435<\/p>\n<p>  <\/li>\n<li>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u0430 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<p>  <\/li>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0438<\/p>\n<p>  <\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c (high availability)<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h3 id=\"pochemu-ne-sonatype-nexushttpshabrcomrupost473358-ili-pulphttpspulpprojectorg\">\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/473358\/\">SonaType Nexus<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/pulpproject.org\/\">Pulp<\/a>:<\/h3>\n<p>  <\/li>\n<li>\n<p>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/473358\/\">SonaType Nexus<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/pulpproject.org\/\">Pulp<\/a> \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0438\u043f\u043e\u0432 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0442\u043e\u043c\u0443 \u0447\u0442\u043e <a href=\"https:\/\/habr.com\/ru\/post\/473358\/\">SonaType Nexus<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/pulpproject.org\/\">Pulp<\/a> \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043e\u0442\u043a\u0430\u0437\u0430.<\/p>\n<p>  <\/li>\n<li>\n<p>\u0412\u044b\u0441\u043e\u043a\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c (high availability) \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/473358\/\">SonaType Nexus<\/a> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u043e\u0439.<\/p>\n<p>  <\/li>\n<li>\n<p><a href=\"https:\/\/pulpproject.org\/\">Pulp<\/a> \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u044f \u043f\u0435\u0440\u0435\u0443\u0441\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>  <\/li>\n<li>\n<p>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/473358\/\">SonaType Nexus<\/a> \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 blob. \u041f\u0440\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0432\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c blob, \u0435\u0441\u043b\u0438 \u0443 \u0432 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0431\u0435\u043a\u0430\u043f\u0430. \u0423 \u043d\u0430\u0441 \u0431\u044b\u043b\u0430 \u0442\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430: <code>ERROR [ForkJoinPool.commonPool-worker-2] *SYSTEM [com.orientechnologies.orient.core.storage](http:\/\/com.orientechnologies.orient.core.storage\/).fs.OFileClassic - $ANSI{green {db=security}} Error during data read for file 'privilege_5.pcl' 1-th attempt [java.io](http:\/\/java.io\/).IOException: Bad address<\/code>. Blob \u0442\u0430\u043a \u0438 \u043d\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438.<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"ishodnyy-kod\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/h3>\n<p>  <\/p>\n<p>\u2192 \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a href=\"https:\/\/github.com\/patsevanton\/inotify-createrepo\">\u0442\u0443\u0442<\/a><\/p>\n<p>  <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  source \/etc\/inotify-createrepo.conf LOGFILE=\/var\/log\/inotify-createrepo.log  function monitoring() {     inotifywait -e create,delete -msrq --exclude &quot;.repodata|.olddata|repodata&quot; &quot;${REPO}&quot; | while read events      do       echo $events &gt;&gt; $LOGFILE       touch \/tmp\/need_create     done }  function run_createrepo() {   while true; do     if [ -f \/tmp\/need_create ];     then       rm -f \/tmp\/need_create       echo &quot;start createrepo $(date --rfc-3339=seconds)&quot;       \/usr\/bin\/createrepo --update &quot;${REPO}&quot;       echo &quot;finish createrepo $(date --rfc-3339=seconds)&quot;     fi     sleep 1   done }  echo &quot;Start filesystem monitoring: Directory is $REPO, monitor logfile is $LOGFILE&quot; monitoring &gt;&gt; $LOGFILE &amp; run_createrepo &gt;&gt; $LOGFILE &amp;<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"ustanovka\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h3>\n<p>  <\/p>\n<p>Inotify-createrepo \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 CentOS 7 \u0438\u043b\u0438 \u0432\u044b\u0448\u0435. \u041d\u0430 CentOS 6 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0435\u0433\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">yum -y install yum-plugin-copr yum copr enable antonpatsev\/inotify-createrepo yum -y install inotify-createrepo systemctl start inotify-createrepo<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"konfigurirovanie\">\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e inotify-createrepo \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>\/var\/www\/repos\/rpm-repo\/<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 <code>\/etc\/inotify-createrepo.conf.<\/code><\/p>\n<p>  <\/p>\n<h3 id=\"ispolzovanie\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>\/var\/www\/repos\/rpm-repo\/<\/code> inotifywait \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0444\u0430\u0439\u043b <code>\/tmp\/need_create<\/code>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f run_createrepo \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0444\u0430\u0439\u043b <code>\/tmp\/need_create<\/code>. \u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f <code>createrepo --update<\/code>.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0438\u0441\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\/var\/www\/repos\/rpm-repo\/ CREATE nginx-1.16.1-1.el7.ngx.x86_64.rpm start createrepo 2020-03-02 09:46:21+03:00 Spawning worker 0 with 1 pkgs Spawning worker 1 with 0 pkgs Spawning worker 2 with 0 pkgs Spawning worker 3 with 0 pkgs Workers Finished Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete finish createrepo 2020-03-02 09:46:22+03:00<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"vozmozhnost-sdelat-vysokuyu-dostupnost-high-availability\">\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c (high availability)<\/h3>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c (high availability) \u0438\u0437 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0435\u0449\u0435\u043d\u0438\u044f, \u0434\u0443\u043c\u0430\u044e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 2 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, Keepalived \u0434\u043b\u044f HA \u0438 Lsyncd \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432. <a href=\"http:\/\/code.google.com\/p\/lsyncd\">Lsyncd<\/a> \u2014 \u0434\u0435\u043c\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u0435\u0442 \u0438\u0445, \u0438 \u043f\u043e \u043f\u0440\u043e\u0448\u0435\u0441\u0442\u0432\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 rsync \u0434\u043b\u044f \u0438\u0445 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u043f\u043e\u0441\u0442\u0435 &quot;<a href=\"https:\/\/habr.com\/ru\/post\/132098\/\">C\u043a\u043e\u0440\u043e\u0441\u0442\u043d\u0430\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u0430 \u0444\u0430\u0439\u043b\u043e\u0432<\/a>&quot;.<\/p>\n<p>  <\/p>\n<h3 id=\"webdav\">WebDav<\/h3>\n<p>  <\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438: SSH, NFS, WebDav. WebDav \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f WebDav \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Apache httpd. \u041f\u043e\u0447\u0435\u043c\u0443 Apache httpd \u0432 2020 \u0433\u043e\u0434\u0443, \u0430 \u043d\u0435 nginx?<\/p>\n<p>  <\/p>\n<p>\u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 Nginx + \u043c\u043e\u0434\u0443\u043b\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Webdav).<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 Nginx + \u043c\u043e\u0434\u0443\u043b\u0438 \u2014 <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\">Nginx-builder<\/a>. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c nginx + wevdav \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u0442\u043e \u043d\u0443\u0436\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c <a href=\"https:\/\/github.com\/arut\/nginx-dav-ext-module\">nginx-dav-ext-module<\/a>. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Nginx \u0441 <a href=\"https:\/\/github.com\/arut\/nginx-dav-ext-module\">nginx-dav-ext-module<\/a> \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\">Nginx-builder<\/a> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\/issues\/27\">Used by http_dav_module instead of nginx-dav-ext-module<\/a>. \u0422\u0430\u043a\u0430\u044f \u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b\u043b\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u0430 \u043b\u0435\u0442\u043e\u043c <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\/issues\/12\">nginx: [emerg] unknown directive dav_methods<\/a>. <\/p>\n<p>  <\/p>\n<p>\u042f \u0434\u0435\u043b\u0430\u043b Pull request <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\/pull\/18\">Add check git_url for embedded, refactored &#8212;with-{}_module<\/a> \u0438 <a href=\"https:\/\/github.com\/TinkoffCreditSystems\/Nginx-builder\/pull\/14\">if module == &quot;http_dav_module&quot; append &#8212;with<\/a>. \u041d\u043e \u0438\u0445 \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u043b\u0438.<\/p>\n<p>  <\/p>\n<h4 id=\"konfig-webdavconf\">\u041a\u043e\u043d\u0444\u0438\u0433 webdav.conf<\/h4>\n<p>  <\/p>\n<pre><code class=\"plaintext\">DavLockDB \/var\/www\/html\/DavLock &lt;VirtualHost localhost:80&gt;     ServerAdmin webmaster@localhost     DocumentRoot \/var\/www\/html     ErrorLog \/var\/log\/httpd\/error.log     CustomLog \/var\/log\/httpd\/access.log combined      Alias \/rpm \/var\/www\/repos\/rpm-repo     &lt;Directory \/var\/www\/repos\/rpm-repo&gt;         DAV On         Options Indexes FollowSymlinks SymLinksifOwnerMatch IncludesNOEXEC         IndexOptions NameWidth=* DescriptionWidth=*         AllowOverride none         Require all granted     &lt;\/Directory&gt; &lt;\/VirtualHost&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 Apache httpd \u044f \u0434\u0443\u043c\u0430\u044e \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0441\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"nginx-pered-apache-httpd\">Nginx \u043f\u0435\u0440\u0435\u0434 Apache httpd<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Apache, Nginx \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0447\u0435\u043c\u0443 \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u0441\u0441 HTTP-\u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c nginx \u0438 \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433 nginx-front.conf. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 nginx \u044f \u0434\u0443\u043c\u0430\u044e \u0432\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0441\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"nginx\">upstream nginx_front {     server localhost:80; }  server {     listen 443 ssl;     server_name \u0432\u0430\u0448-\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445-\u0445\u043e\u0441\u0442;     access_log \/var\/log\/nginx\/nginx-front-access.log main;     error_log \/var\/log\/nginx\/nginx-front.conf-error.log warn;      location \/ {         proxy_pass http:\/\/nginx_front;     } }<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"zagruzka-faylov-cherez-webdav\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 WebDav<\/h3>\n<p>  <\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 rpm \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">curl -T .\/nginx-1.16.1-1.el7.ngx.x86_64.rpm https:\/\/\u0432\u0430\u0448-\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439-\u0445\u043e\u0441\u0442\/rpm\/<\/code><\/pre>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/490644\/\"> https:\/\/habr.com\/ru\/post\/490644\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/490644\/\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 rpm \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 inotify + createrepo. \u0417\u0430\u043b\u0438\u0432\u043a\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 webdav \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f apache httpd. \u041f\u043e\u0447\u0435\u043c\u0443 apache httpd \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0431\u043b\u0438\u0436\u0435 \u043a \u043a\u043e\u043d\u0446\u0443 \u043f\u043e\u0441\u0442\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"itak-reshenie-dolzhno-otvechat-cleduyuschim-trebovaniyam-dlya-organizacii-tolko-rpm-hranilischa\">\u0418\u0442\u0430\u043a, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c c\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u043e\u043b\u044c\u043a\u043e RPM \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430:<\/h3>\n<p>  <\/p>\n<ul>\n<li>\n<p>\u0411\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0435<\/p>\n<p>  <\/li>\n<li>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u0430 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432.<\/p>\n<p>  <\/li>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0438<\/p>\n<p>  <\/li>\n<li>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c (high availability)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-299531","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299531"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299531\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}