Build Nginx Http/Tcp proxy server Guide Line
来源:互联网 发布:java项目中多线程使用 编辑:程序博客网 时间:2024/06/02 01:59
Deployment environment:
System : windows 7
Software : nginx-1.9.0 , MySQL-Front , MySQL 5.7
First step : Download and install the Nginx server software.
1.Download url : http://nginx.org/en/download.html (Version 1.9 and above)
2.Unzip the download nginx files to the install folder and rename folder to “nginx”
Second Stop: Start and test the Nginx.
1.edit the nginx -> conf -> nginx.conf file (Optional step )
Change the listen port ( default is 80 ):
2.enter the nginx ,double click the nginx.exe or start in the command line. (Must Step)
Command line method:
Open the task manager -> Processes ( must )
Test in browser:
Third step : Add the TCP proxy module in nginx.conf and testing.
1.add the stream module to nginx.conf (end of the text )
stream {
upstream cloudsocket {
hash $remote_addr consistent;
server 127.0.0.1:3306 weight=5 max_fails=3 fail_timeout=30s;}
server {
listen 2014;
proxy_connect_timeout 30s;
proxy_timeout 600s;
proxy_pass cloudsocket;
}
}
2.reload the conf through command line.
3.Test in other competer to connect mysql Database through port 2014.
Using the MySQL-Front connect :
If the connection successful and allow to operate the database, signify the nginx has been set up successfully.
Ps:the mysql account is test data,must use real accounts when you deploy.
Ps:自己写的Guide Line,英文太差,有错欢迎指出,指出必改,非常感谢。
- Build Nginx Http/Tcp proxy server Guide Line
- delphi tcp http proxy
- java http proxy server
- Nginx tcp proxy module试用
- Android http proxy server 设置
- Android SDK HTTP Proxy Server
- Nginx TCP Proxy模块的编译安装
- nginx tcp proxy 连接保持设置
- nginx http proxy 正向代理 实例
- nginx http proxy模块缓冲区管理
- nginx http proxy接收响应过程(一)
- nginx 配置 http proxy 和fastcgi
- 使用nginx作为websocket的proxy server
- nginx tcp http 代理配置
- My Annotation for HTTP Proxy server: PythonProxy
- BES server的http proxy设置
- HTTP 2.0 Client & HTTP 2.0 Server & HTTP 2.0 Proxy
- build web server based on nginx
- DataDivisionByKim
- Ubuntu 15.10 x64 安装 Android SDK
- 阅读中遇到的一些概念
- ios开发——日常之iOS系统控件高度
- 利用ndk c/c++ 实现android短信部分功能
- Build Nginx Http/Tcp proxy server Guide Line
- spring boot 原理、demo 与打包运行
- Android 动画详解
- 关于XML解析
- Objective-C Runtime 一小时入门教程(上)
- 【亲测】ubuntu14.10建立热点wifi分享给手机
- [nodejs] 格式化日期、ejs模板引擎改变.ejs为.html、mongoose查询所有
- Maven 打jar包配置
- 银行业务的一些概念