nginx设置密码

printf "admin:$(openssl passwd -crypt 123456) " >> .htpasswd

admin与123456分别是用户名与密码

原文地址:https://www.cnblogs.com/wlemory/p/5353709.html