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