宝塔用户_tsyncd 发表于 2024-6-26 19:04:53

【待反馈】nginx 没有日志

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本: nginx 1.24.0   或者   nginx 1.26.1
系统版本:almalinux 9.4.0
问题描述:没有日志
相关截图(日志、错误):2024/06/25 19:44:03 305942#0: *5 open socket #23 left in connection 92024/06/25 19:44:03 305942#0: *6 open socket #24 left in connection 102024/06/25 19:44:03 305942#0: aborting2024/06/25 20:06:50 350188#0: *31 open socket #23 left in connection 102024/06/25 20:06:50 350188#0: aborting



只有上面一节日志,   再无输出了

运维技术阿闯 发表于 2024-6-27 09:20:50

您好,您查看一下,是否因为只有一个链接提示
其他的日志您看一下文件中的日志文件/www/server/nginx/logs目录下的错误日志

宝塔用户_tsyncd 发表于 2024-6-27 14:49:55

运维技术阿闯 发表于 2024-6-27 09:20
您好,您查看一下,是否因为只有一个链接提示
其他的日志您看一下文件中的日志文件/www/server/nginx/logs ...

并没有链接提示


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



2024/06/25 19:42:17 303758#0: signal process started
2024/06/25 19:42:21 303979#0: signal process started
2024/06/25 19:42:54 305272#0: signal process started
2024/06/25 19:42:59 305493#0: signal process started
2024/06/25 19:43:08 305908#0: signal process started
2024/06/25 19:43:59 308065#0: signal process started

运维技术阿闯 发表于 2024-6-27 15:52:26

宝塔用户_tsyncd 发表于 2024-6-27 14:49
并没有链接提示




您好,您在您面板日志中可以查看到站点日志和nginx日志,这两个看一下

宝塔用户_tsyncd 发表于 2024-6-27 19:11:09

运维技术阿闯 发表于 2024-6-27 15:52
您好,您在您面板日志中可以查看到站点日志和nginx日志,这两个看一下

里面一样没有日志

运维技术阿闯 发表于 2024-6-28 09:16:00

宝塔用户_tsyncd 发表于 2024-6-27 19:11
里面一样没有日志

您好,您的站点目前是有访问量吗

宝塔用户_tsyncd 发表于 2024-7-16 11:52:59

2024/06/30 19:08:59 3975#0: signal process started
2024/06/30 19:09:02 4081#0: signal process started
2024/06/30 19:09:35 5027#0: signal process started
2024/06/30 19:09:41 5228#0: signal process started
2024/06/30 19:14:30 15050#0: signal process started
2024/06/30 19:14:33 15142#0: signal process started
2024/06/30 19:15:28 18398#0: signal process started
2024/06/30 19:15:39 18727#0: signal process started
2024/06/30 19:15
2024/07/16 10:19:41 20105#0: signal process started
2024/07/16 10:24:45 27857#0: unknown directive "http://127.0.0.1:3001/manage" in /www/server/nginx/conf/nginx.conf:87
2024/07/16 10:25:02 28312#0: signal process started
2024/07/16 10:25:06 28407#0: signal process started
2024/07/16 10:25:45 29433#0: signal process started
2024/07/16 10:25:55 29687#0: signal process started
2024/07/16 10:31:03 8371#0: signal process started
2024/07/1

宝塔用户_tsyncd 发表于 2024-7-16 11:53:40

本帖最后由 宝塔用户_tsyncd 于 2024-7-16 11:54 编辑

都是一些这种信息,   很奇怪,   即使访问404也没有信息输出,我已经点击bt的重载配置了

宝塔用户_tsyncd 发表于 2024-7-16 11:59:16

自己手动 nginx -C   XXX

运维技术阿闯 发表于 2024-7-16 12:18:56

宝塔用户_tsyncd 发表于 2024-7-16 11:59
自己手动 nginx -C   XXX

您好,您这边检查一下配置文件 nginx -t

宝塔用户_tsyncd 发表于 2024-7-16 13:37:55

#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
#nginx -t
nginx: the configuration file /www/server/nginx/conf/nginx.conf ...

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

查看这个文件的87并修改

宝塔用户_tsyncd 发表于 2024-7-16 15:53:03

运维技术阿闯 发表于 2024-7-16 14:22
您好,您这里提示了一个未知指令
2024/07/16 10:24:45 27857#0: unknown directive "http://127. ...

已经修改好了,   也能正常运行,但就是没有日志,    目前一个比较棘手的问题是 ,比如用location配置代理 ,路径对不对也没有日志出现, ,,,,,

宝塔用户_tsyncd 发表于 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   这个
页: [1] 2
查看完整版本: 【待反馈】nginx 没有日志