我的web应用程序domain.com:9080/webapp工作正常。 我想从地址中删除端口号。 其中一个论坛的人build议我http://www.virtualmin.com/node/19608链接,我改变了httpd.conf文件。 之后,我的web应用程序无法正常工作,我再次改变httpd.conf恢复正常,但有错误。 问题..
1.服务命名不起始。
[root@ipaddress/]# service named start Starting named: Error in named configuration: zone domain.com/IN: loading from master file domain.com failed: file not found zone domain.com/IN: not loaded due to errors. _default/domain.com/IN: file not found zone 50.121.188.in-addr.arpa/IN: loading from master file 50.121.188.in-addr.arpa failed: file not found zone 50.121.188.in-addr.arpa/IN: not loaded due to errors. _default/50.121.188.in-addr.arpa/IN: file not found [FAILED] [root@ipaddress/]#
2.服务Httpd不工作..
service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED]
这是两个单独的错误。
命名的似乎是该区域的文件没有find。 您需要检查您的命名configuration,然后确保文件在那里(请注意,在许多情况下,在chroot环境中运行,所以当它指向/var/named/zones/X.zone时,实际的文件path是/无功/命名/ chroot环境的/ var /命名/区/ X.zone)。
与Apache,作为另一个海报提到,它看起来像它仍然运行,所以不能绑定到地址(或者也许还有别的东西仍在运行)。
停止Apache,然后检查确保没有httpd进程仍在运行,如果他们杀了他们。 比apache之后应该开始。