log-rotate-300x299

Install Logrotate on FreeBSD.

November 23, 2016 Admin 0

1. Install logrotate #cd /usr/ports/sysutils/logrotate #make install clean 2. Configure logrotate #mkdir /usr/local/etc/logrotate.d #cp /usr/local/etc/logrotate.conf.sample /usr/local/etc/logrotate.conf 3. Configure logrotate for mongodb log. #vi /usr/local/etc/logrotate.d/mongod   […]