Linux 12 week Lesson (April 23) Notes

Source: Internet
Author: User
Tags fpm

12-Week Lesson (April 23)
12.1 Lnmp Architecture Introduction
12.2 MySQL Installation
12.3/12.4 PHP Installation
12.5 Nginx Introduction

Extended
Why Nginx is more efficient than Apache httpd: Principle Article http://www.toxingwang.com/linux-unix/linux-basic/1712.html
Apache and Nginx working principle comparison http://www.server110.com/nginx/201402/6543.html
Comparison of mod_php and mod_fastcgi and PHP-FPM http://dwz.cn/1lwMSd
Concept understanding: cgi,fastcgi,php-cgi and PHP-FPM http://www.nowamagic.net/librarys/veda/detail/1319/https://www.awaimai.com/371.html

12.1 Lnmp Architecture Introduction

12.2 MySQL Installation

The MySQL package has been downloaded before

Download in r.aminglinux.com. Version may be updated. Download the latest version.

Check to see if MySQL is booting. If it starts, remove it.

Enter the SRC directory and all the downloaded packages are placed here for easy searching.

Download, unzip.

local/cannot have MySQL directory before MV


Previously created users and increased Mys users

Delete the previously created.

Initialize and generate the required directories.

Copy the configuration file that was previously copied.


Specify Datadir,socket

Edit the Startup

Specify Basedir DataDir

Start the service

To see if it started successfully

12.3 PHP Installation (top)

Empty the previously compiled file

After installation, compile again.

Make
Make install

12.3 php installation (bottom)


Modifying a configuration file

12.5 Nginx Introduction

The software developed by the Russians, the following is the official website of Nginx.

Linux 12 week Lesson (April 23) Notes

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.