Httpd+php+mysql+nfs

Source: Internet
Author: User

Experimental topology:

650) this.width=650; "title=" _lhsj@]l4or23wypq3umqr8.jpg "alt=" wkiol1qpjxgriv_haaenpjuaxqs227.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m01/49/1d/wkiol1qpjxgriv_haaenpjuaxqs227.jpg "/>

Experimental purpose: The use of NFS to achieve file share access, the first Web Access, the upload of dynamic content, with the second Web server can still see

Experiment Description: httpd, PHP, MySQL are compiled and installed, here no longer compile, I have the front of the blog. This is to put the site in the NFS server, and then share it, so that its web and PHP can call the Web page, a Web to access and upload, the second web can immediately see the dynamic content.

DNS Configuration (192.168.0.2)

Define zones, and configure zone resolution files

# Vim/etc/named.rfc1912.zones

650) this.width=650; "title=" w7hi12zh1$w}_r24l7g_iff.jpg "alt=" wkiom1qpj-gss6obaabjydd_yka888.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m00/49/1c/wkiom1qpj-gss6obaabjydd_yka888.jpg "/>

# vim/var/named/ky.com

650) this.width=650, "title=" ~tpg}% @F5 $VJ]57wu (6_izy.jpg "alt=" wkiom1qpkeciobqzaadadzeeg5g405.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m01/49/1c/wkiom1qpkeciobqzaadadzeeg5g405.jpg "/>

Detecting DNS Resolution

650) this.width=650; "title=" 3[t5 ' fg3zijhknu1{fgg$s2.jpg "alt=" wkiol1qpkxmrhsmxaabgpx3d-2g115.jpg "src=" http:/ S3.51cto.com/wyfs02/m00/49/1e/wkiol1qpkxmrhsmxaabgpx3d-2g115.jpg "/>

650) this.width=650; "Title="}mcw3vlgt (t0ry%) FY ' byly.jpg "alt=" wkiol1qpkzeb6zsjaacpqwo0e7m858.jpg "src=" http:// S3.51cto.com/wyfs02/m02/49/1e/wkiol1qpkzeb6zsjaacpqwo0e7m858.jpg "/>

NFS Configuration (192.168.0.7)

# vim/etc/exports # Service NFS Restart

650) this.width=650; "title=" $ ' NR "3bdvv4lkwb_1jp_iq1.jpg" alt= "wkiom1qpkhvtcqkdaaapdl7pz_c172.jpg" src= "/HTTP/ S3.51cto.com/wyfs02/m02/49/1c/wkiom1qpkhvtcqkdaaapdl7pz_c172.jpg "/>

HTTPD configuration (192.168.0.2) (192.168.0.3)

Mount NFS

# mount-t NFS 192.168.0.7:/test/usr/local/httpd/htdocs/

650) this.width=650; "Title=" 8r8 ([}4c ' Yir) n7a__s_ml5.jpg "alt=" wkiom1qpkpnys4boaaeruic5z9s971.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m00/49/1c/wkiom1qpkpnys4boaaeruic5z9s971.jpg "/>

# vim/etc/httpd/extra/httpd-vhosts.conf

650) this.width=650; "title=" 8 ' ~ ' []{xo3ei () z0h ' nty47.jpg "alt=" wkiol1qpkufqawagaadimruxqdo484.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/49/1e/wkiol1qpkufqawagaadimruxqdo484.jpg "/>

Note: WordPress is the directory of the website, I have already unpacked in advance on NFS, so on NFS/test directory has wordpress directory, I put the whole/test shared.

PHP Configuration (192.168.0.6)

# mount-t NFS 192.168.0.7:/test/web

650) this.width=650; "title=" VGM ' R] ' 4eoeycp$6%6uxnuj.jpg "alt=" wkiol1qpljaarlqtaaeiud7x9dq947.jpg "src=" http:// S3.51cto.com/wyfs02/m01/49/1e/wkiol1qpljaarlqtaaeiud7x9dq947.jpg "/>

#service php-fpm restart#service mysqld Restart

Inspection:

In the client (native) access 192.168.0.2 (www.ky.com), configure the database and can connect remotely, I configured here, the process before the blog above.

650) this.width=650; "title=" ~g71n[$4s8o) [xgsmr~i%vj.jpg "alt=" wkiom1qplqij18v7aab544uryy8839.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m02/49/1c/wkiom1qplqij18v7aab544uryy8839.jpg "/>

Upload a blog post

650) this.width=650; "title=" H~xu ' rdy}ovyir$kc_~ot0c.jpg "alt=" wkiom1qplxxzvwjvaac70b4ujy4798.jpg "src=" http:/ S3.51cto.com/wyfs02/m01/49/1c/wkiom1qplxxzvwjvaac70b4ujy4798.jpg "/>

Below with Client Access 192.168.0.3 (www.ky.com), the correct display is able to see this blog

650) this.width=650; "title=" thjapyo%ht4pg3g4mogzgvn.jpg "alt=" wkiol1qpl1shppylaadkmvyf5b0860.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m02/49/1e/wkiol1qpl1shppylaadkmvyf5b0860.jpg "/>

The experiment is complete.

This article is from the "Fish" blog, please be sure to keep this source http://kyfish.blog.51cto.com/1570421/1550381

Httpd+php+mysql+nfs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.