有没有一种方式来尾尾的资源,如http://someserver.com/logs/server.log ?
这是我会为本地文件做的。
tail -F /var/logs/somefile.log
我想要类似于通过http协议访问的文件
如果您能够运行php脚本,则可以使用https://stackoverflow.com/a/1102346/401005中的脚本。 你应该添加一个flush();
echo
。
当使用curl --no-buffer http://the/url
你应该有一个合适的输出