国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 操作系統(tǒng) > 正文

Nginx TCP負(fù)載配置模板

2024-06-28 16:02:21
字體:
供稿:網(wǎng)友

Nginx TCP負(fù)載配置模板

nginx.conf內(nèi)容:

user nginx;worker_PRocesses 1;error_log /var/log/nginx/error.log warn;pid /var/run/nginx.pid;events { worker_connections 1024;}http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/http.conf.d/*.conf;}stream { include /etc/nginx/stream.conf.d/*.conf;}

/etc/nginx/http.conf.d/下default.conf樣例

server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; }}

/etc/nginx/stream.conf.d/下example.conf樣例

upstream backend { server 172.19.10.101:6443; server 172.19.10.101:6443;}server { listen 8443; proxy_connect_timeout 1s; proxy_timeout 3s; proxy_pass backend;}
上一篇:PXE

下一篇:git 查看某文件的修改歷史

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 汽车| 惠州市| 桂平市| 仁布县| 高尔夫| 手游| 齐河县| 临海市| 苏尼特左旗| 长寿区| 长兴县| 宜兰市| 孟津县| 万山特区| 信丰县| 福贡县| 基隆市| 搜索| 崇州市| 怀集县| 慈溪市| 文水县| 青冈县| 军事| 长沙市| 沂水县| 定陶县| 铁岭县| 普格县| 武清区| 寻乌县| 澜沧| 桐柏县| 天水市| 桐柏县| 电白县| 利川市| 西乌珠穆沁旗| 清水河县| 伊春市| 韩城市|