简体   繁体   English

PEP-Proxy-Steelskin日志配置

[英]PEP-Proxy-Steelskin Log configuration

I am configuring the FIWARE PEP-Proxy-steelskin without RPM, due it is installed in a Ubuntu machine. 我正在配置不带RPM的FIWARE PEP-Proxy-steelskin,因为它已安装在Ubuntu计算机中。 After the installation, no log appears in /var/log/pepProxy , and I am afraid this is because of the installation. 安装之后,/ var / log / pepProxy中没有日志出现,并且恐怕这是由于安装所致。

Is there a way to create the log without RPM? 有没有没有RPM的日志创建方法?

It is indeed. 这的确是。 Steelskin does not log to a particular file, but to the standard output. Steelskin不会记录到特定文件,而是记录到标准输出。 That's why you are not seeing any log in /var/log. 这就是为什么在/ var / log中看不到任何日志的原因。 In order to get the log, just make a redirection of the standard output: 为了获取日志,只需对标准输出进行重定向:

nohup bin/pepProxy &> /var/log/pepProxy.log

In this case, you would need to manage the logs using externals tools, like logrotate, the same way it is done in the RPM spec. 在这种情况下,您将需要使用外部工具(例如logrotate)来管理日志,就像在RPM规范中一样。

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

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