top并mpstat显示出不同的结果。
top:
%Cpu(s): 10.9 us, 3.1 sy, 0.0 ni, 85.2 id, 0.2 wa, 0.0 hi, 0.7 si, 0.0 st
31426 www-data 20 0 309088 21276 14600 S 22.3 0.1 0:07.36 php-fpm: pool www
31431 www-data 20 0 308980 21232 14568 S 22.3 0.1 0:01.69 php-fpm: pool www
31423 www-data 20 0 308992 21376 14664 S 21.6 0.1 0:08.38 php-fpm: pool www
31437 www-data 20 0 308988 21224 14568 R 20.9 0.1 0:00.66 php-fpm: pool www
Run Code Online (Sandbox Code Playgroud)
和 …
/etc/apparmor.d/usr.sbin.named
/var/log/bind9/** rw,
/var/log/bind9/ rw,
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
auth-nxdomain no;
listen-on-v6 { any; };
statistics-file "/var/cache/bind/named.stats";
rrset-order {order cyclic;};
allow-transfer { 127.0.0.1; };
};
logging {
channel b_query {
file "/var/log/bind9/query.log" versions 2 size 1m;
print-time yes;
severity info;
};
category queries { b_query; };
};
Run Code Online (Sandbox Code Playgroud)
服务 bind9 状态
isc_stdio_open '/var/log/bind9/query.log' 失败:权限被拒绝
我已经在其中创建了 bind9/var/log并root:bind获得了许可755
我已经重新启动了 apparmor 和 bind9 相同的错误。怎么了 ?