apache无法启动
我正在尝试在centos上安装apache和php,我确实安装了:apache无法启动,apache,centos,Apache,Centos,我正在尝试在centos上安装apache和php,我确实安装了: yum install httpd yum install php /etc/init.d/httpd start 好的,我跟你核对一下 http://localhost/ 但我不知道为什么但我现在知道了 /etc/init.d/httpd start 展示 对不起,我对服务器很在行 非常感谢。在CentOS上,默认情况下,httpd的配置文件应为/etc/httpd/conf/httpd.conf。编辑该文件并找到“Se
yum install httpd
yum install php
/etc/init.d/httpd start
好的,我跟你核对一下
http://localhost/
但我不知道为什么但我现在知道了
/etc/init.d/httpd start
展示
对不起,我对服务器很在行
非常感谢。在CentOS上,默认情况下,httpd的配置文件应为/etc/httpd/conf/httpd.conf。编辑该文件并找到“ServerName”条目。通过删除该行开头的#取消注释该行,并将名称设置为所需名称。保存文件并使用以下命令重新启动服务器:
/etc/init.d/httpd restart
请记住,您担心的消息只是一个警告,而不是一个错误。这更适合于at,我建议您检查
/var/log/httpd
目录下的日志文件。
/etc/init.d/httpd restart