AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-284373

kqr's questions

Martin Hope
kqr
Asked: 2020-01-25 12:04:39 +0800 CST

有没有类似时间序列的茎叶图?

  • 0

当想要快速查看一系列值的分布时,茎叶图是一个非常简单但功能强大的工具。教电脑画它需要几分钟,或者你可以简单地用手来做。

唯一的问题是它不保留值的顺序,其中有时包含有用的信息。我一直在尝试想一种同样简单的方法来绘制具有保留顺序的时间序列,但未能提出一些建议。

使用 X 轴上的时间和 Y 轴上的值制作常规时间序列图表的明显解决方案存在这样一个问题,即在进入实际渲染之前需要进行大量准备工作。它在概念上远没有茎叶图那么简单。

有什么东西吗?还是我要求的不可能?

哦,还有一个我差点忘记的重要要求:我希望它可以在行缓冲终端上轻松打印...


我在这里问的原因是因为我的主要用例是健康指标和来自服务器的其他样本。在排除系统故障的原因时,最好快速了解某些子系统随时间推移的行为方式。

performance monitoring metrics health statistics
  • 1 个回答
  • 23 Views
Martin Hope
kqr
Asked: 2015-12-16 01:49:48 +0800 CST

logrotate按照cron运行,但是日志没有轮换

  • 1

我logrotate使用脚本运行 cron

[alex@leia ~]$ cat /etc/cron.daily/logrotate
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf >/dev/null
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0

根据系统日志,它应该可以工作:

Dec 14 03:21:01 leia run-parts(/etc/cron.daily)[3041]: starting logrotate
Dec 14 03:21:01 leia run-parts(/etc/cron.daily)[3063]: finished logrotate

我希望这也能运行以下指令:

[alex@leia ~]$ cat /etc/logrotate.d/www-data_uwsgi_nginx
/home/www-data/*/logs/*/*log {
    rotate 5
    size 20M
    nocompress
    missingok
    postrotate
        touch /tmp/uwsgi-reload
        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
    endscript
    sharedscripts
}

但!它不会轮换/home/www-data. 其他日志被轮换。如果我logrotate手动运行

[alex@leia ~]$ sudo logrotate /etc/logrotate.conf

它确实会旋转有问题的日志。

我看到了 SELinux 问题所在的相关问题,并尝试了该解决方案,但对我的情况没有帮助。


编辑:根据要求,内容/etc/logrotate.conf:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
dateext

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    minsize 1M
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.
cron
  • 1 个回答
  • 3098 Views
Martin Hope
kqr
Asked: 2015-04-30 06:44:35 +0800 CST

为什么 Apache 可以访问我的大部分文件系统?

  • 1

我最近发现,只要我提供完整路径,我的 Web 服务器就会为我的文件系统上它具有读取权限的任何文件提供服务。换句话说,像

http://www.example.com/Users/john/Desktop/Costa%20Rica/DSC_0058.jpg

将很高兴由 Web 服务器提供服务。尽管每个设置都DocumentRoot指向 only /Library/WebServer/Documents。

为什么 Apache 服务于整个文件系统?可以关闭吗?

apache-2.2
  • 2 个回答
  • 920 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve