Linux下不能使用db_load命令,需要先查看系统中是否存在该命令。
1、在命令行输入以下命令:
db_load
usage: db_load [-nTV] [-c name=value] [-f file] [-h home] [-P password] [-t btree | hash | recno | queue] db_file
usage: db_load -r lsn | fileid [-h home] [-P password] db_file
#显示这个说明这个存在,如果显示其他的就没有db_load命令2、如果不存在db_load命令,直接安装即可。
yum -y install db43、db_load命令主要是用来生成db数据库使用的。
比如:在Vsftpd的虚拟用户设置中,先新建一个文件users.txt 把用户名密码放入其中
接着输入命令:
db_load -T -t hash -f */users.txt */users.db
#星号表示目录
#这样就生成了一个users.db文件(hash码型的数据库文件)