##使用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;
}
}