求助,apache起不来??
已配置好,可是起不来??出的信息如下,???
[root@shenyang bin]#pwd
/usr/local/apache/bin
[root@shenyang bin]#ls
ab apu-config dbmmanage htdbm httpd
apachectl apxs envvars htdigest logresolve
apr-config checkgid envvars-std htpasswd rotatelogs
[root@shenyang bin]#./apachectl start
Usage: /usr/local/apache/bin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name>; directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
[root@shenyang bin]#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
帮帮忙,急!!!谢了先!!!
5555555555555555
[root@shenyang bin]# ./apachectl start
(9Address 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
现在成这个了
????????????????没人???
先apachectl restart 试试
kill 现有的80的进程
再apachectl start
起来了,谢谢!!但是,还有个问题
[root@shenyang bin]# ./apachectl restart
httpd not running, trying to start
(9Address 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
[root@shenyang bin]# ps -aux
root 638 0.0 0.6 1316 404 tty4 S 17:19 0:00 /sbin/mingetty t
root 639 0.0 0.6 1316 404 tty5 S 17:19 0:00 /sbin/mingetty t
root 640 0.0 0.6 1316 404 tty6 S 17:19 0:00 /sbin/mingetty t
root 643 0.0 2.3 5652 1452 tty1 S 17:20 0:01 -bash
root 700 0.1 3.4 6788 2128 ? S 18:07 0:09 /usr/sbin/sshd
root 702 0.0 1.6 2992 1000 ? S 18:07 0:01 /usr/libexec/ope
root 14855 0.0 4.1 5856 2524 ? S 18:31 0:00 /usr/sbin/httpd
apache 14856 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14857 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14858 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14859 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14860 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14861 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14862 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
apache 14863 0.0 4.2 5932 2616 ? S 18:31 0:00 /usr/sbin/httpd
root 20542 0.0 1.1 2704 736 tty1 R 19:28 0:00 ps -aux
[root@shenyang bin]#
[root@shenyang bin]# kill -9 14856
[root@shenyang bin]# kill -9 14857
[root@shenyang bin]# kill -9 14858
[root@shenyang bin]# kill -9 14859
[root@shenyang bin]# kill -9 14860
[root@shenyang bin]# kill -9 14861
[root@shenyang bin]# kill -9 14862
[root@shenyang bin]# kill -9 14863
[root@shenyang bin]# ./apachectl start
root 700 0.1 3.4 6788 2128 ? S 18:07 0:09 /usr/sbin/sshd
root 702 0.0 1.6 2992 1000 ? S 18:07 0:01 /usr/libexec/ope
root 20555 0.4 2.8 4236 1728 ? S 19:33 0:00 /usr/local/apach
nobody 20556 0.0 2.9 4296 1796 ? S 19:33 0:00 /usr/local/apach
nobody 20557 0.0 2.9 4296 1796 ? S 19:33 0:00 /usr/local/apach
nobody 20558 0.0 2.9 4296 1796 ? S 19:33 0:00 /usr/local/apach
nobody 20559 0.0 2.9 4296 1796 ? S 19:33 0:00 /usr/local/apach
nobody 20560 0.0 2.9 4296 1796 ? S 19:33 0:00 /usr/local/apach
root 20561 0.0 1.1 2700 732 tty1 R 19:34 0:00 ps -aux
Unable to open logs
/usr/sbin/httpd怎么启动了?我没在那个目录下启动啊??
再说,我apache是装在/usr/local下啊,
/usr/sbin/httpd是哪来的??
可能是你的系统中安装有apache,而且服务启动了。
另外,你的apache配置文件有问题。
删除系统自带的apache,如果是redhat系统,可以用rpm方式删除。
你自己安装的apache的httpd.conf文件中没有绑定ip address,自己去看!