apache - 在 linux vps 中使用 cpanel 在 apache 服务器中找不到 a2enmod 命令
问题描述
在转到 /etc/httpd/conf/httpd.conf 之后,甚至在更改之后
Allow override none -> Allow override All , and then restarting the server using
service httpd restart
然后我输入命令
a2enmod proxy
然后我得到一个错误:
bash- a2enmod command not found. .
你能帮我么?当我使用 web-sockets 时,我在开发人员工具控制台中遇到错误,因此我需要启用 web-sockets 代理。
解决方案
我有同样的问题,这个答案解决了我的问题:
Apache2 命令(例如 a2enmod 和 a2ensite)无法正常工作,其显示命令在 Ubuntu 中找不到
尝试:
sudo apt-get update
sudo apt-get install apache2 libapache2-mod-wsgi
然后,
sudo a2enmod wsgi
然后,您可能还想尝试sudo a2enmod
,而不仅仅是a2enmod
推荐阅读
- java - 在 Spring Boot 应用程序的应用程序属性文件中使用 Jenkins 变量
- java - Java的TTS(文本到语音)API的最佳替代品是什么?
- rabbitmq - 是否可以在 RabbitMQ 中将不同类型的交换绑定在一起?
- c - 在 C 中处理数组
- linux - Laravel:部署到服务器时会话不会保持活动状态
- azure - Azure 函数状态码 500 内部服务器错误
- javascript - React Architecture:我有一个通用的中间组件,需要渲染自定义子组件
- wolfram-mathematica - 导入 Mathematica 矩阵
- google-dfp - 使用 Google 广告管理器的插页式广告
- docusignapi - DocuSign - 无法转换文档