页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
linenumberstrue
# htpasswd -B -C 10 -c password.db smartbiunionserver

centos

代码块
linenumberstrue
# yum install httpd -y
# htpasswd -B -C 10 -c password.db smartbiunionserver

ubuntu

代码块
linenumberstrue
# apt-get install -y apache2-utils
# htpasswd -B -C 10 -c password.db smartbiunionserver

注意:Linux环境安装可能需要联网或者配置本地源

参数说明

参数参数说明
-B强制使用bcrypt算法加密密码
-C

设置bcrypt算法的计算时间,默认是5。数值越大越安全,但是会花费更多时间,建议配置4-17

-c创建一个新的密码文件 password.db
smartbiunionserver用户名,可以自定义。

...