Dual Web Server based on the Nfs-lamp architecture and sharing 1 discuz and MySQL

Source: Internet
Author: User

First of all, let's elaborate on the following points:

Figure: When a user accesses virtual machine 2, you can access the Discuz forum, which is mounted via NFS, where the data is stored in virtual machine 1, to ensure that when the content of the forum changes, the data that the virtual machine 2 accesses is followed by changes, that is, the unity of the data. All this is done through the NFS service.

Steps:

1, first in the virtual machine 1 to build a complete lamp service and install the Discuz forum.

2. Build lap service in virtual machine 2

3, the Discuz Forum directory through NFS mounted to virtual machine 2, so that virtual machine 2 can achieve the Forum's access and add data for the forum. So virtual machine 2 only need to build lap service.

PS: Virtual machine 1 address is 172.16.111.1, Virtual machine 2 address is 172.16.111.2

Premise:

Because you want to use the Yum installation, make sure that the Yum configuration is ready in advance. You can refer to the steps described in previous steps in http://407711169.blog.51cto.com/6616996/1179601. and prepare the corresponding packages beforehand: Httpd-2.4.3.tar + mysql-5.5.28 + php-5.4.8 Apr-util-1.4.1.tar,apr-1.4.6.tar.

Also need to see if SELinux is open. The same can be achieved by referencing the methods in the top blog to close SELinux

[Root@localhost ~]# Getenforce     
enforcing      
[root@localhost ~]# setenforce 0      
[root@localhost ~]# Getenforce     
Permissive      
//Of course. This also needs to be vim/etc/selinux/config to replace selinux=enforcing with selinux=permissive

Related Article

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.