当前位置:首页 > 服务器系统 > Centos > 正文内容

Nginx TCP协议配置

一二三5年前 (2020-12-22)Centos834
stream {
    upstream zifangsky {
        hash $remote_addr consistent;
        server 10.10.100.31:8000;
    }
    server {
        listen 8080;
        proxy_connect_timeout 5s;
        proxy_timeout 5s;
        proxy_pass zifangsky;
    }
}


扫描二维码至手机访问

扫描二维码推送至手机访问。

版权声明:本文由一二三博客发布,如需转载请注明出处。

标签: Nginx
分享给朋友:

相关文章

CentOS查看端口使用情况

netstat -ntlp   //列出所有netstat -ntlp |grep 80    //显示80端口使用信息。...

Centos7 LVS+Keepalived+Nginx基于NAT模式构建高可用方案

Centos7 LVS+Keepalived+Nginx基于NAT模式构建高可用方案

1、准备机器名称网卡0网卡1VIPlvsmaster58.218.92.185(网关:58.218.92.1)10.77.1.20(不配置网关)58.218.92.187lvsbackup58.218...

MYSQL 查看最大连接数和修改最大连接数

MySQL查看最大连接数和修改最大连接数1、查看最大连接数show variables like '%max_connections%';2、修改最大连接数set GLOBAL max...

Centos7 使用scp命令进行数据迁移

复制文件(本地>>远程):scp -P 33699 /etc/nginx/conf.d/default.conf root@10.88.1.23:/...

Centos7 mariadb 10.5主主复制

1.主数据库(1)vim /etc/my.cnfport=3306server-id=129log-bin=mysql-binauto_increment_increment=2auto_increm...

Centos7 MariaDB Galera cluster初始化和启动报错两例

问题一:160613  0:43:36 [Note] WSREP: Read nil XID from storage engines, skipping position init1606...