问题描述
限时送ChatGPT账号..我在我的 Windows 7 机器上安装了 XAMPP 并创建了许多虚拟服务器.这部分很简单.
I have installed XAMPP on my Windows 7 machine and created a number of virtual servers. This part is straightforward enough.
每次添加新的虚拟服务器时,我都必须重新启动计算机才能重新启动 Apache 服务器,这当然非常耗时.
Each time I add a new virtual server I am having to reboot my computer in order to reboot the Apache server, which is of course quite time consuming.
我在谷歌上搜索并找到了用于重新启动 Apache 的正确控制台命令,但我发现的参考资料中没有一个实际上告诉您在何处键入相关命令!假设有一定的知识水平.
I have googled and found the correct console commands to use to reboot Apache, but absolutely non of the references that I have found actually tell you where to type the relevant commands! A certain level of knowledge is assumed.
所以我的问题是 - 我应该在哪里输入 apache -k restart
?
So my question is - where do I actually type apache -k restart
?
推荐答案
在这里回归绝对基础.此页面上的答案和一点点谷歌搜索使我对我的问题有了以下解决方案.安装Xampp后重启apache服务的步骤:-
Going back to absolute basics here. The answers on this page and a little googling have brought me to the following resolution to my issue. Steps to restart the apache service with Xampp installed:-
单击开始按钮并输入 CMD(如果在 Windows Vista 或更高版本上并且 Apache 作为服务安装,请确保这是一个 高级命令提示符)在出现的命令窗口中输入cd C:\xampp\apache\bin
(Xampp的默认安装路径)然后输入httpd -k restart
Click the start button and type CMD (if on Windows Vista or later and Apache is installed as a service make sure this is an elevated command prompt)
In the command window that appears type cd C:\xampp\apache\bin
(the default installation path for Xampp)
Then type httpd -k restart
我希望这对刚开始运行本地 Apache 服务器的其他人有用.
I hope that this is of use to others just starting out with running a local Apache server.
这篇关于本地 Windows 机器的基本 Apache 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论