Lamp separation structure + discuz Forum Building

Source: Internet
Author: User

Lamp separation structure + discuz Forum Building
Building Lamp Separation Structure
1, Server classification:
(1) Application server: Web server. Stored procedure source code, such as php/python/jsp
(2) database server: MySQL
(3) file server: Save static file
3. Prepare three virtual machines
Vh01.tedu.cn 192.168.4.1 MySQL
Vh02.tedu.cn 192.168.4.2 Web
Vh03.tedu.cn 192.168.4.3 Web
4. Configure MySQL Server
[email protected] ~]# Yum install-y mariadb-server
[Email protected] ~]# systemctl start mariadb
[Email protected] ~]# Systemctl enable MARIADB
[[email protected] ~]# MySQL
MariaDB [(None)]> grant all on .To ' admin ' @ '% ' of ' identified by ' tedu.cn ';
5. Installing Web Services on VH02 and vh03
[email protected] ~]# yum install-y httpd php php-mysql
[Email protected] ~]# systemctl start httpd
[Email protected] ~]# Systemctl enable httpd
6. Deploy Discuz on Vh02
[Email protected] ~]# Unzip Discuz_x3.0_sc_utf8.zip
[Email protected] ~]# cp-r upload//var/www/html/bbs
[Email protected] ~]# chown-r Apache.apache/var/www/html/bbs
[email protected] ~]# Firefox Http://192.168.4.2/bbs

7, Configuration vh03
[Email protected] ~]# cd/var/www/html/
[Email protected] html]# tar czf bbs.tar.gz BBS
[Email protected] html]# SCP bbs.tar.gz 192.168.4.3:/var/www/html/
[Email protected] ~]# cd/var/www/html/
[Email protected] html]# tar xzf bbs.tar.gz

Lamp separation structure + discuz Forum Building

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.