
nginxphpmysql technical architecture_LNMP architecture introduction, MySQL and PHP installation, Nginx introduction
Task on June 6 12.1 LNMP architecture introduction 12.2 MySQL installation 12.3/12.4 PHP installation 12.5 Nginx Introduction Extension Why Nginx is more efficient than Apache Httpd:Principle http://www.toxingwang.com/linux-unix/linux -basic/1712.html A comparison of the working principles of apache and nginx 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/ CGI、FastCGI和PHP-FPM关系图解 p> 12.1 Introduction to LNMP Architecture The difference between LNMP and LAMP is that Apache is replaced by Nginx, Nginx provides web services, Simply access PHP websites, if They are all for accessing static pictures,Nginx has more concurrent users than Apache,This is also something Apache cannot do. 12.2 MySQL Installation The MySQL installation steps are as follows : 1. Download the mysql source package [root@jimmylinux-001 ~]# cd /usr /local/src Enter the src directory [root@jimmylinux-001 src]# wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux -glibc2.5-x86_64.tar.gz wget download MySQL source package 2, decompress source package [root@jimmylinux-001 src]# tar zxvf mysql-5.6 .36-linux-glibc2.5-x86_64.tar.gz 3. Move the directory and rename it to mysql, and enter the mysql directory at the same time. [root@jimmylinux-001 src]# mv mysql-5.6.36-linux-glibc2.5-x86_64 /usr/local/mysql [root@ jimmylinux-001 src]# cd /usr/local/mysql 4. Create mysql user and data directory [root@jimmylinux-001mysql]# useradd mysql [root@jimmylinux-001 mysql]# mkdir /data/ 5. Initialize and generate the directory required for mysql startup [root@jimmylinux-…