发新话题
打印

帮忙看一下apache到底怎么了???

帮忙看一下apache到底怎么了???

[root@localhost ~]# /etc/init.d/httpd start
启动 httpd:(99)Ca.78:nnot assign requested address: make_sock: could not bind to address 12.34.5680
no listening sockets available, shutting down
Unable to open logs
                                                            [失败]
[root@localhost ~]#

我该修改哪个配置文件?????      

TOP

就修改这个文件HTTPD.CONF,你看你有没有修改哪个端口      

TOP

#
#Listen 12.34.56.78:80
Listen 80
文件HTTPD.CONF中查找listen,改成你的IP和端口.
应该是这样      
):

TOP

<Directory "D:/apache/Apache2/htdocs">
......
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error.log

配置好目录和log文件.
我的是WIN OS下的,故是"D:\..."      
):

TOP

发新话题