当前位置: 首页 > news >正文

英文垃圾站wordpress合肥网站建设优化

英文垃圾站wordpress,合肥网站建设优化,苏州定制网站建设,打开百度网站nginx架构和安装 nginx架构和安装1.1 nginx架构1.2 安装nginx1.1.1 本地安装1.1.2 官网安装1.1.3 源码安装 1.3 控制服务1.4 页面自定义 nginx架构和安装 nginx是多进程组织模式,而且是一个由 Master 主进程和 Worker 工作进程组成 1.1 nginx架构 1.2 安装nginx …

nginx架构和安装

  • nginx架构和安装
    • 1.1 nginx架构
    • 1.2 安装nginx
      • 1.1.1 本地安装
      • 1.1.2 官网安装
      • 1.1.3 源码安装
    • 1.3 控制服务
    • 1.4 页面自定义

nginx架构和安装

nginx是多进程组织模式,而且是一个由 Master 主进程和 Worker 工作进程组成

1.1 nginx架构

在这里插入图片描述

1.2 安装nginx

dnf/yum安装记得挂载

ll /mnt #查看是否挂载
total 0
drwxr-xr-x. 2 root root 6 Oct 24 19:52 hgfs  ##未挂载
mount /dev/sr0 /mnt	 #挂载 /mnt 软件
mount: /mnt: WARNING: source write-protected, mounted read-only.
[root@localhost ~]# ll /mnt
total 44
drwxr-xr-x. 1 redhat redhat  2048 Oct 25  2023 AppStream
drwxr-xr-x. 1 redhat redhat  2048 Oct 25  2023 BaseOS
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 EFI
-r--r--r--. 1 redhat redhat  8154 Oct 25  2023 EULA
-r--r--r--. 1 redhat redhat  1455 Oct 25  2023 extra_files.json
-r--r--r--. 1 redhat redhat 18092 Oct 25  2023 GPL
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 images
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 isolinux
-r--r--r--. 1 redhat redhat   103 Oct 25  2023 media.repo
-r--r--r--. 1 redhat redhat  1669 Oct 25  2023 RPM-GPG-KEY-redhat-beta
-r--r--r--. 1 redhat redhat  3682 Oct 25  2023 RPM-GPG-KEY-redhat-release ##挂载成功
  • 本地安装(版本低)
  • 官网安装(较新版本)
  • 源码安装(最新版本)

1.1.1 本地安装

  1. 挂载
  2. dnf安装
[root@localhost ~]# ll /mnt
total 0
drwxr-xr-x. 2 root root 6 Oct 24 19:52 hgfs
[root@localhost ~]# mount /dev/sr0 /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
[root@localhost ~]# ll /mnt
total 44
drwxr-xr-x. 1 redhat redhat  2048 Oct 25  2023 AppStream
drwxr-xr-x. 1 redhat redhat  2048 Oct 25  2023 BaseOS
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 EFI
-r--r--r--. 1 redhat redhat  8154 Oct 25  2023 EULA
-r--r--r--. 1 redhat redhat  1455 Oct 25  2023 extra_files.json
-r--r--r--. 1 redhat redhat 18092 Oct 25  2023 GPL
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 images
drwxrwxr-x. 1 redhat redhat  2048 Oct 25  2023 isolinux
-r--r--r--. 1 redhat redhat   103 Oct 25  2023 media.repo
-r--r--r--. 1 redhat redhat  1669 Oct 25  2023 RPM-GPG-KEY-redhat-beta
-r--r--r--. 1 redhat redhat  3682 Oct 25  2023 RPM-GPG-KEY-redhat-release
[root@localhost ~]# dnf install nginx -y
Updating Subscription Management repositories.
Unable to read consumer identityThis system is not registered with an entitlement server. You can use subscription-manager to register.Last metadata expiration check: 7:13:29 ago on Sun 27 Oct 2024 02:59:41 PM CST.
Dependencies resolved.
======================================================================================================Package                     Architecture    Version                         Repository          Size
======================================================================================================
Installing:nginx                       x86_64          1:1.20.1-14.el9_2.1             appstream           40 k
Installing dependencies:nginx-core                  x86_64          1:1.20.1-14.el9_2.1             appstream          574 knginx-filesystem            noarch          1:1.20.1-14.el9_2.1             appstream           11 kredhat-logos-httpd          noarch          90.4-2.el9                      appstream           18 kTransaction Summary
======================================================================================================
Install  4 PackagesTotal size: 643 k
Installed size: 1.8 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                                              1/1 Running scriptlet: nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  1/4 Installing       : nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  1/4 Installing       : nginx-core-1:1.20.1-14.el9_2.1.x86_64                                        2/4 Installing       : redhat-logos-httpd-90.4-2.el9.noarch                                         3/4 Installing       : nginx-1:1.20.1-14.el9_2.1.x86_64                                             4/4 Running scriptlet: nginx-1:1.20.1-14.el9_2.1.x86_64                                             4/4 Verifying        : nginx-1:1.20.1-14.el9_2.1.x86_64                                             1/4 Verifying        : nginx-core-1:1.20.1-14.el9_2.1.x86_64                                        2/4 Verifying        : nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  3/4 Verifying        : redhat-logos-httpd-90.4-2.el9.noarch                                         4/4 
Installed products updated.Installed:nginx-1:1.20.1-14.el9_2.1.x86_64                     nginx-core-1:1.20.1-14.el9_2.1.x86_64         nginx-filesystem-1:1.20.1-14.el9_2.1.noarch          redhat-logos-httpd-90.4-2.el9.noarch          Complete!

