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-120471

smonff's questions

Martin Hope
smonff
Asked: 2014-09-26 05:39:45 +0800 CST

在不受支持的 Ubuntu 服务器上修补 Shellshock Bash 错误的推荐方法是什么?

  • 6

我维护了一个不受支持的 Ubuntu 12.10 (Quantal Quetzal) 服务器(请不要问我为什么),我们需要修补Shellshock Bash 安全漏洞。由于升级不再可用,推荐的修补 Bash 的方法是什么?

我找到了这个答案(它建议从 Debian 检索软件包并且不安装二进制软件包,而是从源安装软件包)。这对我来说似乎没问题,但还有什么其他建议?

ubuntu
  • 6 个回答
  • 12438 Views
Martin Hope
smonff
Asked: 2014-07-08 10:21:12 +0800 CST

Monit 和多个操作:在 Monit 重启命令中链接命令?

  • 3

经过一些研究,即使我能找到一些关于重启服务时的多个操作的讨论,也似乎不太可能实现:

 if failed port 80 and protocol http
     then exec /home/sweet/script.pl
     and restart

在monitrc配置文件中为服务声明重启命令时,是否可以尝试以下操作:

restart program = "perl /home/sweet/crazy-stuff.pl && /etc/init.d/server restart"

由于monit -t不提任何错误,我更愿意在做坏事之前问。

configuration
  • 2 个回答
  • 5084 Views
Martin Hope
smonff
Asked: 2014-06-18 02:53:37 +0800 CST

监控配置重新加载 - 应该重新启动受监控的服务?

  • 12

在 Ubuntu 服务器上运行 Monit 5.4。当我使用monit reload时,它似乎重新启动了受监控的服务(在这种情况下为 Tomcat 7)。这是预期的行为吗?文档说:

reload - 重新初始化正在运行的 Monit 守护程序,守护程序将重新读取其配置,关闭并重新打开日志文件。

我希望它不会重新启动任何服务,而只会重新加载它的配置,这样我就可以更改电子邮件警报和其他内容。

这是的输出monit status

The Monit daemon 5.4 uptime: 15h 0m 

Process 'tomcat7'
  status                            Running
  monitoring status                 Monitored
  pid                               38842
  parent pid                        1
  uptime                            14h 30m 
  children                          0
  memory kilobytes                  3445964
  memory kilobytes total            3445964
  memory percent                    10.4%
  memory percent total              10.4%
  cpu percent                       14.8%
  cpu percent total                 14.8%
  port response time                0.018s to localhost:80 [HTTP via TCP]
  data collected                    Tue, 17 Jun 2014 15:39:36

System 'mytiny.company.net'
  status                            Running
  monitoring status                 Monitored
  load average                      [0.32] [0.49] [0.57]
  cpu                               15.5%us 0.2%sy 0.0%wa
  memory usage                      8217684 kB [25.0%]
  swap usage                        14980 kB [0.7%]
  data collected                    Tue, 17 Jun 2014 15:39:36

这是Tomcat的监控配置monitrc

# Tomcat
check process tomcat7 with pidfile /var/run/tomcat7.pid
start program = "/etc/init.d/tomcat7 restart"
stop program = "/etc/init.d/tomcat7 stop"

if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart

if failed port 80 and protocol http
  then restart
if 5 restarts within 5 cycles then timeout

文件的其余部分为默认值,但检查间隔为 60 秒。Tomcat 确实在 80 端口上运行。

ubuntu
  • 1 个回答
  • 22082 Views
Martin Hope
smonff
Asked: 2012-05-10 06:12:39 +0800 CST

我怎么知道我的服务器位于何处(物理上)?

  • -1

我想知道我的服务器的物理位置。是否有可用于从命令行 (GNU/Linux) 获取此信息(纬度/经度)的工具?

localization whois
  • 4 个回答
  • 6173 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