您好,登錄后才能下訂單哦!
ActiveMQ使用的是jetty服務器, 打開conf/jetty.xml文件,找到
<beanid="adminSecurityConstraint"class="org.eclipse.jetty.util.security.Constraint"> <propertyname="name"value="BASIC"/> <propertyname="roles"value="admin"/> <!-- set authenticate=false to disablelogin --> <propertyname="authenticate"value="true"/> </bean>
將property name為authenticate的屬性value="true"改為"false",登錄http://localhost:8161/admin/時就不會彈出用戶名密碼要求輸入。authenticate的屬性value="true" 時,控制臺的登錄用戶名密碼保存在conf/jetty-realm.properties文件中,內容如下:
##--------------------------------------------------------------------------- ##Licensed to the Apache Software Foundation (ASF) under one or more ##contributor license agreements. See the NOTICE file distributed with ## thiswork for additional information regarding copyright ownership. ## TheASF licenses this file to You under the Apache License, Version 2.0 ##(the"License"); you may not use this file except in compliance with ## theLicense. You may obtain a copy of the License at ## ##http://www.apache.org/licenses/LICENSE-2.0 ## ## Unle***equired by applicable law or agreed to in writing, software ##distributed under the License is distributed on an"AS IS"BASIS, ## WITHOUTWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## Seethe License for the specific language governing permissions and ##limitations under the License. ##--------------------------------------------------------------------------- # Definesusers that can access the web (console, demo, etc.) #username: password [,rolename ...] admin:admin, admin user:user, user 值得注意的是用戶名和密碼的格式是:用戶名 : 密碼 ,角色名。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。