您好,登錄后才能下訂單哦!
ActiveMQ使用的是jetty服務(wù)器, 打開(kāi)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/時(shí)就不會(huì)彈出用戶名密碼要求輸入。authenticate的屬性value="true" 時(shí),控制臺(tái)的登錄用戶名密碼保存在conf/jetty-realm.properties文件中,內(nèi)容如下:
##--------------------------------------------------------------------------- ##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 值得注意的是用戶名和密碼的格式是:用戶名 : 密碼 ,角色名。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。