当我启动XAMPP并尝试启动mySQL和Apache时,我得到两个类似的错误:
public abstract class Person {
private String breakfast;
private String lunch;
// ... other fields
public abstract void getMeals();
public String getBreakfast() { return breakfast; }
// ... other getters
}
public class Father extends Person {
@Override
public void getMeals() {
// implement Father-specific code here
}
}
public class Mother extends Person {
@Override
public String getMeals() {
StrngBuilder sb = new StringBuilder() ;
sb.append(getBreakfast());
sb.append(getLunch());
sb.append(getDinner());
return sb.toString();
}
}
我已经搜索了可能正在改变路径的程序的高低,但我已经卸载了当我使用完整,真正的LAMP堆栈时我所拥有的所有Apache内容。我尝试卸载并重新安装XAMPP,但这没有做任何事情。
错误读数表示更改XAMPP控制面板中的设置,但我找不到更改路径的位置。
答案 0 :(得分:4)
我能解决这个问题!!!
如上所述存在同样的问题,请确保没有使用端口80但仍然无法正常工作并收到Apache和Mysql被错误路径检测到的消息。
我之前安装过一次XAMPP,卸载并重新安装。我甚至手动卸载但仍有问题。
修复。确保先备份系统!!!
Start Services via Control Panel>Admin Tools (also with Ctrl+R and services.msc)
Look for Apache and mySQL services. Look at the patch indicated in the description (right click on service then click on properties). Chances are that you have Apache listed twice, one from your correct install and one from a previous install. Even if you only see one, look at the path, chances are its from a previous install and causing your install not to work. In either case, you need to delete those incorrect services.
a. Got to command prompt (run as administrator): Start > all programs > Accessories > right click on Command Prompt > Select 'run as administrator'
b. on command prompt type sc delete service, where service is the service you're wanting to delete, such as apache2.1 (or sc delete Apache2.4). It should be exactly as it appears in your services. If the service has spaces such as apache 2.1 then enter it in quotes, i.e. sc delete "apache 2.1"
c. press enter. Now refresh or close/open your services window and you'll see its gone.
对于XAMPP发现运行路径不正确的所有服务,请执行此操作。
一旦你这样做,去头并重新启动XAMPP控制面板(作为管理员)和中提琴!一切都有效。没有冲突
答案 1 :(得分:1)
我找到了解决方案。这可能不适用于所有情况。
答案 2 :(得分:0)
具有与上述相同的问题。 您可能已经注意到Apache左侧的绿色对勾。 首先,您需要通过单击来卸载该服务。 然后按下相同的图标并安装服务。 应该可以。