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