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-…

Technology sharing pictures

LNMP architecture (architecture introduction, mysql installation, php installation, nginx introduction)

1. Introduction to LNMP Construction Different from LAMP, web services are provided by Nginx And php exists as an independent service, this service is called php-fpm Nginx directly processes static file requests, dynamic requests will be forwarded to php-fpm The difference between apache and nginx; https://www.cnblogs.com/huangye-dream/p/3550328.html The advantages of nginx over apache : Lightweight, also serves as a web service, occupies less memory and resources than apache Anti-concurrency, nginx processing Requests are asynchronous and non-blocking, while apache is blocking. Under high concurrency, nginx can maintain low resource consumption and high performance Highly modular design, relatively simple to write modulesThe community is active, and various high-performance modules are produced quickly Advantages of apache relative to nginx: rewrite, more powerful than nginx rewrite There are so many modules, you can find everything you can think of basicallyFewer bugs, nginx has relatively more bugs Asynchronous and synchronous: Synchronization: You call the bookstore owner and ask if he has the book “Distributed System”. If it is a synchronous communication mechanism, the bookstore owner will say, wait a moment, “I’ll check”, and then start checking, checking, etc. Check it out (it may be 5 seconds, or it may be a day) and tell you the…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索