Apache的安装教程

首先到官网下载相关的版本(我使用的是2.4)

然后将下载的安装包解压到D:盘符


然后在文件夹中查找conf文件夹下边的httpd.conf,修改文件为自己的路径:


cmd框,跳转到D:\Apache24\bin,输入命令:httpd -k install

会提示-----端口错误什么的,然后输入:

 netstat -ano   找80和443端口看看被哪个pid占用了,记录下pid

然后在服务中---找到pid为刚才的pid所对应的进程,将其停止,然后继续在cmd框中输入:net start Apache2.4



netstat -ano

猜你喜欢

转载自blog.csdn.net/qiuqiu1628480502/article/details/80626023