为了安全性,需要配置SSL。配置后就可以使用https来访问。
生成密钥
下载安装OpenSSL
然后进入到OpenSSL-Win64\bin
目录下,执行exe文件。
看到命令行窗口。
负载均衡是为减轻单个服务器负担,将请求按照某种策略分发给多个服务器。
官方文档参考:http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream
以2台Tomcat集群为例
反向代理,举个场景来说明什么是反向代理。
我向A服务器发请求,A服务拿到请求后,根据业务区分,把请求交给了C处理,C处理完后,给A,再由A返回给我结果。在我的视角中,我是不知道C的存在的。我始终只与A交流。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.