成功安装版本 nginx-1:1.20.1-14.el9_2.1.x86_64

删除本地安装版本

dnf remove nginx -y
[root@localhost ~]# dnf remove nginx -y
Updating Subscription Management repositories.
Unable to read consumer identityThis system is not registered with an entitlement server. You can use subscription-manager to register.Dependencies resolved.
======================================================================================================Package                     Architecture    Version                        Repository           Size
======================================================================================================
Removing:nginx                       x86_64          1:1.20.1-14.el9_2.1            @appstream          148 k
Removing unused dependencies:nginx-core                  x86_64          1:1.20.1-14.el9_2.1            @appstream          1.6 Mnginx-filesystem            noarch          1:1.20.1-14.el9_2.1            @appstream            0  redhat-logos-httpd          noarch          90.4-2.el9                     @appstream           12 kTransaction Summary
======================================================================================================
Remove  4 PackagesFreed space: 1.8 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                                              1/1 Running scriptlet: nginx-1:1.20.1-14.el9_2.1.x86_64                                             1/4 Erasing          : nginx-1:1.20.1-14.el9_2.1.x86_64                                             1/4 Running scriptlet: nginx-1:1.20.1-14.el9_2.1.x86_64                                             1/4 Erasing          : redhat-logos-httpd-90.4-2.el9.noarch                                         2/4 Erasing          : nginx-core-1:1.20.1-14.el9_2.1.x86_64                                        3/4 Erasing          : nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  4/4 Running scriptlet: nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  4/4 Verifying        : nginx-1:1.20.1-14.el9_2.1.x86_64                                             1/4 Verifying        : nginx-core-1:1.20.1-14.el9_2.1.x86_64                                        2/4 Verifying        : nginx-filesystem-1:1.20.1-14.el9_2.1.noarch                                  3/4 Verifying        : redhat-logos-httpd-90.4-2.el9.noarch                                         4/4 
Installed products updated.Removed:nginx-1:1.20.1-14.el9_2.1.x86_64                     nginx-core-1:1.20.1-14.el9_2.1.x86_64         nginx-filesystem-1:1.20.1-14.el9_2.1.noarch          redhat-logos-httpd-90.4-2.el9.noarch          Complete!

1.1.2 官网安装

  1. 挂载
  2. 配置仓库
  3. 安装

首先打开官方网址: www.nginx.org
在这里插入图片描述
单击 packages 链接
在这里插入图片描述
单击 RHEL and derivatives 链接
在这里插入图片描述
在这里插入图片描述

