当我运行"vmc信息“时,会得到一个错误: error (JSON 404):
cloud@rest:~/cloudfoundry/.deployments/rest/log$ vmc信息-t
>>>
REQUEST: get http://api.mwt.needforspeed.info/info
RESPONSE_HEADERS:
content_length : 239
date : Thu, 11 Oct 2012 07:32:17 GMT
content_type : text/html; charset=iso-8859-1
content_encoding : gzip
server : Apache/2.2.22 (Ubuntu)
vary : Accept-Encoding
RESPONSE: [404]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /info was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at api.mwt.needforspeed.info Port 80</address>
</body></html>
<<<
Error (JSON 404): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /info was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at api.mwt.needforspeed.info Port 80</address>
</body></html>发布于 2012-11-16 22:19:07
看起来您在端口80上运行了apache you服务器。
如果将cloudfoundry安装到普通的Ubuntu上,它将将nginx安装为will服务器。因此,首先停止apache,通常使用:
sudo /etc/init.d/apache2 stop并检查您的nginx (cloudfoundry术语中的路由器)是否正在运行:
source ~/.cloudfoundry_deployment_local
~/cloudfoundry/vcap/dev_setup/bin/vcap_dev -n rest status router请注意,您需要额外的-n rest参数,因为您似乎没有使用默认的开发名称:dev_box
https://stackoverflow.com/questions/12834679
复制相似问题