{"id":209432,"date":"2014-01-17T16:27:02","date_gmt":"2014-01-17T12:27:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=209432"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=209432","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ownCloud \u0441 NGINX \u0432\u043e frontend \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 backend<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4><u><b>1. \u0421\u0445\u0435\u043c\u0430<\/b><\/u><\/h4>\n<p>  \u0418\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li> Frontend \u2014 NGINX \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u044f \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (IP \u2014 1.2.3.4 \u2014 \u0432\u043d\u0435\u0448\u043d\u0438\u0439, IP \u2014 192.168.5.10 \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 DMZ) <i>\u043f\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u043e\u043d \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0442\u043e\u044f\u0442\u044c \u0437\u0430 firewall-\u043e\u043c, \u043d\u043e \u0442\u0443\u0442 \u0441\u0445\u0435\u043c\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/i> <\/li>\n<li>\u0414\u0432\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u043f\u043e\u0434\u043d\u044f\u0442\u044b\u043c\u0438 ownCloud <\/li>\n<li>cloud-1 IP \u2014 192.168.1.11<\/li>\n<li>cloud-2 IP \u2014 192.168.1.12<\/li>\n<li>\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 NFS-storage IP \u2014 192.168.5.20 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u043e NFS.<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a7f\/27b\/01c\/a7f27b01c04ef1724b2f42ccd550068b.png\" alt=\"image\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><u><b>2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ownCloud<\/b><\/u><\/h4>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e \u043c\u0430\u043d\u0443\u0430\u043b\u0443 \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432.<br \/>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 Ubuntu 12.03 LTS \u2014 LAMP (\u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 LAMP \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c root) <br \/>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 LDAP \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c php5-ldap  <\/p>\n<pre><code class=\"bash\">$sudo apt-get\tinstall php5-ldap<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u043e NFS.<br \/>  <b>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 NFS-storage<\/b> \u0441\u0442\u0430\u0432\u0438\u043c nfs \u0441\u0435\u0440\u0432\u0435\u0440  <\/p>\n<pre><code class=\"bash\">$ sudo apt-get istall nfs-kernel-server<\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \/etc\/exports \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">\/var\/owncloud 192.168.1.0\/24(rw,sync,no_root_squash,no_subtree_check)<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0439 \u043f\u0440\u0430\u0432\u0430:  <\/p>\n<pre><code class=\"bash\">$sudo mkdir -p \/var\/owncloud $sudo chown root:www-data \/var\/owncloud<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043f\u0443\u0441\u043a\u0430\u0435\u043c nfs \u0441\u0435\u0440\u0432\u0435\u0440:  <\/p>\n<pre><code class=\"bash\">$sudo \/etc\/init.d\/nfs-kernel-server restart<\/code><\/pre>\n<p>  \u0421 \u0445\u0440\u0430\u043d\u0438\u043b\u043a\u043e\u0439 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438.<br \/>  <b>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445-\u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445<\/b> nfs \u0441\u0442\u0430\u0432\u0438\u043c:  <\/p>\n<pre><code class=\"bash\">$ sudo apt-get istall nfs-common<\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c vim \/etc\/rc.local \u043f\u0435\u0440\u0435\u0434 exit 0 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443: (\u0434\u043b\u044f \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f NFS \u043f\u0430\u043f\u043a\u0438 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043f\u0438\u0448\u0443 \u0432 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \/etc\/fstab \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u043e \u0442\u044f\u0436\u0435\u043b\u043e \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b)  <\/p>\n<pre><code class=\"bash\">\/bin\/mount -t nfs -o user,rw,hard 192.168.1.20:\/var\/owncloud \/var\/cloud<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \/var\/cloud \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0439 \u043f\u0440\u0430\u0432\u0430:  <\/p>\n<pre><code class=\"bash\">$sudo mkdir -p \/var\/cloud<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">$sudo chown root:www-data \/var\/owncloud<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f   <\/p>\n<pre><code class=\"bash\">$sudo mount.nfs 192.168.1.20:\/var\/owncloud \/var\/cloud<\/code><\/pre>\n<p>  <b>\u0414\u0430\u043b\u0435\u0435 \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u043b\u0430\u043a\u043e \u043d\u0430 \u0434\u0432\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/b><br \/>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u043b\u044e\u0447:  <\/p>\n<pre><code class=\"bash\">$wget http:\/\/download.opensuse.org\/repositories\/isv:ownCloud:community\/xUbuntu_12.04\/Release.key $sudo apt-key add - &lt; Release.key <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0438 \u0441\u0442\u0430\u0432\u0438\u043c \u043e\u0431\u043b\u0430\u043a\u043e.  <\/p>\n<pre><code class=\"bash\"> $sudo sh -c &quot;echo 'deb http:\/\/download.opensuse.org\/repositories\/isv:\/ownCloud:\/community\/xUbuntu_12.04\/ \/' &gt;&gt; \/etc\/apt\/sources.list.d\/owncloud.list&quot; $sudo apt-get update $sudo apt-get install owncloud <\/code><\/pre>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c <code>http:\/\/you_ip\/owncloud\/<\/code>  <\/p>\n<ul>\n<li>\u0412\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u201cadmin\u201d<\/li>\n<li>\u041f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u201cpassword\u201d<\/li>\n<li>\u041f\u0443\u0442\u044c \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \/var\/cloud (\u044d\u0442\u0443 \u043f\u0430\u043f\u043a\u0443 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e NFS \u0441 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430)<\/li>\n<li>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c MySQL<\/li>\n<li>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c MySQL \u201croot\u201d (\u0438\u043b\u0438 \u0442\u043e\u0442 \u0447\u0442\u043e \u0437\u0430\u0432\u0435\u043b\u0438 \u0441\u0430\u043c\u0438)<\/li>\n<li>\u041f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0432\u043e\u0434\u0438\u043b\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 LAMP \u0438\u043b\u0438 \u043e\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f)<\/li>\n<li>\u0418\u043c\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u201ccloud\u201d<\/li>\n<li>\u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u201clocalhost\u201d<\/li>\n<\/ul>\n<p>  \u0416\u043c\u0435\u043c FINISH<br \/>  \u0418 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043f\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c admin \u0432 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 owncloud.<br \/>  \u042f \u043f\u0440\u0430\u0432\u0438\u043b \/var\/www\/index.html \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u0445\u043e\u0434\u0430 \u043d\u0430 \u043e\u0431\u043b\u0430\u043a\u043e.  <\/p>\n<pre><code class=\"html\">&lt;html&gt;     &lt;head&gt;         &lt;meta HTTP-EQUIV=&quot;REFRESH&quot; content=&quot;0; url=\/owncloud\/&quot;&gt;     &lt;\/head&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <b>\u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u043c \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 CLOUD-1 \u0438 CLOUD-2.<\/b><\/p>\n<h4><u><b>3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 NGINX<\/b><\/u><\/h4>\n<p>  \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 NGINX  <\/p>\n<pre><code class=\"bash\">$sudo apt-get install nginx <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f  <\/p>\n<pre><code class=\"bash\">$ sudo vim \/etc\/nginx\/sites-available\/cloud <\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \u0434\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.  <\/p>\n<pre><code class=\"bash\">upstream myCloud {     ip_hash;\t\t\t\t\t\t#\u0447\u0442\u043e \u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u0430\u0441\u044c \u0441\u0435\u0441\u0441\u0438\u044f     server 192.168.1.11:80;     server 192.168.1.12:80; } server {     listen       1.2.3.4:443 ssl;\t\t# \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 SSL     server_name  owncloud.site.org;     ssl_certificate     \/etc\/ssl\/certs\/site.pem;\t# \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442     ssl_certificate_key \/etc\/ssl\/private\/site.key; # \u043a\u043b\u044e\u0447 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430     client_max_body_size 200G; # \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438     location \/ {     proxy_pass   http:\/\/myCloud;     proxy_set_header   Host   $host;     proxy_set_header   X-Real-IP  $remote_addr;     proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;        }  } <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443   <\/p>\n<pre><code class=\"bash\">$sudo ln -s \/etc\/nginx\/sites-available\/cloud.centr.by \/etc\/nginx\/sites-enabled\/cloud.centr.by <\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 SSL.  <\/p>\n<pre><code class=\"bash\">$sudo vim \/usr\/share\/nginx\/www\/index.html <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;html&gt;     &lt;head&gt;         &lt;meta HTTP-EQUIV=&quot;REFRESH&quot; content=&quot;0; url=https:\/\/owncloud.site.org\/cloud\/&quot;&gt;     &lt;\/head&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u043f\u0443\u0441\u043a\u0430\u0435\u043c nginx  <\/p>\n<pre><code class=\"bash\">$sudo \/etc\/init.d\/nginx restart <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 <code>http:\/\/owncloud.site.org<\/code> \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 <code>https:\/\/owncloud.site.org\/cloud\/<\/code><\/p>\n<p>  \u0421\u0435\u0441\u0441\u0438\u044f SSL \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c \u0438 NGINX, \u043c\u0435\u0436\u0434\u0443 NGINX \u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP.<\/p>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u043d\u0430<code> http:\/\/owncloud.site.org<\/code> \u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u0432\u043e\u0434\u0430 \u043b\u043e\u0433\u0438\u043d\u0430-\u043f\u0430\u0440\u043e\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 cloud1(2) \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043d\u043e:<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 cloud-1 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0435 MySQL \u0441\u0435\u0440\u0432\u0435\u0440\u0430 cloud-1. \u041f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u0445\u043e\u0434\u0435 \u043e\u043d \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 cloud-2 \u0433\u0434\u0435 \u043d\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435\u0442.<br \/>  \u0414\u043b\u044f \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0430\u0437 MySQL \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 cloud-1 \u0438 cloud-2. \u041f\u0440\u0438\u0447\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 MySQL \u044d\u0442\u043e master \u2014 slave, \u0442.\u0435. \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 master \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0430 slave \u043d\u043e \u043d\u0435 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041d\u0430\u043c \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0432\u0430 \u0440\u0430\u0432\u043d\u043e\u043f\u0440\u0430\u0432\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 master \u2014 master.<\/p>\n<p>  <i><u>\u0412\u0430\u0440\u0438\u0430\u043d\u0442:<\/u> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u0432\u0443\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043e\u0434\u043d\u043e\u0439 MySQL \u0431\u0430\u0437\u043e\u0439 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f MySQL \u0431\u0430\u0437, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u0441\u0445\u0435\u043c\u0443 \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0430\u043a\u0430\u043f \u0431\u0430\u0437\u044b \u0438 \u0432\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 (\u0434\u0430\u0431\u044b \u043d\u0435 \u0437\u0430\u0442\u0435\u0440\u0435\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435). \u041a\u0430\u043a\u0438\u043c \u043f\u0443\u0442\u0435\u043c \u043f\u043e\u0439\u0442\u0438 \u2014 \u0412\u0430\u0448 \u0432\u044b\u0431\u043e\u0440.<\/i><\/p>\n<h4><u>4. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 master \u2014 master MySQL<\/u><\/h4>\n<p>  <b>\u041d\u0430 cloud1 <\/b>  <\/p>\n<pre><code class=\"bash\"># vim \/etc\/mysql\/my.cnf  <\/code><\/pre>\n<p>  \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438  <\/p>\n<pre><code class=\"bash\">[mysqld] #Replication log-bin=mysql-bin binlog_format=mixed server-id = 1      \/* \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 *\/ slave-compressed = 1 binlog-do-db = cloud  \/* \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u043b\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 *\/ #bind-address           = 127.0.0.1 \/* \u0447\u0442\u043e \u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0443\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d*\/ <\/code><\/pre>\n<p>  <b>\u041d\u0430 cloud2<\/b>  <\/p>\n<pre><code class=\"bash\"># vim \/etc\/mysql\/my.cnf  <\/code><\/pre>\n<p>  \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438  <\/p>\n<pre><code class=\"bash\">[mysqld] #Replication log-bin=mysql-bin binlog_format=mixed server-id = 2      \/* \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 *\/ slave-compressed = 1 binlog-do-db = cloud  \/* \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u043b\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 *\/ #bind-address           = 127.0.0.1 \/* \u0447\u0442\u043e \u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0443\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d*\/ <\/code><\/pre>\n<p>  \u0417\u0430\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445.<br \/>  <b>\u041d\u0430 cloud1 <\/b><br \/>  \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c repl2 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0441 IP 192.168.1.11 \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c u_pass (\u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0443 cloud \u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0435\u0433\u0438\u0438 SELECT, RELOAD, SUPER, REPLICATION SLAVE)  <\/p>\n<pre><code class=\"bash\">mysql&gt; grant replication slave on *.* to 'repl2'@192.168.1.12 identified by 'u_pass';<\/code><\/pre>\n<p>  <b>\u041d\u0430 cloud2<\/b><br \/>  \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c repl1 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0441 IP 192.168.1.12 \u0438 \u043f\u0430\u0440\u043e\u043b\u0435\u043c u_pass (\u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0431\u0430\u0437\u0443 cloud \u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0435\u0433\u0438\u0438 SELECT, RELOAD, SUPER, REPLICATION SLAVE)  <\/p>\n<pre><code class=\"bash\">mysql&gt; grant replication slave on *.* to 'repl2'@192.168.1.11 identified by 'u_pass'; <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u043e\u0431\u0435 \u0431\u0430\u0437\u044b \u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435:<br \/>  <b>\u041d\u0430 cloud1<\/b>  <\/p>\n<pre><code class=\"bash\">mysql&gt; FLUSH TABLES WITH READ LOCK; mysql&gt; show master status; +------------------+----------+--------------+------------------+ | File             | Position | Binlog_Do_DB | Binlog_Ignore_DB | +------------------+----------+--------------+------------------+ | mysql-bin.000009 |  107     | cloud        |                  | +------------------+----------+--------------+------------------+ 1 row in set (0.00 sec) <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0434\u0430\u043c\u043f \u0431\u0430\u0437\u044b cloud  <\/p>\n<pre><code class=\"bash\">#mysqldump -u root -p cloud &gt; \/home\/user\/cloud.sql mysql&gt; UNLOCK TABLES; <\/code><\/pre>\n<p>  \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430 cloud-2   <\/p>\n<pre><code class=\"bash\">$scp \/home\/user\/cloud.sql user@192.168.1.12:\/home\/user\/cloud.sql <\/code><\/pre>\n<p>  <b>\u041d\u0430 cloud2<\/b><br \/>  \u0434\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c slave;  <\/p>\n<pre><code class=\"bash\">mysql&gt; USE cloud; mysql&gt; SOURCE \/home\/user\/cloud.sql  mysql&gt; CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.000009'; mysql&gt; CHANGE MASTER TO MASTER_LOG_POS=107; mysql&gt; stop slave; mysql&gt; CHANGE MASTER TO MASTER_HOST='192.168.5.11', MASTER_USER='repl2', MASTER_PASSWORD='u_pass'; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0437\u0430\u043c\u0435\u0442\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\"><i>(\u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u044d\u0442\u0438 \u00abCHANGE MASTER TO MASTER_HOST=&#8217;192.168.5.11&#8242;, MASTER_USER=&#8217;repl2&#8242;, MASTER_PASSWORD=&#8217;u_pass&#8217;;\u00bb \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b MySQL \/etc\/mysql\/my.cnf <br \/>  master-host = 192.168.1.11<br \/>  master-user = repl2 <br \/>  master-password = &lt;\u043f\u0430\u0440\u043e\u043b\u044c&gt;<br \/>  \u043d\u043e \u0431\u044b\u043b\u0438 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 MySQL) <\/i>  <\/div>\n<\/div>\n<p>  <\/p>\n<pre><code class=\"bash\">mysql&gt; start slave; mysql&gt; show slave status\/G; <\/code><\/pre>\n<p>  \u0414\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0433\u043e:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043b\u043e\u0433<\/b><\/p>\n<div class=\"spoiler_text\">*************************** 1. row ***************************<br \/>   Slave_IO_State: Waiting for master to send event<br \/>   Master_Host: 192.168.1.11<br \/>   Master_User: repl2<br \/>   Master_Port: 3306<br \/>   Connect_Retry: 60<br \/>   Master_Log_File: mysql-bin.000014<br \/>   Read_Master_Log_Pos: 107<br \/>   Relay_Log_File: mysqld-relay-bin.000017<br \/>   Relay_Log_Pos: 210<br \/>   Relay_Master_Log_File: mysql-bin.000014<br \/>   Slave_IO_Running: Yes<br \/>   Slave_SQL_Running: Yes<br \/>   Replicate_Do_DB: <br \/>   Replicate_Ignore_DB: <br \/>   Replicate_Do_Table: <br \/>   Replicate_Ignore_Table: <br \/>   Replicate_Wild_Do_Table: <br \/>   Replicate_Wild_Ignore_Table: <br \/>   Last_Errno: 0<br \/>   Last_Error: <br \/>   Skip_Counter: 0<br \/>   Exec_Master_Log_Pos: 107<br \/>   Relay_Log_Space: 513<br \/>   Until_Condition: None<br \/>   Until_Log_File: <br \/>   Until_Log_Pos: 0<br \/>   Master_SSL_Allowed: No<br \/>   Master_SSL_CA_File: <br \/>   Master_SSL_CA_Path: <br \/>   Master_SSL_Cert: <br \/>   Master_SSL_Cipher: <br \/>   Master_SSL_Key: <br \/>   Seconds_Behind_Master: 0<br \/>  Master_SSL_Verify_Server_Cert: No<br \/>   Last_IO_Errno: 0<br \/>   Last_IO_Error: <br \/>   Last_SQL_Errno: 0<br \/>   Last_SQL_Error: <br \/>   Replicate_Ignore_Server_Ids: <br \/>   Master_Server_Id: 2<br \/>  1 row in set (0.00 sec)  <\/div>\n<\/div>\n<p>  <b>\u041d\u0430 cloud1 <\/b><br \/>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0431\u0430\u0437\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043c\u043f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<br \/>  \u041d\u0430\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c cloud-1 \u043a\u0430\u043a slave \u043a cloud-2  <\/p>\n<pre><code class=\"bash\">mysql&gt; USE cloud; mysql&gt; stop slave; mysql&gt; CHANGE MASTER TO MASTER_HOST='192.168.5.12', MASTER_USER='repl1', MASTER_PASSWORD='u_pass'; mysql&gt; start slave; mysql&gt; show slave status\/G; <\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u0435\u043d \u043a\u0430\u043a \u043d\u0430 cloud-2<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u2026 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c YES \u043d\u0430 cloud-1 \u0438 cloud-2.<br \/>  <code>Slave_IO_Running: Yes Slave_SQL_Running: Yes<\/code><\/p>\n<p>  <b>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/b>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0439\u0442\u0438 \u043f\u043e\u0434 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 cloud-1 \u0430 cloud-2 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0447\u0442\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435 \u0432\u0435\u0440\u043d\u044b\u0439 (\u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442) :(. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u0421\u041e\u041b\u042c \ud83d\ude42<br \/>  \u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b \/var\/www\/owncloud\/config\/config.php \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f  <\/p>\n<pre><code class=\"bash\">'passwordsalt' =&gt; '6d84a4d8cb3cf5439c05647ceb45682a', <\/code><\/pre>\n<p>\u0438 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043e\u0431\u043b\u0430\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043d\u043e\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0437\u0430\u0439\u0442\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043c \u0433\u0434\u0435 \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 <a href=\"http:\/\/192.168.1.11\">192.168.1.11<\/a> \u0438 <a href=\"http:\/\/192.168.1.12\">192.168.1.12<\/a> \u043f\u043e\u0434 \u043e\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 cloud-1 \u0430 \u043d\u0430 cloud-2 \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 (F5).<br \/>  <u><b>\u0418\u043c\u0435\u0435\u043c \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435:<\/b><\/u>  <\/p>\n<ul>\n<li>NGINX \u0432\u043e \u0444\u0440\u043e\u043d\u0442\u044d\u043d\u0434\u0435 \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 <\/li>\n<li>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432 \u0431\u0430\u043a\u044d\u043d\u0434\u0435 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043e\u0442\u0434\u0430\u0447\u0438 \u043f\u0440\u0438 \u043d\u0430\u043f\u043b\u044b\u0432\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/li>\n<\/ul>\n<p>  <\/p>\n<h4><b>5. \u041a\u043b\u0438\u0435\u043d\u0442\u044b<\/b><\/h4>\n<p>  <\/p>\n<ul>\n<li>\u0414\u043b\u044f Linux, Windows \u0438 MacOC \u2014 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b (\u043c\u0438\u043d\u0443\u0441 \u2014 \u043d\u0435\u043b\u044c\u0437\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438)<\/li>\n<li>\u0414\u043b\u044f Android \u0438 iPhon\/iPad \u2014 0.99$<\/li>\n<\/ul>\n<p>  \u0412\u043e\u0442\u043a\u0430\u043a\u0442\u043e\u0442\u0430\u043a \ud83d\ude42  <\/p>\n<h4><b>6. \u0421\u0441\u044b\u043b\u043a\u0438<\/b><\/h4>\n<p>  <a href=\"http:\/\/www.opennet.ru\/tips\/info\/1205.shtml\">www.opennet.ru\/tips\/info\/1205.shtml<\/a><br \/>  <a href=\"http:\/\/www.mysql.ru\/docs\/man\/Replication_HOWTO.html\">www.mysql.ru\/docs\/man\/Replication_HOWTO.html<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/86496\/\">habrahabr.ru\/post\/86496\/<\/a><br \/>  <a href=\"http:\/\/google.com\">google.com<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/209432\/\"> http:\/\/habrahabr.ru\/post\/209432\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4><u><b>1. \u0421\u0445\u0435\u043c\u0430<\/b><\/u><\/h4>\n<p>  \u0418\u043c\u0435\u0435\u043c:  <\/p>\n<ul>\n<li> Frontend \u2014 NGINX \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u044f \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (IP \u2014 1.2.3.4 \u2014 \u0432\u043d\u0435\u0448\u043d\u0438\u0439, IP \u2014 192.168.5.10 \u2014 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 DMZ) <i>\u043f\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u043e\u043d \u0442\u043e\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0442\u043e\u044f\u0442\u044c \u0437\u0430 firewall-\u043e\u043c, \u043d\u043e \u0442\u0443\u0442 \u0441\u0445\u0435\u043c\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/i> <\/li>\n<li>\u0414\u0432\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u043f\u043e\u0434\u043d\u044f\u0442\u044b\u043c\u0438 ownCloud <\/li>\n<li>cloud-1 IP \u2014 192.168.1.11<\/li>\n<li>cloud-2 IP \u2014 192.168.1.12<\/li>\n<li>\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 NFS-storage IP \u2014 192.168.5.20 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043f\u043e NFS.<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a7f\/27b\/01c\/a7f27b01c04ef1724b2f42ccd550068b.png\" alt=\"image\"\/>  <\/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-209432","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209432","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=209432"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/209432\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}