我正在尝试从另一台计算机访问本地主机时遇到404未找到错误。 当我在浏览器中写入服务器的IP地址/ localhost链接时,会出现这个错误
bitnami wamp stack也显示了端口号。 apache为81,但在conf文件中,命令是Listen 80(这是一个问题吗?) 我能够从服务器(我的笔记本电脑)ping电脑(我的移动电话)
以下是apache服务器的错误日志:
[Tue Oct 31 00:10:36.632302 2017] [ssl:warn] [pid 9052:tid 604] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 00:10:37.625006 2017] [ssl:warn] [pid 9052:tid 604] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 00:10:37.717072 2017] [mpm_winnt:notice] [pid 9052:tid 604] AH00354: Child: Starting 64 worker threads.
[Tue Oct 31 10:03:32.245340 2017] [ssl:warn] [pid 3156:tid 648] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:03:32.786715 2017] [core:warn] [pid 3156:tid 648] AH00098: pid file C:/Bitnami/wampstack-5.6.30-2/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Oct 31 10:03:32.935872 2017] [ssl:warn] [pid 3156:tid 648] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:03:41.091663 2017] [mpm_winnt:notice] [pid 3156:tid 648] AH00455: Apache/2.4.23 (Win64) OpenSSL/1.0.2h PHP/5.6.30 configured -- resuming normal operations
[Tue Oct 31 10:03:41.091663 2017] [mpm_winnt:notice] [pid 3156:tid 648] AH00456: Apache Lounge VC11 Server built: Jul 8 2016 11:33:36
[Tue Oct 31 10:03:41.091663 2017] [core:notice] [pid 3156:tid 648] AH00094: Command line: 'C:\\Bitnami\\WAMPST~1.30-\\apache2\\bin\\httpd.exe -d C:/Bitnami/wampstack-5.6.30-2/apache2 -f C:\\Bitnami\\WAMPST~1.30-\\apache2\\conf\\httpd.conf'
[Tue Oct 31 10:03:41.091663 2017] [mpm_winnt:notice] [pid 3156:tid 648] AH00418: Parent: Created child process 5752
[Tue Oct 31 10:03:41.622918 2017] [ssl:warn] [pid 5752:tid 568] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:03:41.857279 2017] [ssl:warn] [pid 5752:tid 568] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:03:41.872905 2017] [mpm_winnt:notice] [pid 5752:tid 568] AH00354: Child: Starting 64 worker threads.
[Tue Oct 31 10:45:51.841032 2017] [mpm_winnt:notice] [pid 3156:tid 648] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 31 10:45:53.848176 2017] [mpm_winnt:notice] [pid 5752:tid 568] AH00364: Child: All worker threads have exited.
[Tue Oct 31 10:45:53.951493 2017] [mpm_winnt:notice] [pid 3156:tid 648] AH00430: Parent: Child process 5752 exited successfully.
[Tue Oct 31 10:45:57.819914 2017] [ssl:warn] [pid 11880:tid 112] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:45:58.280480 2017] [ssl:warn] [pid 11880:tid 112] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:45:59.524187 2017] [mpm_winnt:notice] [pid 11880:tid 112] AH00455: Apache/2.4.23 (Win64) OpenSSL/1.0.2h PHP/5.6.30 configured -- resuming normal operations
[Tue Oct 31 10:45:59.524187 2017] [mpm_winnt:notice] [pid 11880:tid 112] AH00456: Apache Lounge VC11 Server built: Jul 8 2016 11:33:36
[Tue Oct 31 10:45:59.524187 2017] [core:notice] [pid 11880:tid 112] AH00094: Command line: 'C:\\Bitnami\\WAMPST~1.30-\\apache2\\bin\\httpd.exe -d C:/Bitnami/wampstack-5.6.30-2/apache2 -f C:\\Bitnami\\WAMPST~1.30-\\apache2\\conf\\httpd.conf'
[Tue Oct 31 10:45:59.530192 2017] [mpm_winnt:notice] [pid 11880:tid 112] AH00418: Parent: Created child process 4892
[Tue Oct 31 10:46:00.558463 2017] [ssl:warn] [pid 4892:tid 540] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:00.937326 2017] [ssl:warn] [pid 4892:tid 540] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:00.986568 2017] [mpm_winnt:notice] [pid 4892:tid 540] AH00354: Child: Starting 64 worker threads.
[Tue Oct 31 10:46:52.148891 2017] [mpm_winnt:notice] [pid 11880:tid 112] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Oct 31 10:46:54.150007 2017] [mpm_winnt:notice] [pid 4892:tid 540] AH00364: Child: All worker threads have exited.
[Tue Oct 31 10:46:54.195043 2017] [mpm_winnt:notice] [pid 11880:tid 112] AH00430: Parent: Child process 4892 exited successfully.
[Tue Oct 31 10:46:55.653960 2017] [ssl:warn] [pid 9680:tid 640] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:56.104259 2017] [ssl:warn] [pid 9680:tid 640] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:56.155062 2017] [mpm_winnt:notice] [pid 9680:tid 640] AH00455: Apache/2.4.23 (Win64) OpenSSL/1.0.2h PHP/5.6.30 configured -- resuming normal operations
[Tue Oct 31 10:46:56.155062 2017] [mpm_winnt:notice] [pid 9680:tid 640] AH00456: Apache Lounge VC11 Server built: Jul 8 2016 11:33:36
[Tue Oct 31 10:46:56.155062 2017] [core:notice] [pid 9680:tid 640] AH00094: Command line: 'C:\\Bitnami\\WAMPST~1.30-\\apache2\\bin\\httpd.exe -d C:/Bitnami/wampstack-5.6.30-2/apache2 -f C:\\Bitnami\\WAMPST~1.30-\\apache2\\conf\\httpd.conf'
[Tue Oct 31 10:46:56.161067 2017] [mpm_winnt:notice] [pid 9680:tid 640] AH00418: Parent: Created child process 12336
[Tue Oct 31 10:46:57.175153 2017] [ssl:warn] [pid 12336:tid 532] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:57.572633 2017] [ssl:warn] [pid 12336:tid 532] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 31 10:46:57.620980 2017] [mpm_winnt:notice] [pid 12336:tid 532] AH00354: Child: Starting 64 worker threads.
答案 0 :(得分:2)
为了使用默认端口80/443安装Bitnami WAMP堆栈,您必须确保在端口80中没有任何服务器监听。
如果您安装了堆栈并且其中一个端口上有一台服务器,安装程序会检测到并配置Apache以侦听备用端口(例如81)。因此,您需要按顺序访问http://localhost:81访问包含在Stack中的Apache Web Server。如果您从同一网络中的其他计算机访问服务器,请检查Windows防火墙配置。防火墙可能会阻止Web请求。请参阅以下链接:
https://docs.bitnami.com/installer/faq/windows-faq/#how-to-open-ports-for-remote-access
答案 1 :(得分:0)
以管理员身份启动cmd
输入
net stop http
然后点击是,它有望解决您的问题。