给nginx添加登陆密码: 1、增加密码 htpasswd -bc /usr/local/nginx/conf/htpasswd.user username password htpasswd -b /usr/local/nginx/conf/htpasswd.user username1 password1 # 增加第二个用户把'-c'去掉,不然会覆盖掉前面的用户 2、修改文件/usr/local/ngnix/conf/htpasswd.users的所有者所属组,与nginx的所属用户一致
nginx
2023-11-02
35 点赞
0 评论
53 浏览