...
代码块 | ||
---|---|---|
| ||
# htpasswd -B -C 10 -c password.db smartbiunionserver |
centos
代码块 | ||
---|---|---|
| ||
# yum install httpd -y
# htpasswd -B -C 10 -c password.db smartbiunionserver |
ubuntu
代码块 | ||
---|---|---|
| ||
# 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 | 用户名,可以自定义。 |
...