Nginx Plus 长什么样子?

Apache HTTP 仍然在 Web 服务器市场份额中处于领先地位,但看起来 Nginx 很快就会接管。

Nginx 以其性能而闻名,并在前 10K 和 100K 站点中处于领先地位。

SimilarTech 提供的数据

Nginx 是一个开源的 Web 服务器,非常棒。

它与许多后端、应用程序服务器很好地集成在一起。 如果您正在使用 Nginx,那么您可能知道 Nginx 加Nginx 的商业版本。

Nginx Plus 比 Nginx 有更多的功能(你可以猜到)。

前任:

  • 会话持久性以确保请求被路由到相同的上游服务器
  • 避免单点故障 (SPOF) 的高可用性集群
  • 主动健康检查以停止向故障服务器发送请求
  • 使用 DNS 发现服务
  • 功能齐全的负载均衡器
  • 对缓存的更多控制
  • 用于调试、资源利用、故障排除的内置监控
  • 单点登录
  • WAF动态模块
  • Mp4 流媒体的带宽控制
  • 还有很多…

Nginx Plus 可用于以下发行版。

  • RHEL/CentOS
  • 亚马逊 Linux
  • 甲骨文
  • 自由BSD
  • 苏塞
  • Ubuntu
  • Debian

以及以下 IaaS(基础设施即服务)

  • 谷歌云平台 (GCP)
  • 亚马逊网络服务 (AWS)
  • 微软天青

安装 Nginx Plus

Nginx 提供 30 天免费试用,所以如果你想探索,可以下载试用版。

以下是我在 Google Cloud 上测试过的

有两种安装 Nginx Plus 的方法。

一种是手动的 在这里解释 其次是通过脚本。

让我们简单地使用脚本方式。

  • 使用root登录服务器
  • 执行以下脚本
wget https://cs.nginx.com/static/install-nginx && chmod +x install-nginx 
./install-nginx #hash key given by Nginx
  • 用 Nginx 提供的一次性哈希键替换红色文本

前任:

[[email protected] ~]# ./install-nginx 148740a5769c640b3233406d04c5b58e
This script will install NGINX Plus
Do you want to install nginx-plus for centos 7? [y/n]: y
2017-12-03 07:49:37 URL:https://cs.nginx.com/otl/148740a5769c640b3233406d04c5b58e/cert [1334/1334] -> "/etc/ssl/nginx/nginx-repo.crt" [1]
2017-12-03 07:49:38 URL:https://cs.nginx.com/otl/148740a5769c640b3233406d04c5b58e/private_key [1708/1708] -> "/etc/ssl/nginx/nginx-repo.key" [1]
Loaded plugins: fastestmirror
nginx-plus                                                                                                                              | 2.9 kB  00:00:00     
nginx-plus/x86_64/primary_db                                                                                                            | 137 kB  00:00:01     
Loading mirror speeds from cached hostfile
 * base: mirrors.xmission.com
 * epel: mirror.hmc.edu
 * extras: centos.s.uw.edu
 * updates: mirrors.syringanetworks.net
Resolving Dependencies
--> Running transaction check
---> Package nginx-plus.x86_64 0:1.13.4-1.el7.ngx will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================
 Package                              Arch                             Version                                      Repository                            Size
===============================================================================================================================================================
Installing:
 nginx-plus                           x86_64                           1.13.4-1.el7.ngx                             nginx-plus                           2.9 M
Transaction Summary
===============================================================================================================================================================
Install  1 Package
Total download size: 2.9 M
Installed size: 7.2 M
Downloading packages:
nginx-plus-1.13.4-1.el7.ngx.x86_64.rpm                                                                                                  | 2.9 MB  00:00:20     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : nginx-plus-1.13.4-1.el7.ngx.x86_64                                                                                                          1/1 
----------------------------------------------------------------------
Thank you for using NGINX!
Please find the documentation for NGINX Plus here:
/usr/share/nginx/html/nginx-modules-reference.pdf
NGINX Plus is proprietary software. EULA and License information:
/usr/share/doc/nginx-plus/
For support information, please see:
Support for F5 NGINX Software
----------------------------------------------------------------------   Verifying  : nginx-plus-1.13.4-1.el7.ngx.x86_64                                                                                                          1/1  Installed:   nginx-plus.x86_64 0:1.13.4-1.el7.ngx                                                                                                                          Complete! [[email protected] ~]#

那很简单!

让我们启动 Nginx 并通过访问服务器 IP 来验证安装。

service nginx start

如您所见,这是成功的!

停止/启动 Nginx

停止和启动过程与 Nginx 开源相同。

service nginx stop #to stop
service nginx start #to start
service nginx status #to check the status
service nginx restart #to restart

实时监控

如前所述,Plus 提供实时活动监控,您可以在其中查看详细指标。

前任:

  • 当前和总请求
  • 每秒请求数
  • HTTP状态码响应
  • 按发送和接收的流量数据大小
  • 上游请求详细信息

看看 演示站点

Nginx Plus 看起来是基于软件的负载均衡的完美解决方案,可以提高 Web 性能,同时为大量访问者提供服务。

你喜欢 Nginx 吗? 试试 Nginx Plus; 你会喜欢的!

喜欢阅读这篇文章吗? 与世界分享如何?