二个问题很是不解!关于执行命令和网络!
前提是已经安装好了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),就是显示不了网页。为什么??
谢谢各位指点!


karon_fedora 于 2008-02-03 15:49:49发表:
第一个: killall httpd
你的配置文件有问题.
apache详细配置方法我忘记了,楼主找找吧.
第二个:虚拟机不知道localhost 就是127.0.0.1,你改了/etc/hostname文件?