Truncate NGINX log files in Linux (Debian, Ubuntu, CentOs)
In Linux OS (Debian, Ubuntu, CentOs) log files of web server can grow and grow. According to web server activity, they can grow to a very big size. To remove files is a bad solution because they won't be restored and you loose new logs.
The SSH command to truncate log files:
truncate -s 0 /var/log/*.log #(0 - zero)
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL