简体   繁体   English

centos(rackspace)上的couchdb代理无法正常工作

[英]proxy for couchdb on centos (rackspace) not working

I am new to the world of couchdb, and I want to setup a proxy so that I can access my couch databases from html files not served up by couch 我是couchdb世界的新手,我想设置一个代理,以便我可以从没有沙发提供的html文件访问我的沙发数据库

I installed couch and I can confirm it is running on my centos6 server (rackspace) over 127.0.0.1:5984 我安装了沙发,我可以确认它在我的centos6服务器(rackspace)上运行超过127.0.0.1:5984

I read that I need to run 我读到我需要跑

a2enmod proxy
a2enmod proxy_http
/etc/init.d/apache2 restart

but the server is giving me an error: "-bash: a2enmod: command not found" 但服务器给我一个错误:“-bash:a2enmod:command not found”

any suggestions or can anyone help point me in the right direction? 任何建议或任何人可以帮我指出正确的方向? I am excited to get past this hiccup and start learning more about couch! 我很高兴能够通过这个打嗝,开始学习更多有关沙发的知识!

Thanks! 谢谢!

The a2enmod command is specific to Debian-based systems and does not exist on Red Hat-based systems such as CentOS (see https://serverfault.com/questions/56394/how-do-i-enable-apache-modules-from-the-command-line-in-redhat for a fuller explanation). a2enmod命令特定于基于Debian的系统,并且在基于Red Hat的系统(如CentOS)上不存在(请参阅https://serverfault.com/questions/56394/how-do-i-enable-apache-modules-from -the-command-line-in-redhat用于更全面的解释)。

You will need to manually open the file /etc/httpd/conf/httpd.conf and check the following lines are uncommented: 您需要手动打开文件/etc/httpd/conf/httpd.conf并检查以下行是否取消注释:

LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM