宝塔618特惠活动,企业版999元/年,宝塔SSL证书买1送1!限时抢购!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【待反馈】nginx 没有日志

发表在 Linux面板2024-6-26 19:04 [复制链接] 17 2901

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本: nginx 1.24.0   或者   nginx 1.26.1
系统版本:almalinux 9.4.0
问题描述:  没有日志

相关截图(日志、错误):2024/06/25 19:44:03 [alert] 305942#0: *5 open socket #23 left in connection 9
2024/06/25 19:44:03 [alert] 305942#0: *6 open socket #24 left in connection 102024/06/25 19:44:03 [alert] 305942#0: aborting2024/06/25 20:06:50 [alert] 350188#0: *31 open socket #23 left in connection 102024/06/25 20:06:50 [alert] 350188#0: aborting



只有上面一节日志,   再无输出了
使用道具 举报 只看该作者 回复
发表于 2024-6-27 09:20:50 | 显示全部楼层
您好,您查看一下,是否因为只有一个链接提示
其他的日志您看一下文件中的日志文件/www/server/nginx/logs目录下的错误日志
使用道具 举报 回复 支持 反对
发表于 2024-6-27 14:49:55 | 显示全部楼层
运维技术阿闯 发表于 2024-6-27 09:20
您好,您查看一下,是否因为只有一个链接提示
其他的日志您看一下文件中的日志文件/www/server/nginx/logs ...

并没有链接提示


www/server/nginx/logs 的日志也很少,  全部都是启动日志,    请问访问日志没有吗



[code]2024/06/25 19:42:17 [notice] 303758#0: signal process started
2024/06/25 19:42:21 [notice] 303979#0: signal process started
2024/06/25 19:42:54 [notice] 305272#0: signal process started
2024/06/25 19:42:59 [notice] 305493#0: signal process started
2024/06/25 19:43:08 [notice] 305908#0: signal process started
2024/06/25 19:43:59 [notice] 308065#0: signal process started
使用道具 举报 回复 支持 反对
发表于 2024-6-27 15:52:26 | 显示全部楼层

您好,您在您面板日志中可以查看到站点日志和nginx日志,这两个看一下
使用道具 举报 回复 支持 反对
发表于 2024-6-27 19:11:09 | 显示全部楼层
运维技术阿闯 发表于 2024-6-27 15:52
您好,您在您面板日志中可以查看到站点日志和nginx日志,这两个看一下

里面一样没有日志
使用道具 举报 回复 支持 反对
发表于 2024-6-28 09:16:00 | 显示全部楼层

您好,您的站点目前是有访问量吗
使用道具 举报 回复 支持 反对
发表于 2024-7-16 11:52:59 | 显示全部楼层
  1. 2024/06/30 19:08:59 [notice] 3975#0: signal process started
  2. 2024/06/30 19:09:02 [notice] 4081#0: signal process started
  3. 2024/06/30 19:09:35 [notice] 5027#0: signal process started
  4. 2024/06/30 19:09:41 [notice] 5228#0: signal process started
  5. 2024/06/30 19:14:30 [notice] 15050#0: signal process started
  6. 2024/06/30 19:14:33 [notice] 15142#0: signal process started
  7. 2024/06/30 19:15:28 [notice] 18398#0: signal process started
  8. 2024/06/30 19:15:39 [notice] 18727#0: signal process started
  9. 2024/06/30 19:15
  10. 2024/07/16 10:19:41 [notice] 20105#0: signal process started
  11. 2024/07/16 10:24:45 [emerg] 27857#0: unknown directive "http://127.0.0.1:3001/manage" in /www/server/nginx/conf/nginx.conf:87
  12. 2024/07/16 10:25:02 [notice] 28312#0: signal process started
  13. 2024/07/16 10:25:06 [notice] 28407#0: signal process started
  14. 2024/07/16 10:25:45 [notice] 29433#0: signal process started
  15. 2024/07/16 10:25:55 [notice] 29687#0: signal process started
  16. 2024/07/16 10:31:03 [notice] 8371#0: signal process started
  17. 2024/07/1
复制代码
使用道具 举报 回复 支持 反对
发表于 2024-7-16 11:53:40 | 显示全部楼层
本帖最后由 宝塔用户_tsyncd 于 2024-7-16 11:54 编辑

都是一些这种信息,     很奇怪,   即使访问404也没有信息输出,  我已经点击bt的重载配置了
使用道具 举报 回复 支持 反对
发表于 2024-7-16 11:59:16 | 显示全部楼层
自己手动 nginx -C   XXX
微信图片_20240716115947.png
使用道具 举报 回复 支持 反对
发表于 2024-7-16 12:18:56 | 显示全部楼层
宝塔用户_tsyncd 发表于 2024-7-16 11:59
自己手动 nginx -C   XXX

您好,您这边检查一下配置文件 nginx -t
使用道具 举报 回复 支持 反对
发表于 2024-7-16 13:37:55 | 显示全部楼层
[root@VM-8-6-centos logs]#  nginx -t
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful
使用道具 举报 回复 支持 反对
发表于 2024-7-16 14:22:39 | 显示全部楼层
宝塔用户_tsyncd 发表于 2024-7-16 13:37
[root@VM-8-6-centos logs]#  nginx -t
nginx: the configuration file /www/server/nginx/conf/nginx.conf ...

您好,您这里提示了一个未知指令
2024/07/16 10:24:45 [emerg] 27857#0: unknown directive "http://127.0.0.1:3001/manage" in /www/server/nginx/conf/nginx.conf:87

查看这个文件的87并修改
使用道具 举报 回复 支持 反对
发表于 2024-7-16 15:53:03 | 显示全部楼层
运维技术阿闯 发表于 2024-7-16 14:22
您好,您这里提示了一个未知指令
2024/07/16 10:24:45 [emerg] 27857#0: unknown directive "http://127. ...

已经修改好了,   也能正常运行,  但就是没有日志,    目前一个比较棘手的问题是 ,比如用location配置代理 ,  路径对不对也没有日志出现, ,,,,,
使用道具 举报 回复 支持 反对
发表于 2024-7-16 16:06:21 | 显示全部楼层
stream {
    log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time';
  
    access_log /www/wwwlogs/tcp-access.log tcp_format;
    error_log /www/wwwlogs/tcp-error.log;
    include /www/server/panel/vhost/nginx/tcp/*.conf;
}


是不是这是需要设置.....  我回头查查
使用道具 举报 回复 支持 反对
发表于 2024-7-16 16:33:00 | 显示全部楼层
宝塔用户_tsyncd 发表于 2024-7-16 16:06
stream {
    log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_re ...

您好,不是的,应该是在附近有一个http://127.0.0.1:3001/manage   这个
使用道具 举报 回复 支持 反对
12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表