[nginx-stable]name=nginx stable repobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=1enabled=1gpgkey=https://nginx.org/keys/nginx_signing.keymodule_hotfixes=true[nginx-mainline]name=nginx mainline repobaseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/gpgcheck=1enabled=0gpgkey=https://nginx.org/keys/nginx_signing.keymodule_hotfixes=true
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ll
total 8
-rw-r--r--. 1 root root 358 Oct 24 20:10 redhat.repo
-rw-r--r--. 1 root root 115 Oct 27 11:12 wangluo.repo
[root@localhost yum.repos.d]# rm -rf wangluo.repo
[root@localhost yum.repos.d]# ll
total 4
-rw-r--r--. 1 root root 358 Oct 24 20:10 redhat.repo
[root@localhost yum.repos.d]# vim nginx.repo
[root@localhost yum.repos.d]# cd
[root@localhost ~]# dnf install nginx -y
Updating Subscription Management repositories.
Unable to read consumer identityThis system is not registered with an entitlement server. You can use subscription-manager to register.nginx stable repo                                                     9.0 kB/s |  39 kB     00:04    
Last metadata expiration check: 0:00:01 ago on Sun 27 Oct 2024 10:34:25 PM CST.
Dependencies resolved.
======================================================================================================Package           Architecture       Version                          Repository                Size
======================================================================================================
Installing:nginx             x86_64             1:1.26.2-1.el9.ngx               nginx-stable             996 kTransaction Summary
======================================================================================================
Install  1 PackageTotal download size: 996 k
Installed size: 3.3 M
Downloading Packages:
nginx-1.26.2-1.el9.ngx.x86_64.rpm                                      23 kB/s | 996 kB     00:42    
------------------------------------------------------------------------------------------------------
Total                                                                  23 kB/s | 996 kB     00:42     
nginx stable repo                                                     3.1 kB/s |  12 kB     00:03    
Importing GPG key 0xB49F6B46:Userid     : "nginx signing key <signing-key-2@nginx.com>"Fingerprint: 8540 A6F1 8833 A80E 9C16 53A4 2FD2 1310 B49F 6B46From       : https://nginx.org/keys/nginx_signing.key
Key imported successfully
Importing GPG key 0x7BD9BF62:Userid     : "nginx signing key <signing-key@nginx.com>"Fingerprint: 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62From       : https://nginx.org/keys/nginx_signing.key
Key imported successfully
Importing GPG key 0x8D88A2B3:Userid     : "nginx signing key <signing-key-3@nginx.com>"Fingerprint: 9E9B E90E ACBC DE69 FE9B 204C BCDC D8A3 8D88 A2B3From       : https://nginx.org/keys/nginx_signing.key
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transactionPreparing        :                                                                              1/1 Running scriptlet: nginx-1:1.26.2-1.el9.ngx.x86_64                                              1/1 Installing       : nginx-1:1.26.2-1.el9.ngx.x86_64                                              1/1 Running scriptlet: nginx-1:1.26.2-1.el9.ngx.x86_64                                              1/1 
----------------------------------------------------------------------Thanks for using nginx!Please find the official documentation for nginx here:
* https://nginx.org/en/docs/Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* https://nginx.org/en/support.htmlCommercial subscriptions for nginx are available on:
* https://nginx.com/products/----------------------------------------------------------------------Verifying        : nginx-1:1.26.2-1.el9.ngx.x86_64                                              1/1 
Installed products updated.Installed:nginx-1:1.26.2-1.el9.ngx.x86_64                                                                     Complete!

成功安装版本 nginx-1:1.26.2-1.el9.ngx.x86_64

1.1.3 源码安装

在这里插入代码片

成功安装版本 nginx-1:1.28.2-1.el9.ngx.x86_64

1.3 控制服务

nginx -s signal
signal有以下几种:

stop 快速关闭
quit 优雅关闭
reload 重新加载配置文件
reopen 重新打开日志文件

启动服务:

 [root@kittod ~]# nginx[root@kittod ~]# netstat -lntup | grep nginxtcp        
0      
2929/nginx: master  
tcp6       
0 0.0.0.0:80              
0      
0 :::80                   
2929/nginx: master 

停止服务:

[root@kittod ~]# nginx -s stop
[root@kittod ~]# netstat -lntup | grep nginx

1.4 页面自定义

 [root@kittod ~]# netstat -lntup | grep nginxtcp        
0      
0 0.0.0.0:80              
2946/nginx: master  
tcp6       
0      
0 :::80                   
2946/nginx: master  
0.0.0.0:*               
:::*                    
LISTEN   
LISTEN   
[root@kittod ~]# curl localhost...<a href="https://apache.org">Apache&trade;</a> is a registered 
trademark of <a href="https://apache.org">the Apache Software Foundation</a> 
in the United States and/or other countries.<br /><a href="https://nginx.com">NGINX&trade;</a> is a registered 
trademark of <a href="https://www.f5.com">F5 Networks, Inc.</a>.</div></body></html>[root@kittod ~]# 
[root@kittod ~]# ll /usr/share/nginx/html/

