Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web服务器 #22

Open
Lmagic16 opened this issue Oct 12, 2017 · 0 comments
Open

web服务器 #22

Lmagic16 opened this issue Oct 12, 2017 · 0 comments
Labels
Projects

Comments

@Lmagic16
Copy link
Owner

客户端在发送http请求时,调用socket api 创建tcp连接,将报文层层封装,发到服务器。服务器需要通过socket的api来监听端口,并接收连接请求和报文。通过字符串处理来分析报文里面的请求方法,资源地址等信息,从而执行不同的操作,组成相应的报文,交给tcpip协议栈,由它传递报文到客户端。
系统都有tcpip协议栈的实现。而socket是基于tcpip协议栈暴露出来的编程接口。

nginx反向代理

CSDN讲解
通过proxy_pass设置代理的服务器地址
1)对端口的设置
2)负载均衡的设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
网络
网络
Development

No branches or pull requests

1 participant