ftp提示:530 Login authentication failed 错误,大概意思是用户认证失败,查看了下日志,内容如下:
0 1 2 3 4 5 6 |
May 4 22:00:27 hz pure-ftpd: (?@115.x.x.x) [INFO] New connection from 115.x.x.x May 4 22:00:27 hz pure-ftpd: (?@115.x.x.x) [ERROR] The SQL server seems to be down [Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)] May 4 22:00:31 hz pure-ftpd: (?@115.x.x.x) [WARNING] Authentication failed for user [admin] May 4 22:00:31 hz pure-ftpd: (?@115.x.x.x) [INFO] Logout. May 4 22:00:41 hz pure-ftpd: (?@115.x.x.x) [INFO] New connection from 115.x.x.x May 4 22:00:41 hz pure-ftpd: (?@115.x.x.x) [ERROR] The SQL server seems to be down [Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)] May 4 22:00:46 hz pure-ftpd: (?@115.x.x.x) [WARNING] Authentication failed for user [admin] |
错误日志很明显了,由于/tmp/mysql.sock的问题,逐步排除如下:SourceByrd's Weblog-https://note.t4x.org/error/ftpd-login-authentication-failed/
①:pureftpd-mysql.conf中MYSQLSocket配置是否正确。SourceByrd's Weblog-https://note.t4x.org/error/ftpd-login-authentication-failed/
②:/etc/my.cnf中socket的位置是否与MYSQLSocket完全一致。SourceByrd's Weblog-https://note.t4x.org/error/ftpd-login-authentication-failed/
③:不排除其他因素导致的问题。SourceByrd's Weblog-https://note.t4x.org/error/ftpd-login-authentication-failed/ SourceByrd's Weblog-https://note.t4x.org/error/ftpd-login-authentication-failed/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!