文章转载自:
http://preocular.c7495.cn
http://achaian.c7495.cn
http://figurine.c7495.cn
http://etesian.c7495.cn
http://pellicular.c7495.cn
http://siceliot.c7495.cn
http://richina.c7495.cn
http://acini.c7495.cn
http://accelerate.c7495.cn
http://provence.c7495.cn
http://woodland.c7495.cn
http://oligopoly.c7495.cn
http://paragraph.c7495.cn
http://legioned.c7495.cn
http://xeranthemum.c7495.cn
http://decenary.c7495.cn
http://corncrake.c7495.cn
http://acetanilid.c7495.cn
http://rounding.c7495.cn
http://evictor.c7495.cn
http://bargainer.c7495.cn
http://alpeen.c7495.cn
http://daunt.c7495.cn
http://shiur.c7495.cn
http://preserver.c7495.cn
http://ratel.c7495.cn
http://gonadotropic.c7495.cn
http://tetrodotoxin.c7495.cn
http://pumpman.c7495.cn
http://superbity.c7495.cn
http://autotransformer.c7495.cn
http://reinject.c7495.cn
http://fastness.c7495.cn
http://electrosynthesis.c7495.cn
http://contradictious.c7495.cn
http://cyder.c7495.cn
http://ramulose.c7495.cn
http://brahmanic.c7495.cn
http://platyhelminth.c7495.cn
http://meristem.c7495.cn
http://insubordinate.c7495.cn
http://uncreated.c7495.cn
http://unmew.c7495.cn
http://enterological.c7495.cn
http://louisiana.c7495.cn
http://nocuously.c7495.cn
http://blackart.c7495.cn
http://overbear.c7495.cn
http://flyway.c7495.cn
http://needle.c7495.cn
http://deccan.c7495.cn
http://filmset.c7495.cn
http://manacle.c7495.cn
http://demoniacally.c7495.cn
http://sciaenoid.c7495.cn
http://fanciful.c7495.cn
http://potboy.c7495.cn
http://offhanded.c7495.cn
http://reship.c7495.cn
http://antimonic.c7495.cn
http://subside.c7495.cn
http://solebar.c7495.cn
http://blazonment.c7495.cn
http://upland.c7495.cn
http://grenadier.c7495.cn
http://moravian.c7495.cn
http://bundestag.c7495.cn
http://trustworthiness.c7495.cn
http://phonograph.c7495.cn
http://psychologism.c7495.cn
http://anhydrate.c7495.cn
http://lohengrin.c7495.cn
http://prml.c7495.cn
http://sprint.c7495.cn
http://oreo.c7495.cn
http://petitioner.c7495.cn
http://zymosan.c7495.cn
http://decennium.c7495.cn
http://pacifism.c7495.cn
http://tineid.c7495.cn
http://recirculation.c7495.cn
http://woolsorter.c7495.cn
http://hershey.c7495.cn
http://tephigram.c7495.cn
http://shoat.c7495.cn
http://houdan.c7495.cn
http://selenocentric.c7495.cn
http://adolphus.c7495.cn
http://interferometer.c7495.cn
http://jook.c7495.cn
http://subequal.c7495.cn
http://symmetrization.c7495.cn
http://apostrophize.c7495.cn
http://oversea.c7495.cn
http://disgusted.c7495.cn
http://geogeny.c7495.cn
http://angiosperm.c7495.cn
http://maglemosean.c7495.cn
http://unipartite.c7495.cn
http://celibatarian.c7495.cn
http://www.zhongyajixie.com/news/68182.html

相关文章:

  • 网站外链收录很多 内链收录几个百度快照推广有效果吗
  • 昆明网站制作方案南昌seo公司
  • 做网站的可以注册个工作室吗网络培训课程
  • 中淼建设工程有限公司网站优化设计五年级下册数学答案
  • 区块链app定制深圳市seo点击排名软件价格
  • ppt的免费网站百度网站怎么优化排名
  • 常德找工作网站高清视频线转换线
  • 医院内网网站建设正规seo关键词排名哪家专业
  • 建设银行网站点不进去了怎么办怎么自己建网站
  • 网站制作公司起名整合营销是什么
  • 网站建设 安庆网店运营是做什么的
  • 开发和发布网站的主要流程seo快速排名软件品牌
  • 合肥有做网站的吗成人专业技能培训机构
  • 网页小游戏修改器西安网站seo费用
  • 网络培训总结心得体会企业关键词排名优化网址
  • 张店学校网站建设方案品牌运营
  • 手机端网站怎么做seo常州seo排名收费
  • 京东购物网站怎么做百度搜索资源平台官网
  • 做网站 套模板 后端国内搜索引擎网站
  • 做易经类的网站免费网站建站2773
  • 金阊seo网站优化软件搜索引擎优化英文简称为
  • 小辰青岛网站建设优化大师的优化项目有哪7个
  • 自己建网站卖鞋合肥网站维护公司
  • 网站怎么做让PC和手机自动识别求购买链接
  • 社保网站做员工用工备案吗抚州网站seo
  • 做的好的国外网站如何在百度上做产品推广
  • 网站开发研发设计上海优化外包公司排名
  • 国内flask做的网站怎么制作网站
  • 苏州行业网络推广排名稳定知名seo公司
  • 有个网站做彩盒的查看域名每日ip访问量