Tomcat의 기본 사용자 이름과 비밀번호는 무엇입니까?
Netbeans를 설치하고 (id / pass) manager / manager, admin / admin, system / password ...를 사용하여 서버 관리자에 액세스하려고했습니다.
내 대답은 Tomcat 버전 6.0.26을 번들로 제공하는 NetBeans IDE 6.9.1 이 설치된 Windows 7 에서 테스트되었습니다 . 이 지침은 내 의견에 따라 다른 바람둥이 버전에서도 작동 할 수 있습니다.
NetBeans IDE의 서버 패널에서 Apache Tomcat 서버를 시작하는 경우 NetBeans IDE에서 Tomcat 서버를 시작하는 데 사용하는 Catalina 기본 및 구성 파일이 다른 위치에 유지된다는 것을 알아야합니다.
설치를위한 catalina 기본 디렉토리를 아는 단계 :
- 서버 패널에서 Apache Tomcat 노드를 마우스 오른쪽 버튼으로 클릭 하고 컨텍스트 메뉴에서 속성 옵션을 선택합니다. 그러면 서버라는 대화 상자가 열립니다.
- Catalina Base 필드의 디렉토리 이름을 확인하십시오. 이것은 현재가
conf/tomcat-users.xml있고 열고 읽고 싶은 디렉토리 입니다.
(제 경우에는C:\Users\Tushar Joshi\.netbeans\6.9\apache-tomcat-6.0.26_base) - 에서이 디렉토리를 열고 NetBeans IDE에서 사용
My Computer하는 실제tomcat-users.xml파일 을 찾을 수있는 conf 디렉토리로 이동하십시오 . NetBeans IDE는 하나의 기본 암호와username="ide"임의의 암호로 구성되어 있습니다. 원하는 경우이 사용자 이름과 암호를 변경하거나 로그인에 사용할 수도 있습니다. - 이 대화 상자에는 또한 이러한 기본 사용자 이름 및 암호로 채워진 사용자 이름 및 암호 필드가 있으며 NetBeans IDE 에서는 서버 패널 의 Apache Tomcat 노드 아래에있는 관리자 노드를 마우스 오른쪽 단추로 클릭하여 관리자 응용 프로그램을 열 수 있습니다.
- 유일한 문제 넷빈즈 IDE는 이 URL을 열려고 시도입니다
http://localhost:8084/manager/한다http://localhost:8084/manager/html해주기를
에서 파일 확인 <TOMCAT_HOME>/conf이름을 tomcat-users.xml.
무언가를 찾지 못하면 다음과 같이 편집하십시오.
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<user username="admin" password="password" roles="standard,manager,admin"/>
</tomcat-users>
Tomcat 7에서는 이것을 tomcat-users.xml에 추가해야합니다 (Windows 7에서는 기본 설치 위치 : c : \ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ conf \)
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
</tomcat-users>
이 목록은 쉼표로 구분되어야하므로 관리자 역할 사이에 공백이 없어야합니다.
따라서이 대신 (일부 답변에서 제안한대로)
<user username="admin" password="admin" roles="manager-gui, manager-script, manager-jmx, manager-status, admin-gui, admin-script"/>
다음과 같아야합니다.
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/>
"% TOMCAT_FOLDER % / conf / tomcat-users.xml"로 이동하여 다음을 구성하십시오.
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager-gui,manager-script"/>
</tomcat-users>
따라서 사용자 이름은 "admin"이고 암호는 "admin"입니다.
Tomcat 7, 8 및 9에는 기본 사용자가 없으므로 아무도 Manager 앱에 액세스 할 수 없습니다. 다음과 같이 "manager-gui"역할을 가진 새 사용자를 추가하여 conf / tomcat-users.xml을 변경해야합니다.
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
여기에서 찾아보세요 : https://www.mkyong.com/tomcat/tomcat-default-administrator-password/
tomcat-users.xml있어야하는 오픈C:\Tomcat 7.0\conf
위 파일에 다음 줄을 추가하십시오.
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="" roles="manager-gui"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="s3cret" roles="admin-gui"/>
</tomcat-users>
노트 :
admin-gui-> 사용자 이름 및 비밀번호-변경하지 마십시오.manager-gui-> 사용자 이름과 비밀번호 만 변경할 수 있습니다. [여기 비밀번호는 제공되지 않음]
/conf/tomcat-users.xml 파일에서 다음을 확인하거나 추가하십시오.
......
<role rolename="manager"/>
<user username="ide" password="ide" roles="manager,tomcat,manager-script"/>
</tomcat-users>
플랫폼 NetBeans 7.3, Apache Tomcat 7.0.34 re : Tomcat Manager
설치가 잘못되었다고 생각했기 때문에 3 일 동안 추적했습니다.
Windows 및 Linux에서 NetBeans는 CATALINA_BASE에 대해 별도의 파일 위치를 사용합니다.
http://wiki.netbeans.org/FaqInstallationDefaultTomcatPassword
따라서 CATALINA_HOME 아래에서 tomcat_user.xml을 수정할 수 있습니다. 얼굴이 파란색으로 변할 때까지 효과가 없습니다.
IDE에는 CATALINA_BASE : 아래의 manager-script, admin 역할 만 필요한 것으로 보입니다.
Tomcat Manager에 액세스하는 데 필요한 manager-gui 역할 (올바른 tomcat_user.xml 파일)에 사용자를 추가하려고 할 때 Tomcat은 로그인 대화 상자 표시를 중지하고 401 액세스 거부 스플래시 페이지로 직접 이동했습니다.
NetBeans 패키지는 잠긴 TomCat 버전을 사용하는 것으로 보입니다.
나는 이것이 모두에게 시간을 절약하기를 바랍니다.
First navigate to below location and open it in a text editor
<TOMCAT_HOME>/conf/tomcat-users.xml
For tomcat 7, Add the following xml code somewhere between <tomcat-users>
<role rolename="manager-gui"/>
<user username="username" password="password" roles="manager-gui"/>
Now restart the tomcat server.
Look in your conf/tomcat-users.xml. If there is nothing there, you'd have to configure it.
Well, you need to look at the answers above, but you'll find that the manager app requires you to have a user with the role 'manager', I believe, so you'll probably want to add the following to your tomcat-users.xml file:
<role rolename="manager"/>
<user username="youruser" password="yourpass" roles="manager"/>
This might seem simplistic, but it's just a simple implementation that you can extend / replace with other authentication mechanisms.
In Tomcat 7, under TOMCAT_HOME/conf/tomcat_users.xml, see the <user /> tag to see password.
Example:
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
Only this helped me:
To use the web administration gui you have to add the gui role :
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="name" password="pwd" roles="admin,admin-gui,manager,manager-gui"/>
For Window 7, Netbeans 8.0.2 , Apache Tomcat 8.0.15
C:\Users\JONATHAN\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base\conf\tomcat-users.xml
The Tomcat Manager Username and password is like below pic..

