搭建lnmp 用户认证时,系统中没有安装apache的情况下可以安装httpd-tools即可。
yum install -y httpd-tools
httpd-tools-2.2.15-47.el6.centos.4.x86_64.rpm
使用方法
htpasswd -c -m /usr/local/nginx/conf/.htpasswd 111
yum install -y httpd-tools
httpd-tools-2.2.15-47.el6.centos.4.x86_64.rpm
使用方法
htpasswd -c -m /usr/local/nginx/conf/.htpasswd 111
编辑回复