??????nginx1.90??TCPЭ?鵂?????????
???????????? ???????[ 2015/5/20 14:07:45 ] ???????????????
?????????????????TCP??????????????????????????nginx??????ò????????????TCPЭ????????????????????LVS(linux??????????)??
????LVS??????????????????????á??????繃?????????????????LVS?????ò????????????????????????????????????????TCP????????????????????????о????????????????...
?????????LVS????????????????????????????4??28?????????nginx1.90??????????TCPЭ??????????????????????TCPЭ???????????????????????????????????漰??UDP?????????????????Э?飬?????ü???????LVS???
???????????nginx????TCPЭ??????á?
????realserver : 10.134.241.68
????nginx :10.134.72.166
?????????:10.129.157.168
????TCP???????:2014
???????????nginx
???????????????? http://nginx.org/en/docs/stream/ngx_stream_core_module.html
????nginx1.90??TCPЭ??????????????????????????????????? --with-stream ??????
????nginx.config????????????
stream {
upstream cloudsocket {
hash $remote_addr consistent;
server 10.134.241.68:2014 weight=5 max_fails=3 fail_timeout=30s;
}
server {
listen 2014;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass cloudsocket;
}
}
???????nginx??????nginx??????????2014?????
??????????????????realserver
?????????????telnet????realserver??2014????
??????realserver????????????
????????????????
????????????????????nginx
?????????????telnet????nginx???????????2014???
??????nginx???????????????
??????realserver???????????
???????????nginx??????????TCP??????????
???????????????????????е???LVS?? VS/NAT ??????????????????????????????????????????????滻??????????????????????????
????????????????????????????????????????????????nginx???????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11