由 bulin 在 09-24-2002 11:14 发表:
请问如何设置以访问127.0.0.1
按"Linux下APACHE+PHP+MYSQL+CGI…………修改版"一帖安装并设置完成
在浏览器中键入 http://127.0.0.1/testphp.php 后提示:No web site is configured at this address.
键入 http://bioweb/testphp.php 后提示找不到该页.
键入 http://192.168.0.1/testphp.php 后却可以访问.
192.168.0.1是本机ip,bioweb是本机hostname.
不知是何原因,望高手赐教,谢谢!
由 solaris 在 09-24-2002 11:37 发表:
127.0.0.1是你的lo端口地址,你用ifconfig看一下有没有显示这个端口,如果没有,说明你没有打开
由 bulin 在 09-24-2002 11:38 发表:
有显示,也可以ping通. 
由 sd44 在 09-24-2002 15:33 发表:
ping通代表不了你的apache打开
运行apache目录/bin/apachectl start
nmap -sS 127.0.0.1看看
由 solaris 在 09-24-2002 16:47 发表:
打开其他服务,如ssh,telnet,ftp等,然后相应的登127.0.0.1看能否成功
由 bulin 在 09-24-2002 18:16 发表:
请见
[root@BC_No2 root]# cd /usr/local/apache/bin
[root@BC_No2 bin]# apachectl start
bash: apachectl: command not found
[root@BC_No2 bin]# cd ..
[root@BC_No2 apache]# /bin/apachectl start
bash: /bin/apachectl: No such file or directory
[root@BC_No2 apache]# httpd start
[Tue Sep 24 18:12:21 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[root@BC_No2 apache]# nmap -sS 127.0.0.1
Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ )
Interesting ports on bioweb (127.0.0.1):
(The 1534 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
80/tcp open http
111/tcp open sunrpc
1024/tcp open kdm
1025/tcp open listen
6000/tcp open X11
22289/tcp open wnn6_Cn
22321/tcp open wnn6_Tw
Nmap run completed --