当前位置:网站首页>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
边栏推荐
- AQS details
- Interpretation of iterator related "itertools" module usage
- 【数据库 三大范式】一看就懂
- Network technology related topics
- Record an API interface SQL injection practice
- 2022华中杯数学建模思路
- Experiment 7 use of common classes (correction post)
- [VMware abnormal problems] problem analysis & Solutions
- 内网渗透之内网信息收集(四)
- Hackmyvm target series (3) -visions
猜你喜欢
随机推荐
msf生成payload大全
The difference between layer 3 switch and router
强化学习基础记录
Hackmyvm Target Series (3) - vues
A complete collection of papers on text recognition
Record an edu, SQL injection practice
Hackmyvm target series (7) -tron
7-3 构造散列表(PTA程序设计)
HackMyvm靶机系列(5)-warez
[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i
Intel oneapi - opening a new era of heterogeneity
Record a penetration of the cat shed from outside to inside. Library operation extraction flag
Record an API interface SQL injection practice
Hackmyvm target series (5) -warez
Mathematical modeling idea of 2022 central China Cup
Nuxtjs quick start (nuxt2)
SQL injection
AQS details
Detailed explanation of network foundation routing
Renforcer les dossiers de base de l'apprentissage








