XAMPP localhost 未以管理员权限运行 [英] XAMPP localhost not running with administrator rights

查看:20
本文介绍了XAMPP localhost 未以管理员权限运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 XAMPP 控制面板上,日志是这样写的

On my XAMPP control panel the log says this

23:39:22  [main]    Initializing Control Panel
23:39:22  [main]    Windows Version: Windows 8  64-bit
23:39:22  [main]    XAMPP Version: 5.6.3
23:39:22  [main]    Control Panel Version: 3.2.1  [ Compiled: May 7th 2013 ]
23:39:22  [main]    You are not running with administrator rights! This will work for
23:39:22  [main]    most application stuff but whenever you do something with services
23:39:22  [main]    there will be a security dialogue or things will break! So think 
23:39:22  [main]    about running this application with administrator rights!
23:39:22  [main]    XAMPP Installation Directory: "c:xampp"
23:39:22  [main]    Checking for prerequisites
23:39:22  [main]    All prerequisites found
23:39:22  [main]    Initializing Modules
23:39:22  [Apache]  XAMPP Apache is already running on port 80
23:39:22  [Apache]  XAMPP Apache is already running on port 443
23:39:22  [mysql]   XAMPP MySQL is already running on port 3306
23:39:22  [main]    Starting Check-Timer
23:39:22  [main]    Control Panel Ready

我想知道如何更改为管理员权限,因为我的代码目前无法正常工作.在过去的 6 个月里,我一直在使用 XAMPP,以前从未遇到过这个问题.它只是今天第一次发生,我没有访问任何配置文件.我的代码也不是问题,因为我的团队正在使用共享的 git 存储库,其他人在 XAMPP 上运行完全相同的代码,他们没有这些问题,并且 XAMPP 控制面板日志中没有出现相同的消息.

I would like to know how to change to administrator rights as my code is currently not working. I have been using XAMPP for the past 6 months and have never had this problem before. It only occurred today for the first time and I did not access any of the config files. My code is also not the problem as my team is using a shared git repository and everyone else is running the exact same code on XAMPP and they are not having these issues and do not have the same message appearing in the XAMPP control panel log.

推荐答案

Aslam 的答案是正确的,尽管您可能想要一个永久的解决方案.为此,请遵循以下流程:

The answer by Aslam is correct, although you probably want a permanent solution. For that, follow this process:

  1. 在 Windows 中右键单击 Xampp 的菜单项(通常从哪里启动 Xampp).

  1. Right-click on the menu item for Xampp (wherever you normally start Xampp from) in Windows.

在出现的菜单中单击打开文件位置".这应该会将您带到 Xampp 可执行文件/二进制文件的快捷方式(很可能类似于C:ProgramDataMicrosoftWindowsStart MenuProgramsXAMPP")

Click on "Open File Location" in the menu that appears. That should take you to the shortcut to the Xampp executable/binary (most likely something like "C:ProgramDataMicrosoftWindowsStart MenuProgramsXAMPP")

右键单击此快捷方式并选择属性"(菜单栏上可能有一个属性"图标 - 如果有,请单击该图标).

Right-click on this shortcut and choose Properties (you may have a Properties icon on the Menu bar - if so, click that instead).

如果还没有,请单击属性"中的快捷方式"选项卡.

If not already there, click on the Shortcut tab in Properties.

这篇关于XAMPP localhost 未以管理员权限运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