- Create file /var/log/pureftpd.log
- Modify /etc/rsyslog.conf
and add after cron.none in this line; ftp.none makes the ftp log information private, and*.info;mail.none;authpriv.none;cron.none /var/log/messages
change into
*.info;mail.none;authpriv.none;cron.none;ftp.none /var/log/messages
Add at the end of the /etc/rsyslog.conf file
ftp. * - / var / log / pureftpd.log
Note: Do not remove the - sign in front of /var, otherwise the log will be recorded in /var/log/messages and /var/log/purefpd.log. Add the - sign, it will only be recorded in /var/log /purefptd.log
- Make /etc/rsyslog.conf take effect
[root@www log]# systemctl restart rsyslog
Pure-ftpd enables logging
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=324817056&siteId=291194637
Ranking