logrotate 学习使用

logrotate

Summary :

  Rotates, compresses, removes and mails system log files


Description :
  The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of
log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job

socat

Summary :

  Bidirectional data relay between two data channels ('netcat++')

Description :
  Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU line editor (readline), a program, or a combination of two of these.

  

原文地址:https://www.cnblogs.com/doscho/p/7289557.html