Apache命令行无法运行

时间:2011-09-23 10:32:07

标签: apache module centos5

使用Centos 5.6在我的vps上安装了Apache Ver 2.2.3,但是当我尝试 a2dismod a2enmod 时发现了Command not found错误。

我该怎么做才能解决它?

谢谢

  • 这是我的第一个vps,这也是我第一次使用linux和centos。
  • 服务器运行正常只需要禁用几个模块。

2 个答案:

答案 0 :(得分:11)

在CentOS上没有 a2enmod a2dismod 命令。要在Apache中禁用不需要的模块,您需要执行下端所描述的步骤 - 例如 - 此帖子:http://www.cyberciti.biz/faq/howto-disable-apache-modules-under-linux-unix/

答案 1 :(得分:3)

也许那些命令不在你的路上?如果程序在您当前的工作目录中,请尝试./a2dismod。

要查看我们的shell搜索的路径,请尝试echo $ PATH。