纠正xampp中的错误

bxfogqkk  于 2021-06-24  发布在  Mysql
关注(0)|答案(1)|浏览(447)

我是xampp的初学者。每次启动xampp控制面板时,我都会在日志框中看到一个错误列表。举个例子:

14:58:16  [main]    Initializing Control Panel
14:58:16  [main]    Windows Version: Windows 7 Professional SP1 64-bit
14:58:16  [main]    XAMPP Version: 7.1.16
14:58:16  [main]    Control Panel Version: 3.2.2  [ Compiled: Nov 12th 2015 ]
14:58:16  [main]    Running with Administrator rights - good!
14:58:16  [main]    XAMPP Installation Directory: "c:\program files (x86)\xampp\"
14:58:16  [main]    WARNING: Your install directory contains spaces.  This may break programs/scripts
14:58:16  [main]    WARNING: Your install directory contains special characters.  This may break programs/scripts
14:58:16  [main]    Checking for prerequisites
14:58:41  [main]    All prerequisites found
14:58:41  [main]    Initializing Modules
14:58:41  [Apache]  Problem detected!
14:58:41  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
14:58:41  [Apache]  Apache WILL NOT start without the configured ports free!
14:58:41  [Apache]  You need to uninstall/disable/reconfigure the blocking application
14:58:41  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
14:58:41  [main]    The FileZilla module is disabled
14:58:41  [main]    The Mercury module is disabled
14:58:41  [main]    The Tomcat module is disabled
14:58:41  [main]    Enabling autostart for module "Apache"
14:58:41  [main]    Enabling autostart for module "MySQL"
14:58:41  [main]    Starting Check-Timer
14:58:41  [main]    Control Panel Ready
14:58:42  [Apache]  Autostart active: starting...
14:58:42  [Apache]  Problem detected!
14:58:42  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
14:58:42  [Apache]  Apache WILL NOT start without the configured ports free!
14:58:42  [Apache]  You need to uninstall/disable/reconfigure the blocking application
14:58:42  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
14:58:42  [Apache]  Attempting to start Apache service...
14:58:42  [mysql]   Autostart active: starting...
14:58:42  [mysql]   Attempting to start MySQL service...
14:58:44  [mysql]   Status change detected: running
14:58:49  [mysql]   Status change detected: stopped
14:58:49  [mysql]   Error: MySQL shutdown unexpectedly.
14:58:49  [mysql]   This may be due to a blocked port, missing dependencies, 
14:58:49  [mysql]   improper privileges, a crash, or a shutdown by another method.
14:58:49  [mysql]   Press the Logs button to view error logs and check
14:58:49  [mysql]   the Windows Event Viewer for more clues
14:58:49  [mysql]   If you need more help, copy and post this
14:58:49  [mysql]   entire log window on the forums
14:59:22  [mysql]   Attempting to start MySQL service...
14:59:24  [mysql]   Status change detected: running
14:59:28  [mysql]   Status change detected: stopped
14:59:28  [mysql]   Error: MySQL shutdown unexpectedly.
14:59:28  [mysql]   This may be due to a blocked port, missing dependencies, 
14:59:28  [mysql]   improper privileges, a crash, or a shutdown by another method.
14:59:29  [mysql]   Press the Logs button to view error logs and check
14:59:29  [mysql]   the Windows Event Viewer for more clues
14:59:29  [mysql]   If you need more help, copy and post this
14:59:29  [mysql]   entire log window on the forums

我还附上下面apache和mysql的服务设置截图:有人能帮我识别和纠正这些错误吗。我应该重新安装xampp吗?请回答。

dnph8jn4

dnph8jn41#

端口80被pid为4的“无法打开进程”使用!
要更改端口号,请打开文件
[xampp安装文件夹]/apache/conf/httpd.conf
搜索字符串“listen”和servername并更新端口号
或者关闭使用端口80的程序,您可以使用此命令检查
c:>netstat-a-b
通常是skype。。

相关问题