Appache下 创建SVN账号(针对具体项目)

来源:互联网 发布:智慧树网络课答案2017 编辑:程序博客网 时间:2024/06/05 02:17

第一步:切换到svn目录下

:cd  /var/www/svn//conf

第二步:使用htpasswd命令创建用户

:htpasswd -m 密码存放文件  用户名

-c  Create a new file.
 -n  Don't update file; display results on stdout.
 -b  Use the password from the command line rather than prompting for it.
 -i  Read password from stdin without verification (for script usage).
 -m  Force MD5 encryption of the password (default).
 -B  Force bcrypt encryption of the password (very secure).
 -C  Set the computing time used for the bcrypt algorithm
     (higher is more secure but slower, default: 5, valid: 4 to 31).
 -d  Force CRYPT encryption of the password (8 chars max, insecure).
 -s  Force SHA encryption of the password (insecure).
 -p  Do not encrypt the password (plaintext, insecure).
 -D  Delete the specified user.
 -v  Verify password for the specified user.

第三步:按照提示输入两次密码即可