nginx代理MySQL配置方法
打开 nginx\conf\nginx.conf ,添加以下配置即可。
http {
}
stream {
upstream mysql {
server 172.188.23.107:3306;
}
server {
listen 3306;
allow all;
proxy_connect_timeout 60s;
proxy_socket_keepalive on;
proxy_pass mysql;
}
} 最后更新于1年前
本文由人工编写,AI优化,转载请注明原文地址: nginx代理MySQL配置方法
推荐阅读
评论 (0)
发表评论
昵称:加载中...
暂无评论,快来发表第一条评论吧!