简体   繁体   English

什么是 XAMPP? 任何人都可以帮助我解决它的 mySQL 错误吗?

[英]What's XAMPP? Can anyone help me with its mySQL error?

I am developing a Java program and I was recommended to install XAMPP.我正在开发一个 Java 程序,我被推荐安装 XAMPP。 Still, I am not sure if it is secure or not to my home computer.不过,我不确定它对我的家用电脑是否安全。 Is it dangerous or should I keep it?它有危险还是我应该保留它? Sorry, I do not know anything about XAMPP.抱歉,我对 XAMPP 一无所知。

Also, I started running it because I am doing a tutorial, and I came across the following error: http://prntscr.com/drwra6另外,我开始运行它是因为我在做一个教程,我遇到了以下错误: http : //prntscr.com/drwra6

Can anyone help me?谁能帮我? Please, do not use difficult concepts :)请不要使用困难的概念:)

Thank you very much.非常感谢。

Short Answer简答

Uninstall Sype卸载 Sype

Long Answer长答案

Open Skype.打开Skype。

Tools -> Options -> Advanced -> Connection.工具 -> 选项 -> 高级 -> 连接。

Disable the "Use port 80 and 443 for alternatives for incoming connections"禁用“使用端口 80 和 443 替代传入连接”

Sign Out and Close all Skype windows.注销并关闭所有 Skype 窗口。 Try restarting your Apache.尝试重新启动 Apache。

VERY LONG ANSWER很长的答案

As I am working in a corporate environment where developers faces firewall issues, none of the other answers resolved my issue.当我在开发人员面临防火墙问题的企业环境中工作时,其他答案都没有解决我的问题。

As the port is not used by Skype, but by some other internal applications, I followed the below steps to resolve the issue:由于该端口未被 Skype 使用,而是被其他一些内部应用程序使用,因此我按照以下步骤解决了该问题:

Step 1 - From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).步骤 1 - 从 XAMPP 控制面板的 Apache 下,单击配置按钮,然后选择 Apache (httpd.conf)。

Inside the httpd.conf file, somehow I found a line that says:在 httpd.conf 文件中,不知何故我发现了一行说:

Listen 80 And change the 80 into any number / port you want.听 80 并将 80 更改为您想要的任何数字/端口。 In my scenario I'm using port 8080.在我的场景中,我使用的是 8080 端口。

Listen 8080 Still from the httpd.conf file, I found another line that says:听 8080 仍然从 httpd.conf 文件中,我发现另一行说:

ServerName localhost:80服务器名称本地主机:80

And change 80 to 8080.并将 80 更改为 8080。

ServerName localhost:8080 Step 2 - From the XAMPP Control Panel, under Apache, click the Config button again, but this time select the Apache (httpd-ssl.conf). ServerName localhost:8080 第 2 步 - 从 XAMPP 控制面板的 Apache 下,再次单击 Config 按钮,但这次选择 Apache (httpd-ssl.conf)。 Inside the httpd-ssl.conf file, find line that says在 httpd-ssl.conf 文件中,找到说

Listen 443 And change the 443 into any number / port you want.听 443 并将 443 更改为您想要的任何数字/端口。 I'll using 4433 as the new port number.我将使用 4433 作为新端口号。

Listen 4433 Still from the httpd-ssl.conf file, find another line that says听 4433 仍然从 httpd-ssl.conf 文件中,找到另一行说

ServerName localhost:443 And change 443 to 4433. ServerName localhost:443 并将 443 更改为 4433。

ServerName localhost:4433 Remember to save the httpd.conf and httpd-ssl.conf files after performing some changes. ServerName localhost:4433 执行一些更改后,请记住保存 httpd.conf 和 httpd-ssl.conf 文件。 Then restart the Apache service.然后重启Apache服务。

SOURCE XAMPP, Apache - Error: Apache shutdown unexpectedly SOURCE XAMPP、Apache - 错误:Apache 意外关闭

CONCLUSION结论

Google first谷歌优先

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM