我很困惑。这是我的 iptables 配置:
$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: UPDATE seconds: 60 hit_count: 3 TTL-Match name: sshprobe side: source mask: 255.255.255.255
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: SET name: sshprobe side: source mask: 255.255.255.255
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh …
Run Code Online (Sandbox Code Playgroud) 该分区位于使用软件 RAID 的 RAID1 中。
Command line used: iozone -s 190g -r 300k -O -b test_file
OPS Mode. Output is in operations per second.
random random bkwd record stride
KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
199229440 300 240 234 254 253 58 127 100 6539 91 234 234 254 254
Run Code Online (Sandbox Code Playgroud)
因此,对于 300K 块,使用一个线程的随机读取速度为 58 ops/second,大约为 17MB/s。
但是当我尝试 5 个线程每个读取 300K 块时,出乎意料的是它运行得更快,尽管我希望有更多的随机访问:
OPS Mode. Output is in operations per second.
Command line …
Run Code Online (Sandbox Code Playgroud) 我遇到的问题是 opendkim testkey 返回错误“无效的数据集类型”,除非我将域和选择器传递给命令。为什么会发生这种情况?详情如下:
没有域和选择器:
root@condor1796 /etc/opendkim # sudo -u opendkim opendkim-testkey -vvvv
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: invalid data set type
root@condor1796 /etc/opendkim #
Run Code Online (Sandbox Code Playgroud)
指定域和选择器:
root@condor1796 /etc/opendkim # sudo -u opendkim opendkim-testkey -vvvv -d numbeo.com -s mail
opendkim-testkey: using default configfile /etc/opendkim.conf
opendkim-testkey: checking key 'mail._domainkey.numbeo.com'
opendkim-testkey: key not secure
opendkim-testkey: key OK
Run Code Online (Sandbox Code Playgroud)
正如我在另一个线程中了解到的,关键的不安全输出是:
“密钥不安全”并不表示有错误。这是不使用 DNSSSEC 的预期结果。
这是我的配置文件:
root@condor1796 /etc/opendkim # cat /etc/opendkim.conf
OversignHeaders From
TrustAnchorFile /usr/share/dns/root.key
AutoRestart Yes
AutoRestartRate 10/1h
UMask 002
Syslog yes
SyslogSuccess Yes …
Run Code Online (Sandbox Code Playgroud)