acoolboy 发表于 2016-9-27 14:52:48

1.3版本,给网站下面一个目录增加ftp帐户访问问题,

说好的,1.3版本的ftp不用mysql数据库支持了,我想给网站下面一个目录增加一个ftp访问,进行如下操作,提示错误:
# lnmp ftp add
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            http://lnmp.org            |
+-------------------------------------------+
verify your current MySQL root password:
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
MySQL root password incorrect!Please check!
verify your current MySQL root password:
Warning: Using a password on the command line interface can be insecure.
MySQL root password correct.
Enter ftp account name: bbctheme
Enter password for ftp account bbctheme: ..
Enter directory for ftp account kzbbctheme: /home/wwwroot/bbc.my.com/public/themes/luckymall/images/
Warning: Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'ftpusers.users' doesn't exist
FTP User: bbctheme already exists!
# lnmp ftp list
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            http://lnmp.org            |
+-------------------------------------------+
verify your current MySQL root password: 123456
Warning: Using a password on the command line interface can be insecure.
MySQL root password correct.
Warning: Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'ftpusers.users' doesn't exist
Read database failed.
# lnmp ftp list
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            http://lnmp.org            |
+-------------------------------------------+
verify your current MySQL root password: ^C
# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL.. SUCCESS!
# lnmp ftp add
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            http://lnmp.org            |
+-------------------------------------------+
verify your current MySQL root password:
Warning: Using a password on the command line interface can be insecure.
MySQL root password correct.
Enter ftp account name: bbcthemes
Enter password for ftp account bbcthemes:
Enter directory for ftp account kzbbcthemes: /home/wwwroot/bbc.my.com/public/themes/luckymall/images/
Warning: Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'ftpusers.users' doesn't exist
FTP User: bbcthemes already exists!

licess 发表于 2016-9-27 19:12:19

这个明显不是1.3的lnmp脚本,1.3的lnmp管理脚本里只有database选项里会验证mysql root密码

acoolboy 发表于 2016-9-27 21:34:57

不可能啊。一直都安装的1.3,创建网站的时候,同时创建ftp,很正常。
怎么查看是不是1.3呢?
lnmpa 1.3

wget -c --no-check-certificate https://api.sinas3.com/v1/SAE_lnmp/soft/lnmp1.3-full.tar.gz && tar zxf lnmp1.3-full.tar.gz && cd lnmp1.3-full && ./install.sh lnmpa

一路安装下来的。

[ 本帖最后由 acoolboy 于 2016-9-27 21:38 编辑 ]

licess 发表于 2016-9-28 09:01:34

https://github.com/licess/lnmp/blob/master/conf/lnmpa 这个是1.3的
https://github.com/licess/lnmp/blob/e74355b1b7db8d007714401cf43d2c9e8cfe0b1d/conf/lnmpa 这个是1.2的

呢可以自己编辑 /bin/lnmp 看一下,1.3里的验证mysqlroot密码是Verify_DB_Password,现实的文字是Enter current root password of Database (Password will not shown):
1.2的是Verify_MySQL_Password ,现实的文字是 verify your current MySQL root password:
所以按你发的信息看你装的肯定是1.2或者有其他可能是装了1.3,有自己把1.2的lnmp管理脚本拷贝过去了

acoolboy 发表于 2016-9-28 10:27:31

谢谢。解决了。的确是另外一个同事重新安装成1.2了。我就说明明我安装的是1.3。
不过添加新帐户,报错。

[ 本帖最后由 acoolboy 于 2016-9-28 12:39 编辑 ]
页: [1]
查看完整版本: 1.3版本,给网站下面一个目录增加ftp帐户访问问题,