
0803【Nginx】
技术学习
努力的阳光蓝孩
学习一时爽,一直学习一直爽
展开
-
【Nginx】05 启动Nginx 配置反向代理 域名 到 网关 到 服务
1、官网地址 https://www.nginx.com/blog/ http://nginx.org/en/docs/ 2、Using nginx as HTTP load balancer http { upstream myapp1 { server srv1.example.com; server srv2.example.com; server srv3.example.com; } server { li原创 2020-09-09 09:19:55 · 782 阅读 · 0 评论 -
【Nginx】04 启动Nginx 配置反向代理 域名到 服务
1、启动 # docker ps -a # docker start nginx # 更新为自动启动 # docker update nginx --restart=always 2、访问 http://haoxiansheng.com/ 3、配置转发 让ngxin 进行反向代理,所有haoxiansheng.com下的请求都转到商品服务 # vi nginx.conf # 全局配置 user nginx; # 用户组 worker_processes 1; # 允许生产worker_pro原创 2020-09-09 09:15:45 · 173 阅读 · 0 评论 -
【Nginx】03 Mac 配置域名与主机映射
1、打开Finder 在菜单中选择【前往】【前往文件夹】 2、使用快捷键Command+Shift+G 3、赋值一份到桌面修改后保存 编写域名指向ip配置,并拖动替换原文件即可 ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## ## 添加域名与主机映射 192.168.56.20原创 2020-09-09 07:45:08 · 456 阅读 · 0 评论