我在家用 Windows 计算机上用于连接到公司服务器的 VPN 是 Cisco 客户端。客户端配置为使用“IPSec over UDP (NAT/PAT)”。
为什么要使用 UDP(一种“不可靠”的协议)来建立安全隧道?当UDP数据包被丢弃时,协议的不可靠性会不会导致问题?
还是协议使用 UDP 但在应用层增加了可靠性?
假设我刚刚aptitude safe-upgrade在 Debian 系统上做了一个,但我没有注意所以我没有注意到内核是否更新。
我现在如何确定是否进行了内核升级和重新启动?
我有一个 Apache 2.2 服务器可以工作,但NameVirtualHost *:443 has no VirtualHosts在重新启动时收到警告。但我确实有匹配的 VirtualHosts *:443。
该系统是Debian挤压。该ports.conf文件如下所示:
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
NameVirtualHost *:443
Listen 443
</IfModule>
Run Code Online (Sandbox Code Playgroud)
这是-S使用 apache2ctl运行该选项时的输出:
% /usr/sbin/apache2ctl -S
[Sat Mar 06 10:07:11 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443 is a NameVirtualHost
default server q2a-dev.example.org (/etc/apache2/sites-enabled/q2a:1)
port 443 namevhost q2a-dev.example.org (/etc/apache2/sites-enabled/q2a:1)
port 443 namevhost tcert-dev.example.org (/etc/apache2/sites-enabled/tcert-dev:1)
*:80 is a NameVirtualHost
default server emailtest-dev.example.org (/etc/apache2/sites-enabled/emailtest:1) …Run Code Online (Sandbox Code Playgroud) 使用 Apache 2.4 httpd 我开始看到这样的日志消息:
[mpm_prefork:notice] [pid 1521] AH00163: Apache/2.4.10 ...
[core:notice] [pid 1521] AH00094: Command line: '/usr/sbin/apache2'
Run Code Online (Sandbox Code Playgroud)
我可以推断出这两个的含义,但我想要一个列出所有这些“AH”代码及其含义的来源。那个来源在哪里?
我在使用 logrotate 3.12.2 中的 prerotate 脚本时遇到了问题。我在该prerotate/endscript部分中指定的脚本没有接收要轮换的文件名作为第一个参数 ( $1)。
这是 logrotate 配置:
compress
/external-logs/syslog {
daily
rotate 3
olddir OLD
missingok
prerotate
/root/filter-syslog.sh
endscript
}
Run Code Online (Sandbox Code Playgroud)
这是/root/filter-syslog.sh:
#!/bin/sh
echo "log file subject to prerotate: $1"
Run Code Online (Sandbox Code Playgroud)
最后,这是 logrotate 运行的详细输出:
reading config file /external-config/logrotate.conf
olddir is now OLD
Reading state from file: /external-logs/logrotate.state
Allocating hash table for state file, size 64 entries
Creating new state
Handling 1 logs
rotating pattern: /external-logs/syslog after 1 days (3 rotations)
olddir is OLD, …Run Code Online (Sandbox Code Playgroud) (不要尝试这个!)
lsof -i | head 100 | xargs rm-r
Run Code Online (Sandbox Code Playgroud)
执行此操作后,我无法登录,因为它已删除/bin/bash。重启也没用。显示内核错误和服务器崩溃。