对于apache服务器的安装过程,我遵循下面提到的步骤
tar xzf httpd-2.4.7.tar.gz
./configure
make
make install以上所有步骤都已完成。但当我想知道这台服务器的状态时。显示误差
[root@localhost httpd-2.4.7]# /etc/init.d/httpd stop
bash: /etc/init.d/httpd: No such file or directory
[root@localhost httpd-2.4.7]# /etc/init.d/httpd start
bash: /etc/init.d/httpd: No such file or directory我还通过以下方法检查了这个包是否安装
[root@localhost httpd-2.4.7]# yum list h*
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: epel.mirror.net.in
* extras: centos.mirror.net.in
* jpackage-generic: mirror.ibcp.fr
* jpackage-generic-updates: mirror.ibcp.fr
* updates: centos.mirror.net.in
Available Packages
httpd.x86_64 2.2.15-29.el6.centos base同时,我通过使用http://localhost签入浏览器,显示错误,这个网页是不可用的。你面临的这个问题是什么wrong.Did?如何解决。请让我知道
发布于 2014-02-10 10:33:19
你错过了这个
chkconfig --levels 235 httpd on要启动和停止您的服务,可以键入
service httpd stop或
service httpd start或
service httpd restart要安装httpd,只需在centos、redhat、linux上安装即可。
yum install httpd注意:默认情况下,httpd应该安装在centos上!
将apache服务设置为在引导时启动。
chkconfig --levels 235 httpd on现在,在端口80上启用基于名称的虚拟主机,打开位于
/etc/httpd/conf/httpd.conf注释包含文本NameVirtualHost *:80的行并保存文件。现在重新启动守护进程:
service httpd restart注意:暂时忽略"NameVirtualHost *:80没有VirtualHosts“警告。
访问localhost以查看apache测试页面。
https://serverfault.com/questions/574411
复制相似问题