在Centos6.4系统中启动服务报错的总结

1.在启动DNS时出现Generating /etc/rndc.key:卡在这里了

[root@redhat named]# /etc/init.d/named restart
Stopping named:                                            [  OK  ]
Generating /etc/rndc.key:
^C
[root@redhat named]#


解决方法:

[root@redhat named]# rndc-confgen -r /dev/urandom -a
wrote key file "/etc/rndc.key"
[root@redhat named]# /etc/init.d/named restart
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
[root@redhat named]#


 2.启用apache服务的出错信息

wKioL1Mb5eyjRa8RAAEY5kY1UIY198.jpg

解决方法:

wKiom1Mb5mTAZ0xYAABoR9X0_hk692.jpg

测试:

wKiom1Mb5oWxbe4fAABPc3-iSz4694.jpg

3.启动nginx服务出错

[root@centos sbin]# ./nginx
nginx: [emerg] getpwnam("nginx") failed
[root@centos sbin]#


解决方法:

[root@centos sbin]# vim ../conf/nginx.conf
user  nobody;          --去掉前面的#号


测试:

[root@centos sbin]# ./nginx
[root@centos sbin]# netstat -anp | grep :80
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      4446/nginx
[root@centos sbin]#

 

你可能感兴趣的:(在Centos6.4系统中启动服务报错的总结)