nginx配置文件简单介绍nginx配置文件所在位置:/usr/local/nginx/conf我们使用vi命令查看nginx.conf里面内容cd/usr/local/nginx/confvinginx.conf下面我们就对里面内容进行分块讲解一下第一部分全局块#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglog
分类:
其他好文 时间:
2020-04-24 01:48:54
阅读次数:
72
随着并发量上升,nginx开始出现502,即nginx已经发现不了存活的后端了但是web程序没有任何错误,后端的数据库也很正常,查看nginx错误日志tail-f/usr/local/nginx/log/error.log[error]31365#0:*11971189upstreamtimedout(110:Connectiontimedout)whilereadingresponseheade
分类:
其他好文 时间:
2020-04-22 09:43:58
阅读次数:
63
原文:Nginx知多少系列之(五)Linux下托管.NET Core项目 目录 1.前言 2.安装 3.配置文件详解 4.工作原理 5.Linux下托管.NET Core项目 6.Linux下.NET Core项目负载均衡 7.Linux下.NET Core项目Nginx+Keepalived高可用... ...
分类:
Web程序 时间:
2020-04-13 00:54:47
阅读次数:
83
异常信息 异常解读 异常处理 nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied)2020/04/12 09:46:2 ...
分类:
Web程序 时间:
2020-04-12 10:32:17
阅读次数:
73
#运行用户 user www-data; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; #工作模式及连接数上限 ev ...
分类:
其他好文 时间:
2020-04-11 00:12:40
阅读次数:
80
说明:favicon.ico占用nginx error_log日志大量信息,把我们真正需要查看的日志给覆盖。因此这里,我们通过log_not_found off关闭它。 实现://把以下配置放到 server {} 块,关闭favicon.ico不存在时记录日志 location = /favico ...
分类:
其他好文 时间:
2020-04-05 13:15:20
阅读次数:
51
问题1:交叉工具链:cross-2.95.3.tar.bz2(下载地址:http://ftp.arm.linux.org.uk/pub/armlinux/toolchain/),开始使用的交叉工具链是arm-linux-gcc-3.3.2(下载地址:http://www.handhelds.org/ ...
分类:
其他好文 时间:
2020-03-25 10:45:15
阅读次数:
89
最近在研究ThinkPHP5.1框架,服务器是CentOS7,在配置到Nginx的时候出了点小问题,因为测试练习的服务器上还有其他的程序,所以路径访问过程中需要重新配置。 1.tp5.1框架URL访问pathinfo模式,在访问中省略 index.php location / { if (!-e $ ...
分类:
Web程序 时间:
2020-03-24 10:38:49
阅读次数:
122
某天发现项目的kibana网页莫名其妙访问不了了 进入linux系统发现kibana进程没了,于是开始重启,发现重启的极其慢 进入控制台,发现索引报了一个错 Index lifecycle error cluster_block_exception: index [java-error-log-pe ...
分类:
其他好文 时间:
2020-03-23 18:33:57
阅读次数:
151
nginx安装: docker run --name nginx \ --volume /var/data/nginx/nginx.conf:/etc/nginx/nginx.conf \ --volume /var/data/nginx/error.log:/var/log/nginx/error ...
分类:
其他好文 时间:
2020-03-17 08:19:57
阅读次数:
63