LAMP + NFS build comprehensive configuration of forum system

Source: Internet
Author: User
Tags mysql host
Requirements: 1. create a logical volume/dev/myvg/web and/dev/myvg/mydata, and mount it to/www/htdocs and/www/mydata; set the local host (assuming the host name is nfs.a.org) to have two addresses: 172.16.0.0/16 and 10.0.0.0/8; 2. set the owner group of/www to a mysql user and a mysql group. the user ID and group ID of mysql are both 3306. 3. share/requirement through nfs: 1. create a logical volume/dev/myvg/web and/dev/myvg/mydata, and mount it to/www/htdocs and/www/mydata. set the local host (assuming the host name is nfs.a.org) there are two addresses in the network of 172.16.0.0/16 and 10.0.0 . 0/8 network; 2. set the owner group of/www to a mysql user and a mysql group. The mysql User ID and group ID are both 3306; 3. use nfs to share/www/htdocs to 172.16.0.0/16. the sharing options are read/write and asynchronous. 10.0.0 . 0/8. the sharing option is read-only; 4. set nfs auxiliary services to use fixed ports to provide services; 5. start two other Linux instances (for example, www1.a.org and www2.a.org) on the 172.16.0.0/16 network; mount the/www/htdocs and/www/mydata of the nfs server to the/web and/mydata directories of the local machine; 6. install LAMP on both www1 and www2 hosts; Note: 1) the IDs of mysql Users and Groups created on both hosts are 3306; 2) commands for initializing mysql only need to be performed on one host. after initialization, another mysql host starts directly; 7. install and configure wordpress on the www1 host; 8. access the services on the www2 host to verify the authenticity; 9. configure www1 and www2 hosts to use the ssl service; Network topology: This is the configuration

 

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.