我正在运行 Ubuntu 服务器并且正在寻找开源/免费的服务器监控实用程序。我们不需要任何太花哨的东西。主要是我们想知道服务器何时离线或者是否有任何核心服务有问题。最好是可以向我们发送短信或电子邮件的东西会很棒。
更新
我计划将其置于其监控的系统之外。它最多会监控 3 个服务器。
更新
我想要一些看起来很专业的东西。
我正在尝试设置 SSL SVN 服务器,当我尝试远程结帐时出现错误 Server certificate
was missing commonName attribute in subject name
我做了一些谷歌搜索,据我所知,我需要openss.cnf使用如下commonName属性添加我正在访问的 URL 的 IP 地址。我这样做了,但我仍然收到错误消息。
commonName = xx.xxx.xx.xx
commonName_max = 64
Run Code Online (Sandbox Code Playgroud) 我正在构建我的第一台服务器。我有大约 1,000 美元的开始预算,我想确保获得一个可以在未来升级的主板,最好能够获得高达 32 GB 的 RAM、双四核处理器或类似的东西。
我肯定想要 2 个硬盘驱动器,这样我就可以镜像我的主驱动器,所以如果它失败了,我已经准备好了备份。
当我搜索这些规格时,我应该关注什么?
更新
我更喜欢用现成的零件来建造它。
我将在这台服务器上运行 MySQL/PHP 驱动的网站。没有什么特别的,我能想到它。
我正在设置一个 crontab 来每天自动生成我们的 Doxygen 文档。我只想有一个执行此操作的命令,而不是创建一个执行此操作的 .sh 文件。我的问题是,通常我doxygen CONFIGFILE在要为其生成文档的当前目录中运行。我想在 cron 上设置它,这样它每天早上都会发生,但是由于该命令在当前目录中运行,我不能......我怎么能在单个 cron 命令中使它知道哪个目录运行命令?
我不小心删除了我正在处理的站点根目录中的 .svn 文件夹。因此,我需要从该项目中删除所有 .svn,重新结帐,然后用我拥有的内容覆盖该结帐。问题是,我不确定如何在 linux 中递归删除目录。
是否可以用域名或子域替换“*”?
<VirtualHost *:443>
更新
问题是我在启动 apache 时遇到这个错误:
[Mon Aug 16 13:42:48 2010] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
Run Code Online (Sandbox Code Playgroud)
我在 :443 上有一个用于子域的虚拟主机和一个用于主域的虚拟主机。当我删除子域时,我不再收到该错误。
作为旁注,如果此配置可以更有效,请告诉我如何
domain.com 配置
<VirtualHost *:80>
ServerAdmin webmaster@domain.com
ServerName www.domain.com
ServerAlias domain.com
ServerAlias xx.xxx.xxx.xx
# Directory Root.
DocumentRoot /sites/domain.com/www/
# Logfiles
ErrorLog /sites/domain.com/logs/error.log
CustomLog /sites/domain.com/logs/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName www.domain.com
# Directory Root.
DocumentRoot /sites/domain.com/www/
# Enable SSL
SSLEngine On
SSLCertificateFile /sites/domain.com/ssl/star_domain_com.crt
SSLCertificateKeyFile /sites/domain.com/ssl/ikeyless.key
SSLCertificateChainFile /sites/domain.com/ssl/DigiCertCA.crt
SetEnvIf User-Agent ..*MSIE.*. nokeepalive ssl-unclean-shutdown
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
support.domain.com 配置 …
我的服务器上的时间已经正确同步了几个星期,然后我们上周重新启动了服务器,今天休息了 10 分钟。我做了“sudo ntpdate ntp.ubuntu.com”并得到:
4 Oct 14:22:08 ntpdate[17734]: the NTP socket is in use, exiting
我猜这意味着它已经在运行……但是为什么当我重新启动服务器时它没有运行?
更新
/etc/ntp.conf
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server ntp.ubuntu.com
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
Run Code Online (Sandbox Code Playgroud) 如何使用 dns 条目将https://s3.amazonaws.com/BUCKET屏蔽为子域(静态)?
我的亚马逊存储桶名称是 static.gamer-source.com
CNAME 条目是:(static CNAME static.gamer-source.com.s3.amazonaws.com.这是通过 ENOM 的主机记录管理器设置的)
我在我的 crontab 上看到这个错误:
Dec 8 09:51:01 ikeyprod cron[29245]: Error: bad username; while reading /etc/crontab
Run Code Online (Sandbox Code Playgroud)
我已经验证这些命令都可以通过 sudo 手动推送。
-rw-r--r-- 1 root root 2.2K 2010-12-08 09:50 crontab
Run Code Online (Sandbox Code Playgroud)
这些命令没有被运行,我不知道为什么......但我看到了上述错误......
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
MAILTO="web@domain.com"
# m h dom …Run Code Online (Sandbox Code Playgroud)