htpasswd -c /usr/local/nagios/etc/htpasswd.user nagiosadmin 输入密码: 重启httpd服务。 转载于:https://www.cnblogs.com/seasonsstory/p/3245503.html