12.1 Lnmp Architecture Introduction
12.2 MySQL Installation
The MySQL installation here is the same as the lamp-installed MySQL, which steps together as
If you reinstall, you should uninstall the previous installation, and then follow the steps above
Let it boot automatically when you're done.
12.3/12.4 PHP Installation
Since the previous installation of PHP5, now install PHP is not the same as before, so first remove PHP
When you run the initialization, you are prompted to reduce the curl package and install
After the installation to view the directory, more than the previous PHP directory installed sbin and Var,sbin directory php-frm file is the start service file, the Var directory is the log directory is stored, the run directory is stored PID, log and PID can be specified
Use-M to view the mode/usr/local/php-fpm/sbin/php-fpm-m
I can also view some information/usr/local/php-fpm/sbin/php-fpm-i
--T is the information that tests its own tone/usr/local/php-fpm/sbin/php-fpm-t
Copying a configuration file
CP php.ini-production CP Php.ini-production/usr/local/php-fpm/etc/php.ini/php.ini
Enter the ETC directory to edit the configuration file
Cd/usr/local/php-fpm/etc/php.ini
Edit Content
After editing completes the following steps to gather, start the PHP-FPM service prompt error, is because forgot to add PHP-FPM user
View Services
12.5 Nginx Introduction
View catalog files after installation
After the installation is complete, start the service and check the service
Create 1.php
This shows that the parsing succeeded
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-fpmhttp://www.nowamagic.net/librarys/veda/detail/1319/https://www.awaimai.com/371.html
12.1LNMP Architecture Introduction 12.2MySQL installation 12.312.4 PHP installation 12.5Nginx installation