当前位置:网站首页>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
边栏推荐
- Attack and defense world misc practice area (GIF lift table ext3)
- This article explains in detail how mockmvc is used in practical work
- 内网渗透之内网信息收集(二)
- Wei Shen of Peking University revealed the current situation: his class is not very good, and there are only 5 or 6 middle-term students left after leaving class
- 实验七 常用类的使用(修正帖)
- SRC mining ideas and methods
- XSS unexpected event
- 实验七 常用类的使用
- 内网渗透之内网信息收集(一)
- 小程序web抓包-fiddler
猜你喜欢
Intel oneapi - opening a new era of heterogeneity
Hackmyvm target series (6) -videoclub
Xray and burp linkage mining
captcha-killer验证码识别插件
Canvas foundation 1 - draw a straight line (easy to understand)
Ucos-iii learning records (11) - task management
网络基础之路由详解
Web vulnerability - File Inclusion Vulnerability of file operation
Strengthen basic learning records
强化學習基礎記錄
随机推荐
链队实现(C语言)
Brief introduction to XHR - basic use of XHR
【MySQL-表结构与完整性约束的修改(ALTER)】
Applet Web Capture -fiddler
AQS details
JDBC transactions, batch processing, and connection pooling (super detailed)
Network technology related topics
HackMyvm靶机系列(5)-warez
Hackmyvm target series (2) -warrior
What language should I learn from zero foundation. Suggestions
Hackmyvm target series (7) -tron
Experiment 6 inheritance and polymorphism
【Numpy和Pytorch的数据处理】
Strengthen basic learning records
[three paradigms of database] you can understand it at a glance
Record an API interface SQL injection practice
Intensive literature reading series (I): Courier routing and assignment for food delivery service using reinforcement learning
Data mining - a discussion on sample imbalance in classification problems
Record once, modify password logic vulnerability actual combat
Wei Shen of Peking University revealed the current situation: his class is not very good, and there are only 5 or 6 middle-term students left after leaving class