本地 Windows 机器的基本 Apache 命令

编程入门 行业动态 更新时间:2024-10-10 02:20:46
本文介绍了本地 Windows 机器的基本 Apache 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-20 01:50:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/973875.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   机器   Windows   Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!