was 開啓安全性後啓動服務器

當我們開啓了was的安全性後,我們在命令行使用啓動和重啓相關命令時,都需要輸入用戶名和密碼,

我們可以通過修改/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/sas.client.props 文件:

[wasadmin@wasssl properties]# vi sas.client.props    修改以下兩行

com.ibm.CORBA.loginUserid=wasadmin

com.ibm.CORBA.loginPassword=wasadmin

然後我們將密碼的值進行編碼,這樣我們就不會看到明文,編碼的目的是防止偶然或無意中看到服務器屬性文件中的密碼。

通過 PropFilePasswordEncoder.sh 對文件中的密碼進行編碼。但是 was 並沒有提供解碼的腳本。

[root@wasssl bin]# ./PropFilePasswordEncoder.sh ../properties/sas.client.props com.ibm.CORBA.loginPassword

NOTE:  all specified passwords already encoded in target file == /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/../properties/sas.client.props

之後,我們在命令行操作時,就無需再輸入用戶名和密碼。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章