简体   繁体   English

我如何从openshift平台获取access.log

[英]How can i get the access.log from the openshift platform

I built a app ,and i choose the php language.I see that openshift platform use the Apache Server. 我构建了一个应用程序,然后选择了php语言。我看到openshift平台使用Apache服务器。

now i want to check the access.log? 现在我要检查access.log? how can i find it? 我如何找到它?

thx! 谢谢!

The easiest way would just be to just run rhc tail YOUR_APP_NAME from the command line tools. 最简单的方法就是从命令行工具运行rhc tail YOUR_APP_NAME

To view the logs on the remote server: 要查看远程服务器上的日志:

rhc ssh YOUR_APP_NAME # ssh into your app
cd $OPENSHIFT_LOG_DIR # change to the log directory
tail -f php.log

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

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