您好,我不确定自己是否正在尝试连接到Apache服务器,这是我正在学习的课程。但是,现在在我将代码删除并恢复为默认设置后,它一直在要求输入密码。
以下是我的tomcat-users.xml文件内容:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<user username="ide" password="EiWnNlBG" roles="manager-script,admin"/>
</tomcat-users>
同时,这是在工具--->服务器--->密码和用户名中设置的。
我在输出中得到的错误信息如下:
Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager.
See the server log for details.
BUILD FAILED (total time: 6 seconds)
我只改变了tomcat-users.xml和web.xml,但我已经恢复了一切正常,但仍然要求输入用户名和密码。