MySQL XAMPP 在 Windows 7 启动时自动启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22033083/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
XAMPP Start automatically on Windows 7 startup
提问by vignesh pbs
XAMPP Version 3.2.1 installed on Windows 7. It didn't get started automatically on Windows boot.
XAMPP 版本 3.2.1 安装在 Windows 7 上。它没有在 Windows 启动时自动启动。
Tried: looking in service
, it shows neither Apache nor MySQL.
尝试过:查看service
,它既没有显示 Apache 也没有显示 MySQL。
回答by EniGma
Try to run Your XAMPP Control Panel as Run as administrator
, then install Apache and MySQL.
尝试将您的 XAMPP 控制面板作为 运行Run as administrator
,然后安装 Apache 和 MySQL。
When XAMPP opens, ensure that Apache and MySQL services are stopped.
XAMPP 打开时,确保 Apache 和 MySQL 服务已停止。
Now just check/tick on Apache and Mysql service module.
现在只需检查/勾选 Apache 和 Mysql 服务模块。
Now Apache and MySQL will be added to window services. You can set these services to start when Windows boots.
现在 Apache 和 MySQL 将被添加到窗口服务中。您可以将这些服务设置为在 Windows 启动时启动。
回答by Hassan Saeed
Try following Steps for Apache
尝试以下 Apache 步骤
- Go to your XAMPP installation folder. Right-click xampp-control.exe. Click "Run as administrator"
- Stop Apache service action port
- Tick this (in snapshot) check box. It will ask if you want to install as service. Click "Yes".
Go to Windows Services by typing Window+ R, then typing
services.msc
Enter a new service name as
Apache2
(or similar)- Set it as automatic, if you want it to run as startup.
- 转到您的 XAMPP 安装文件夹。右键单击 xampp-control.exe。点击“以管理员身份运行”
- 停止Apache服务操作端口
- 勾选此(在快照中)复选框。它会询问您是否要安装为服务。单击“是”。
通过键入Window+转到 Windows 服务R,然后键入
services.msc
输入新的服务名称
Apache2
(或类似名称)- 如果您希望它作为启动运行,请将其设置为自动。
Repeat the steps for the MySQL service
对 MySQL 服务重复上述步骤
回答by Wajahat Hashmi
In addition to MR Chandru"sanswer above, do these steps after configuring XAMPP:
除了上面MR Chandru 的回答,请在配置 XAMPP 后执行以下步骤:
- open the directory where XAMPP is installed. By default it's installed at
C:\xampp
- Create Shortcut to the file
xampp-control.exe
, the XAMPP Control Panel - Paste it in
- 打开安装 XAMPP 的目录。默认情况下,它安装在
C:\xampp
- 创建文件的快捷方式
xampp-control.exe
,XAMPP 控制面板 - 粘贴进去
C:\Users\User-Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or
或者
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
The XAMPP Control Panel should now auto-start whenever you reboot Windows.
XAMPP 控制面板现在应该在您重新启动 Windows 时自动启动。
回答by Cary Robinson
I just placed a short-cut to the XAMPP control panel in my startup folder. That works just fine on Window 7. Start -> All Programs -> Startup. There is also an option to start XAMPP control panel minimized, that is very useful for getting a clean unobstructed view of your desktop at start-up.**
我刚刚在我的启动文件夹中放置了 XAMPP 控制面板的快捷方式。这在 Window 7 上运行良好。开始 -> 所有程序 -> 启动。还有一个选项可以最小化启动 XAMPP 控制面板,这对于在启动时获得干净、无障碍的桌面视图非常有用。**
回答by Jose Seie
You can put in this directory your Xampp control panel shortcut
it will work fine (it will automatically start after windows startup) as @wajahat-hashmi answered above:
你可以把Xampp control panel shortcut
它放在这个目录中,它会正常工作(它会在 Windows 启动后自动启动),正如上面@wajahat-hashmi 的回答:
C:\Users\User-Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
About aditional windows script or programs that we need to run automatically...
关于我们需要自动运行的其他 Windows 脚本或程序...
I needed to create some additional scripts to initialize some windows services. If someone has the same need you can put in that same directory, they will all run right after windows startup.
我需要创建一些额外的脚本来初始化一些 Windows 服务。如果有人有同样的需求,你可以放在同一个目录中,它们都会在 Windows 启动后立即运行。
For me, Xampp auto start and other scripts and shortcuts worked fine in windows 8.1, I think it will work fine in any windows version.
对我来说,Xampp 自动启动和其他脚本和快捷方式在 windows 8.1 中运行良好,我认为它在任何 windows 版本中都可以正常运行。
I hope it works well for anyone who has the same need.
我希望它适用于有相同需求的任何人。
回答by TommyDo
I am using XAMPP on Win 7 and 8.1 too...it start normally.
我也在 Win 7 和 8.1 上使用 XAMPP...它正常启动。
Did you try to check the services on Start > RUN > services.msc
您是否尝试在Start > RUN > services.msc上检查服务
Find the service: Apache 2.x. (right click) choose Properties. At form "Startup type" choose "Automatically" and Start the service on.
找到服务:Apache 2.x。(右键单击)选择属性。在表格“启动类型”中选择“自动”并启动服务。
you should reset the PC and check out again.
您应该重置PC并再次检查。
Do the same with mySQL.
对 mySQL 做同样的事情。
If you can not solve the problem, use XAMPP Panel to start it manually.
如果您不能解决问题,请使用 XAMPP Panel 手动启动它。
回答by Chandru
Go to the Config button (up right) and select the Autostart for Apache.
转到 Config 按钮(右上方)并选择 Autostart for Apache。