如何在Linux中启动Apache服务器
我已经创建了一个新的httpd.conf文件,现在我想让我的Apache使用这个conf文件并开始。但这对我不起作用。当我试图启动Apache时,我遇到了一个错误如何在Linux中启动Apache服务器,linux,apache,unix,Linux,Apache,Unix,我已经创建了一个新的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/
./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
/home//conf/httpd.conf
我无法理解在使用这个http.conf第一次安装apache时,我在哪里做了更改。对于ArchLinux,请遵循Instaltion指南 然后启动服务,只需运行以下命令ad administrator:
sudo systemctl start httpd.service
检查它是否与以下设备一起工作:
sudo systemctl status httpd.service
apachectl-f/home//conf/httpd.conf
\ln-sv/home//conf/httpd.conf/usr/local/install/apache/conf/httpd.conf
这个(被接受的)答案与这个问题有什么关系?问题是关于conf文件的位置,而不是启动apache。。。