【发布时间】:2014-06-28 01:05:37
【问题描述】:
在云虚拟机上
我用 redis 和 openresty 设置了这个 nginx.conf 文件
my_nginx.conf -
worker_processes 1;
error_log logs/error.log;
events{
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
redis2_query set hello world;
redis2_query get hello;
redis2_pass 127.0.0.1:6379;
}
}
}
我将这个 conf 运行为
$nginx -p pwd/ -c my_nginx.conf
现在,当我在本地浏览器中访问该虚拟机的 IP 地址时,出现错误
502 bad gateway
openresty/1.5.12.1
http://xxx.xxx.xxx.xxx:8080/
我在哪里犯错了?
【问题讨论】:
-
这个问题似乎属于 Stack Exchange 网络中的另一个站点,因为它与编程无关。也许Super User 或Server Fault。