发新话题
打印

二个问题很是不解!关于执行命令和网络!

二个问题很是不解!关于执行命令和网络!

二个问题很是不解!关于执行命令和网络!

前提是已经安装好了MYSQL5 PHP5 APACHE2环境。

第一个:在启动后,执行(在相应的目录里面)

[root@localhost bin]# apachectl stop

提示
httpd (no pid file) not running

通过命令

[root@localhost bin]#ps -ef

....

root      2509     1  0 14:34 ?        00:00:00 /myweb/apache2/bin/httpd -k star
daemon    2510  2509  0 14:34 ?        00:00:00 /myweb/apache2/bin/httpd -k star
daemon    2511  2509  0 14:34 ?        00:00:01 /myweb/apache2/bin/httpd -k star
daemon    2512  2509  0 14:34 ?        00:00:00 /myweb/apache2/bin/httpd -k star
daemon    2513  2509  0 14:34 ?        00:00:00 /myweb/apache2/bin/httpd -k star
daemon    2514  2509  0 14:34 ?        00:00:00 /myweb/apache2/bin/httpd -k star

然后再执行

[root@localhost bin]# apachectl start

提示:
(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

不明白是什么原因?

第二个是关于APACHE2 MYSQL5 PHP5环境架好后,(前提是:我在XP机子上用VM6搭好了CentOS5.1和相应的环境)

在虚拟上执行http://127.0.0.1/后可以打开网页,但用http://locallhost/就不行。

奇怪的是。在我的XP机子上输入http://192.168.0.128/(这个是虚拟机的IP),就是显示不了网页。为什么??

谢谢各位指点!      

TOP

1, 是路径问题, apachectl 使用了系统中原有的 httpd 所以会出现这个错误, 应该用  /myweb/apache2/bin/apachectl stop
2, 是 localhost, 多写了一个 L, 另外关闭 iptables 吧, service iptables stop      

TOP

发新话题