在apache安装目录下找到bin目录,该目录下有htpasswd执行文件
转自:http://www.kixi.com.cn/html/xitong/linux/20080824/110.html
htpasswd -cmb userfile abc 123456
c :create
m:md5
b :在命令行上输入密码
解释:创建userfile文件,增加用户名为abc的用户,密码为md5加密的123456
更新密码
htpasswd userfile abc
添加新用户
htpasswd userfile xyz
删除用户
htpasswd -D userfile xyz
生成.htaccess
htpasswd -c .htaccess user
转自:http://www.kixi.com.cn/html/xitong/linux/20080824/110.html
本文介绍了如何使用Apache的htpasswd工具进行用户管理,包括创建、更新密码、添加新用户及删除用户等操作。还提供了生成.htaccess文件的方法。
754

被折叠的 条评论
为什么被折叠?



