如何在Linux中启动Apache服务器[关闭]

问题描述 投票:-2回答:2

我已经创建了一个新的httpd.conf文件,现在我希望我的Apache使用该conf文件并开始使用。但那不适合我。当我试图启动Apache时,我收到错误

./apachectl -k start
httpd: Could not open configuration file /usr/local/install/apache/conf/httpd.conf: No such file or directory

我的新conf文件是

/home/<user>/conf/httpd.conf

我无法理解我对使用此http.conf的更改所做的工作

linux apache unix
2个回答
0
投票

首先安装apache。对于ArchLinux,请关注qazxsw poi安装指南。

然后启动该服务,只需运行此命令广告管理员:

this

检查它是否正在使用:

sudo systemctl start httpd.service

0
投票

sudo systemctl status httpd.service

© www.soinside.com 2019 - 2024. All rights reserved.