If people still have problems after adding/modifying the tomcat-users.xml file and adding the relevant user/role for the version of Tomcat that they're using then please be sure that you've removed the comment tags that are surrounding this block. They will look like this in the XML file:
<!--
-->
They will be above and below the user/role section.
If your apache tomcat asking for password,then just follow these steps: go to the home directory of apache then go to webapps folder open the META-INF inside that you will find an xml file named context.xml--open it in edit mode
and REMOVE THE COMMENT FROM the VALVE tag.
After that you dont need any user name and password.
In conf/tomcat-users.xml you can see what's your actual user configuration, in my case is usually user="admin" and pass="1234"
try tomcat tomcat as the default username and password (tomcat 7)
참고URL : https://stackoverflow.com/questions/3829513/what-is-the-default-username-and-password-in-tomcat
'Programing' 카테고리의 다른 글
| "if"문에서 변수 초기화 (0) | 2020.10.12 |
|---|---|
| System.Speech.Recognition과 Microsoft.Speech.Recognition의 차이점은 무엇입니까? (0) | 2020.10.12 |
| 젠킨스에서 빌드 번호를 재설정하는 방법은 무엇입니까? (0) | 2020.10.11 |
| PHP GuzzleHttp. (0) | 2020.10.11 |
| android.content.res.Resources $ NotFoundException 가져 오기 : Android에 리소스가있는 경우에도 예외 (0) | 2020.10.11 |