{"id":97212,"date":"2024-06-06T19:06:11","date_gmt":"2024-06-06T11:06:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=97212"},"modified":"2024-06-06T19:06:11","modified_gmt":"2024-06-06T11:06:11","slug":"haproxy-detailed-explanation","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/haproxy-detailed-explanation.html","title":{"rendered":"haproxy\u8be6\u89e3"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | HAProxy\u662f\u4e00\u4e2a\u4f7f\u7528C\u8bed\u8a00\u7f16\u5199\u7684\u81ea\u7531\u53ca\u5f00\u653e\u6e90\u4ee3\u7801\u8f6f\u4ef6\uff0c\u5176\u63d0\u4f9b\u9ad8\u53ef\u7528\u6027\u3001\u8d1f\u8f7d\u5747\u8861\uff0c\u4ee5\u53ca\u57fa\u4e8eTCP\u548cHTTP\u7684\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7406\u3002HAProxy\u7279\u522b\u9002\u7528\u4e8e\u90a3\u4e9b\u8d1f\u8f7d\u7279\u5927\u7684web\u7ad9\u70b9\uff0c\u8fd9\u4e9b\u7ad9\u70b9\u901a\u5e38\u53c8\u9700\u8981\u4f1a\u8bdd\u4fdd\u6301\u6216\u4e03\u5c42\u5904\u7406\u3002HAProxy\u8fd0\u884c\u5728\u5f53\u524d\u7684\u786c\u4ef6\u4e0a\uff0c\u5b8c\u5168\u53ef\u4ee5\u652f\u6301\u6570\u4ee5\u4e07\u8ba1\u7684\u5e76\u53d1\u8fde\u63a5\u3002\u5e76\u4e14\u5b83\u7684\u8fd0\u884c\u6a21\u5f0f\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5f88\u7b80\u5355\u5b89\u5168\u7684\u6574\u5408\u8fdb\u60a8\u5f53\u524d\u7684\u67b6\u6784\u4e2d\uff0c \u540c\u65f6\u53ef\u4ee5\u4fdd\u62a4\u4f60\u7684web\u670d\u52a1\u5668\u4e0d\u88ab\u66b4\u9732\u5230\u7f51\u7edc\u4e0a\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1.\u5b89\u88c5haproxy<\/strong><\/div>\n CentOS\u81ea\u5e26\u4e86haproxy\uff0c\u4f46\u53ef\u80fd\u7248\u672c\u6bd4\u8f83\u8001\u3002\u53ef\u4ee5\u5728IUS\u6e90\u4e0a\u627e\u5230\u6700\u65b0\u7a33\u5b9a\u7248\u7684haproxy\u3002<\/p>\n cat <\/etc\/yum.repos.d\/ius.repo\r\n[ius]\r\nname=iusrepo\r\nbaseurl=https:\/\/mirrors.tuna.tsinghua.edu.cn\/ius\/stable\/CentOS\/$releasever\/\\$basearch\r\ngpgcheck=0\r\nenable=1\r\neof\r\n\r\nyum -y install haproxy17u\r\n<\/pre>\n |