linux系统使用nginx代理mysql数据库

##使用nginx代理mysql数据库

##安装nginx

./configure --prefix=/home/yym/nginx/nginx-install/ --with-http_addition_module --with-http_realip_module --with-stream

make && make install

##nginx配置文件

stream {

upstream mysqlserver {

server 192.168.3.161:3306;

}

server {

listen 33060;

proxy_pass mysqlserver;

}

}

相关推荐
蓝黑2020几秒前
使用SSH tunnel访问内网的MySQL
mysql·ssh·proxy
夕泠爱吃糖24 分钟前
MySQL中的部分问题(1)
数据库·mysql
百度Geek说26 分钟前
Redis 数据恢复的月光宝盒,闪回到任意指定时间
数据库
秃了也弱了。1 小时前
DBSyncer:开源数据库同步利器,MySQL/Oracle/ES/SqlServer/PG/
数据库·mysql·开源
玄辰星君1 小时前
PostgreSQL 入门教程
数据库·postgresql
泽韦德2 小时前
【Redis】笔记|第9节|Redis Stack扩展功能
数据库·redis·笔记
喜欢踢足球的老罗2 小时前
使用 Spring Boot 3.3 和 JdbcTemplate 操作 MySQL 数据库
数据库·spring boot·mysql
文牧之2 小时前
PostgreSQL 的扩展pg_prewarm
运维·数据库·postgresql
行星0082 小时前
Postgresql字符串操作函数
数据库·postgresql
Adorable老犀牛3 小时前
负载均衡将https请求转发后端http服务报错:The plain HTTP request was sent to HTTPS port
nginx·http·https·负载均衡