Home > Backend Development > PHP Tutorial > 【PHP分享】Windows tail工具分享

【PHP分享】Windows tail工具分享

WBOY
Release: 2016-06-23 13:48:30
Original
1027 people have browsed it

  作者:zhanhailiang 日期:2014-09-28
Copy after login

在Linux下可以使用tail -f工具实时查看输出的日志。最近切换到本地Windows开发环境,顿时有点不爽。百度了下,终于找到tail的Windows的实现版本。

1. 下载tail,解压后将tail.exe复制到Path路径下,以笔者为例,C:\Windows\System32;

2. 测试如下:

Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation。保留所有权利。D:\Users\wade.zhan><strong>tail --help</strong>tail 1.0.0.1 created by Jorgen BosmanUsage: tail [options] fileOptions:  -[x]f : Follow the file and display new lines as they are written to the file          Optionally display the x last lines first (default=10)  -n x  : Displays the last x lines of the file  -s x  : Sleeps x miliseconds between 2 read attempts for -f optionD:\Users\wade.zhan><strong>tail -f D:/temp/php-errors.log</strong>
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template