当前位置:网站首页>Overview of LNMP architecture and construction of related services
Overview of LNMP architecture and construction of related services
2022-07-06 14:19:00 【Impute】
One 、LNMP Relevant concepts
LNMP Namely :Linux Under the system Nginx+MySQL+PHP This web server architecture .
contrast LAMP, The difference is the website server program ------Nginx(LNMP) and Apache(LAMP)
Nginx Is a high-performance HTTP And reverse proxy , Also a IMAP/POP3/SMTP proxy server .
Contrast item | Nginx | Apache |
---|---|---|
The configuration file | concise | complex |
Use of resources | Nginx contrast Apache Save more resources | It takes up a lot of resources |
Suitable for the status of the website | static state | Dynamic interaction |
Generally speaking , Need performance web service , use nginx
If you don't need performance, just stability , More consideration apache
Two 、 install Nginx service
Premise
1、 Install dependency packages
2、 Create a running user
3、 Compilation and installation
4、 Path optimization
# Put the application nginx Make a soft link to the environment path variable for the executable commands in , Let the system recognize nginx Operation command of
5、 add to Nginx system service
3、 ... and 、 install MySQL service
1、 install Mysql Environment dependent packages
2、 Create a running user
3、 Compilation and installation
4、 modify mysql The configuration file
5、 change mysql The primary group of the installation directory and configuration files
6、 Set the path environment variable
7、 Initialize database
8、 add to mysqld system service
9、 modify mysql The login mima
Four 、 Installation configuration PHP Analyze the environment
1、 Install environment dependency package
2、 Compilation and installation
3、 Path optimization
4、 adjustment PHP The configuration file
php There are three profiles
Master profile ------php.ini
Process service profile ------php-fpm.conf
Extended profile ------www.conf
(1) Adjust the main profile
(2) Adjust the process service profile
(3) Adjust the extended profile
5、 start-up php-fpm
6、 To configure Nginx Support PHP analysis
7、 Test access page
8、 Verify database
边栏推荐
- 7-3 构造散列表(PTA程序设计)
- Brief introduction to XHR - basic use of XHR
- Strengthen basic learning records
- 7-3 construction hash table (PTA program design)
- Callback function ----------- callback
- XSS unexpected event
- 7-11 mechanic mustadio (PTA program design)
- 实验七 常用类的使用(修正帖)
- [insert, modify and delete data in the headsong educator data table]
- Experiment 7 use of common classes (correction post)
猜你喜欢
攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)
How to understand the difference between technical thinking and business thinking in Bi?
HackMyvm靶機系列(3)-visions
内网渗透之内网信息收集(一)
HackMyvm靶机系列(6)-videoclub
Low income from doing we media? 90% of people make mistakes in these three points
Strengthen basic learning records
实验六 继承和多态
Hackmyvm target series (6) -videoclub
[paper reproduction] cyclegan (based on pytorch framework) {unfinished}
随机推荐
内网渗透之内网信息收集(二)
HackMyvm靶机系列(2)-warrior
WEB漏洞-文件操作之文件包含漏洞
Matlab opens M file garbled solution
The United States has repeatedly revealed that the yield of interest rate hiked treasury bonds continued to rise
xray与burp联动 挖掘
Hackmyvm target series (3) -visions
C language file operation
Detailed explanation of network foundation routing
Intel oneapi - opening a new era of heterogeneity
Experiment five categories and objects
Only 40% of the articles are original? Here comes the modification method
7-9 make house number 3.0 (PTA program design)
[data processing of numpy and pytoch]
7-5 走楼梯升级版(PTA程序设计)
【MySQL数据库的学习】
SRC mining ideas and methods
强化学习基础记录
7-7 7003 combination lock (PTA program design)
强化學習基礎記錄