Pupuri rpm ngawari ma te whakamahi Inotify me te webdav
I roto i tenei pou ka titiro tatou ki te rokiroki taonga rpm ma te whakamahi i te tuhinga ngawari me te innotify + createrepo. Ko te tukunga o nga taonga ka mahia ma te webdav ma te whakamahi i te apache httpd. He aha te Apache httpd ka tuhia ki te mutunga o te pou.
Na, me tutuki te otinga ki nga whakaritenga e whai ake nei mo te whakarite rokiroki RPM anake:
Kore utu
Te waatea o te kete i roto i te putunga i etahi hēkona i muri i te tukunga ki te putunga taonga.
Taonga i roto SonaType Nexus kei te rongoa i roto i te pupuhi. Mena ka mate ohorere te hiko, kare e taea e koe te whakahoki mai i te pupuhi mena karekau he taapiri. I hapa matou: 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. Kore rawa a Blob i whakahokia mai.
Ma te taunoa, ka aro turuki te inotify-createrepo i te whaiaronga /var/www/repos/rpm-repo/.
Ka taea e koe te huri i tenei whaiaronga i roto i te konae /etc/inotify-createrepo.conf.
Whakamahia
I te taapiri i tetahi konae ki tetahi whaiaronga /var/www/repos/rpm-repo/ ka hanga e inotifywait te konae /tmp/need_create. Ko te mahi run_createrepo ka rere i roto i te kohanga mutunga kore me te aro turuki i te konae /tmp/need_create. Mena kei te noho te konae, ka rere createrepo --update.
Kia nui te waatea mai i te otinga o naianei, ki taku whakaaro ka taea e koe te whakamahi i nga kaitoro e 2, Keepalived mo HA me Lsyncd mo te tukutahi taonga. Lsyncd - he daemon e aro turuki ana i nga huringa i roto i te raarangi aa-rohe, ka whakahiato, a muri iho i etahi wa ka timata a rsync ki te tukutahi. Ko nga korero me te tatūnga ka whakaahuahia i roto i te panui "Te tukutahi tere o te piriona konae".
Paetukutuku
Ka taea e koe te tuku ake i nga konae ma nga huarahi maha: SSH, NFS, WebDav. Ko te WebDav te ahua he waahanga hou me te ngawari.
Mo WebDav ka whakamahia e matou a Apache httpd. He aha a Apache httpd i te 2020 kaore i te nginx?
Kei te pirangi au ki te whakamahi taputapu aunoa mo te hanga Nginx + modules (hei tauira, Webdav).
Ki taku whakaaro ka taea e koe te mahi i te toenga o te Apache httpd setup koe.
Nginx i mua i te Apache httpd
Kaore i rite ki a Apache, ka whakamahi a Nginx i tetahi tauira tukatuka tono e pa ana ki nga huihuinga, e hiahia ana kia kotahi te tukanga tūmau HTTP mo te maha o nga kaihoko. Ka taea e koe te whakamahi i te nginx me te whakaiti i te kawenga i runga i te tūmau.
Whirihora nginx-front.conf. Ki taku whakaaro ka taea e koe te mahi i te toenga o te tatūnga nginx koe.