![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 65
程序员青戈
这个作者很懒,什么都没留下…
展开
-
Windows配置nginx反向代理极简教程
因工作需要,nginx的各种配置经常用到,这里整理成文章,给后人乘凉原创 2021-02-03 13:16:10 · 10741 阅读 · 95 评论 -
centos7下Nginx安装
1、安装依赖和相关库:[root@localhost ~]# yum -y install gcc-c++ zlib-devel openssl-devel libtool2、下载nginx安装包并解压:[root@localhost ~]# cd /usr/loal[root@localhost local]# wget http://nginx.org/download/nginx-...原创 2018-10-15 17:13:15 · 412 阅读 · 0 评论 -
unknown directive “stream” in /usr/local/nginx
nginx默认安装的时候无法加载流stream模块,需要早启动参数里加上–with-stream。解决方法:重新对源文件进行编译、安装,通过添加–with-stream参数指定安装stream模块。[root@localhost nginx-1.12.2]# ./configure --with-stream[root@localhost nginx-1.12.2]# make &...原创 2018-10-15 17:33:43 · 45081 阅读 · 15 评论 -
【转】nginx文件、时间单位
计量大小的单位:bytes, kilobytes(后缀为 k 或 K), megabytes(后缀为 m 或 M),例如:“1024”, “8k”, “1m”.时间单位:ms milliseconds 毫秒s seconds m minutesh hoursd daysw weeksM months, 30 daysy years, 365 d...转载 2018-10-17 16:38:26 · 2193 阅读 · 0 评论 -
nginx配置tcp负载均衡
nginx负载tcp服务和http负载的方式很类似,但是会出现超时丢失连接的问题,所以要设置他的超时时间:stream{ upstream libreoffice{ server 192.168.1.1:8001 weight=1; server 192.168.1.2:8002 weight=1; } server { proxy_connect_t...原创 2018-10-17 17:26:38 · 1903 阅读 · 0 评论 -
离线安装
参考博客:https://blog.csdn.net/qq_19875973/article/details/80690388转载 2018-10-17 17:58:19 · 540 阅读 · 0 评论 -
nginx代理静态目录
代理html目录:server { listen 80; server_name 0.0.0.0; location / { root /home/dist; index index.html; } }代理静态文件目录:server {...原创 2019-07-01 11:01:14 · 4067 阅读 · 1 评论