Linux中named.pid permission denied解决方法

 

 [root@localhost etc]# named -g 

Jun 13 11:18:01.227 starting BIND 9.2.4rc6 -g 
Jun 13 11:18:01.227 using 1 CPU 
Jun 13 11:18:01.233 loading configuration from '/etc/named.conf' 
Jun 13 11:18:01.241 no IPv6 interfaces found 
Jun 13 11:18:01.242 listening on IPv4 interface lo, 127.0.0.1#53 
Jun 13 11:18:01.243 binding TCP socket: address in use 
Jun 13 11:18:01.243 listening on IPv4 interface eth0, 150.31.3.251#53 
Jun 13 11:18:01.244 binding TCP socket: address in use 
Jun 13 11:18:01.249 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use 
Jun 13 11:18:01.250 ignoring config file logging statement due to -g option 
Jun 13 11:18:01.250 couldn't open pid file '/var/run/named/named.pid': Permission denied 
Jun 13 11:18:01.250 exiting (due to early fatal error) 

named.pid permission denied

 
解决方法:
chown named:root /var/run/named 

service named start

你可能感兴趣的:(linux,职场,解决方法,休闲)