Architecture: LAMP three Server Load balancer

Source: Internet
Author: User
Here, Linux is the RedHat5.8 system. To facilitate the use of yum installation, for example, source code installation, you can refer to the previous documents for configuration. Reference: LAMP explanation and source code compilation and Installation:

Here, Linux is the RedHat 5.8 system. To facilitate the use of yum installation, for example, the source code installation can refer to the previous document combined with configuration.

Refer:
LAMP detailed description and source code compilation and installation process http://www.linuxidc.com/Linux/2012-07/65908.htm
RHEL5.4 compile and install LAMP http://www.linuxidc.com/Linux/2012-06/61712.htm

The test topology is as follows:

First, configure yum and disable selinux. Here, we use three virtual machines. The local DNS also points to 192.168.80.139.

1. Configure 192.168.80.140 and mysql Server:

 
 
  1. # yum -y install mysql mysql-server  
  2.  
  3. # service mysqld start  
  4. # mysqladmin -u root password 'redhat'  
  5. # mysql -u root -p  
  6. mysql> GRANT ALL ON discuz.* TO root@'%.%.%.%' IDENTIFIED BY 'redhat';  
  7. mysql> FLUSH PRIVILEGES;  
  8.  
  9. # mkdir -p /web/discuz  
  10. # unzip Discuz_7.2_FULL_SC_UTF8.zip -d /web/discuz  
  11.  
  12. # vim /etc/exports  
  13. /web/discuz     192.168.80.0/24(rw,no_root_squash)  
  14. # service nfs restart 
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.