在apache安装目录下找到bin目录,该目录下有htpasswd执行文件

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

相关文章:

  • 2021-12-01
  • 2021-05-23
  • 2021-07-29
  • 2022-12-23
  • 2021-09-13
  • 2022-02-02
猜你喜欢
  • 2021-10-24
  • 2022-01-03
  • 2021-07-17
  • 2022-01-19
  • 2021-09-13
  • 2022-02-08
相关资源
相似解决方案