在“Server Name(e.g.[url]www.somenet.com[/url])”中输入web站点的域名,如bestsafe.51cto.com
在“Administrator'Email Address([email]e.g.webmaster@somenet.com[/email])”中输入管理员邮箱地址,如[email]bestsafe@51cto.com[/email](一定得输入正确)
(注:开启服务前需在IIS中停止系统默认WEB站点)
> cd apache\bin\ #我的apache安装位置
> httpd # apache的启动程序
ould not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
# 找到原因了 原来是我的80端口被占用了,原因我开了迅雷。
解决一:
> netstat -ano # 查看网络状态
TCP 127.0.0.1:80 127.0.0.1:1920 CLOSE_WAIT 1112
TCP 127.0.0.1:80 127.0.0.1:2016 CLOSE_WAIT 1112
通过 Local Address 中端口为80的行 可以看到 我的80端口被PID为1112的进程占用了
在进程列表中 查找PID为1112的进程
当然,如果80端口已经在使用中的话,则可通过修改httpd.conf文件来修改appache的端口效果也是一样的。
> cd apache\bin\ #我的apache安装位置
> httpd # apache的启动程序
>>> httpd.exe: Syntax error on line 42 of E:/\xe7\xbd\x91\xe7\xbb\x9c\xe5\xb7\xa5\xe5\x85\xb7/apache_2.2.4-win32-x86-no_ssl/apache/conf/httpd.conf: ServerRoot must be a valid directory
# 找到原因了 原来是apache安装的目录不正确。
点击“编辑”菜单栏中“查找”,在“查找内容”中输入“index.html”,来搜索文本中index.html位置(如图所示)。