停止啟用了安全性的WAS Server而不手動輸入密碼之第二種選擇
[url=http://www.java2class.net/bbs/viewthread.php?tid=207]停止啟用了安全性的WAS Server而不手動輸入密碼之第二種選擇[/url]
眾所周知的應當是如下最簡單的方式了
%PROFILE_HOME%\bin\stopServer.bat serverXyz -username Xyz -password Xyz
但是使用者名稱與密碼全是明文了,在某些場景下可能不太符合
現在給出第二種選擇方法
set PROFILE_HOME=D:\IBM\WebSphere\AppServer\6.1\profiles\AppSrvSingle
cd %PROFILE_HOME%\properties
先備份一下 sas.client.props 與 soap.client.props 檔案
由於連線的方式有兩種 : SOAP 與 RMI,預設是 SOAP 方式
1. SOAP 方式的修改
開啟 soap.client.props 檔案,約在第 26 行
com.ibm.SOAP.loginUserid=
com.ibm.SOAP.loginPassword=
預設下,值均為空的,填入目前正在使用的使用者與密碼,比如均為WebSphere
com.ibm.SOAP.loginUserid=WebSphere
com.ibm.SOAP.loginPassword=WebSphere
然後執行
%PROFILE_HOME%\bin\PropFilePasswordEncoder.bat %PROFILE_HOME%\properties\soap.client.props com.ibm.SOAP.loginPassword -Backup
執行成功後,會有如下提示
NOTE: all specified passwords already encoded in target file == %PROFILE_HOME%\properties\soap.client.props
或
NOTE: Backup file %PROFILE_HOME%\properties\soap.client.props.bak contains unencoded passwords
開啟 soap.client.props 檔案可以看到密碼已經加密,如下
com.ibm.SOAP.loginUserid=WebSphere
com.ibm.SOAP.loginPassword={xor}CDo9DC83Oi06
然後停止WAS Server直接採用如下命令停止WAS Server即可,不需要再輸入使用者名稱與密碼了
%PROFILE_HOME%\bin\stopServer.bat server1
或
%PROFILE_HOME%\bin\stopServer.bat server1 -conntype SOAP
預設的SOAP連線埠是 SOAP_CONNECTOR_ADDRESS 埠
2. RMI 方式的修改與 SOAP 方式類同
開啟 sas.client.props 檔案,約在第 90 行
com.ibm.CORBA.loginUserid=
com.ibm.CORBA.loginPassword=
預設下,值均為空的,填入目前正在使用的使用者與密碼,比如均為WebSphere
com.ibm.CORBA.loginUserid=WebSphere
com.ibm.CORBA.loginPassword=WebSphere
然後執行
%PROFILE_HOME%\bin\PropFilePasswordEncoder.bat %PROFILE_HOME%\properties\sas.client.props com.ibm.CORBA.loginPassword -Backup
執行成功後,會有如下提示
NOTE: all specified passwords already encoded in target file == %PROFILE_HOME%\properties\sas.client.props
或
NOTE: Backup file %PROFILE_HOME%\properties\sas.client.props.bak contains unencoded passwords
開啟 soap.client.props 檔案可以看到密碼已經加密,如下
com.ibm.CORBA.loginUserid=WebSphere
com.ibm.CORBA.loginPassword={xor}CDo9DC83Oi06
需要注意的是 RMI 方式還需要更改如下鍵值
com.ibm.CORBA.loginSource=prompt
為
com.ibm.CORBA.loginSource=properties
然後停止WAS Server直接採用如下命令停止WAS Server即可,不需要再輸入使用者名稱與密碼了
%PROFILE_HOME%\bin\stopServer.bat server1 -conntype RMI -port 2809
預設的RMI連線埠是 BOOTSTRAP_ADDRESS 埠
眾所周知的應當是如下最簡單的方式了
%PROFILE_HOME%\bin\stopServer.bat serverXyz -username Xyz -password Xyz
但是使用者名稱與密碼全是明文了,在某些場景下可能不太符合
現在給出第二種選擇方法
set PROFILE_HOME=D:\IBM\WebSphere\AppServer\6.1\profiles\AppSrvSingle
cd %PROFILE_HOME%\properties
先備份一下 sas.client.props 與 soap.client.props 檔案
由於連線的方式有兩種 : SOAP 與 RMI,預設是 SOAP 方式
1. SOAP 方式的修改
開啟 soap.client.props 檔案,約在第 26 行
com.ibm.SOAP.loginUserid=
com.ibm.SOAP.loginPassword=
預設下,值均為空的,填入目前正在使用的使用者與密碼,比如均為WebSphere
com.ibm.SOAP.loginUserid=WebSphere
com.ibm.SOAP.loginPassword=WebSphere
然後執行
%PROFILE_HOME%\bin\PropFilePasswordEncoder.bat %PROFILE_HOME%\properties\soap.client.props com.ibm.SOAP.loginPassword -Backup
執行成功後,會有如下提示
NOTE: all specified passwords already encoded in target file == %PROFILE_HOME%\properties\soap.client.props
或
NOTE: Backup file %PROFILE_HOME%\properties\soap.client.props.bak contains unencoded passwords
開啟 soap.client.props 檔案可以看到密碼已經加密,如下
com.ibm.SOAP.loginUserid=WebSphere
com.ibm.SOAP.loginPassword={xor}CDo9DC83Oi06
然後停止WAS Server直接採用如下命令停止WAS Server即可,不需要再輸入使用者名稱與密碼了
%PROFILE_HOME%\bin\stopServer.bat server1
或
%PROFILE_HOME%\bin\stopServer.bat server1 -conntype SOAP
預設的SOAP連線埠是 SOAP_CONNECTOR_ADDRESS 埠
2. RMI 方式的修改與 SOAP 方式類同
開啟 sas.client.props 檔案,約在第 90 行
com.ibm.CORBA.loginUserid=
com.ibm.CORBA.loginPassword=
預設下,值均為空的,填入目前正在使用的使用者與密碼,比如均為WebSphere
com.ibm.CORBA.loginUserid=WebSphere
com.ibm.CORBA.loginPassword=WebSphere
然後執行
%PROFILE_HOME%\bin\PropFilePasswordEncoder.bat %PROFILE_HOME%\properties\sas.client.props com.ibm.CORBA.loginPassword -Backup
執行成功後,會有如下提示
NOTE: all specified passwords already encoded in target file == %PROFILE_HOME%\properties\sas.client.props
或
NOTE: Backup file %PROFILE_HOME%\properties\sas.client.props.bak contains unencoded passwords
開啟 soap.client.props 檔案可以看到密碼已經加密,如下
com.ibm.CORBA.loginUserid=WebSphere
com.ibm.CORBA.loginPassword={xor}CDo9DC83Oi06
需要注意的是 RMI 方式還需要更改如下鍵值
com.ibm.CORBA.loginSource=prompt
為
com.ibm.CORBA.loginSource=properties
然後停止WAS Server直接採用如下命令停止WAS Server即可,不需要再輸入使用者名稱與密碼了
%PROFILE_HOME%\bin\stopServer.bat server1 -conntype RMI -port 2809
預設的RMI連線埠是 BOOTSTRAP_ADDRESS 埠
相關文章
- 啟動軟體輸入密碼密碼
- scp 手動輸入密碼後後臺執行的方法密碼
- vivo手機安裝應用自動輸入密碼密碼
- 直播app原始碼,登入時自動輸入密碼/自動記住密碼APP原始碼密碼
- 自動輸入密碼使用root許可權開啟shell指令碼密碼指令碼
- 自定義支付密碼輸入view、密碼鍵盤並自動檢測6位密碼輸入完全密碼View
- select框既可以手輸入也可以選擇
- input 密碼輸入框如何定位,並且輸入密碼呢?密碼
- Elasticsearch 中為什麼選擇倒排索引而不選擇 B 樹索引Elasticsearch索引
- 移動端彈窗輸入密碼的那些事密碼
- 直播app系統原始碼,使用者登入後選擇記住密碼,下次自動填充密碼APP原始碼密碼
- Flutter 密碼輸入框 驗證碼輸入框Flutter密碼
- 如何在 Linux 中不輸入密碼執行 sudo 命令Linux密碼
- WWDC 2018:自動強密碼與驗證碼自動輸入密碼
- kafka原始碼剖析(二)之kafka-server的啟動Kafka原始碼Server
- jQuery 顯示 input 輸入的密碼!jQuery密碼
- 輸入密碼檢視flag密碼
- 恢復 Microsoft SQL Server SA 密碼的三種方法ROSSQLServer密碼
- storm叢集啟動停止指令碼ORM指令碼
- android 短視訊開發,使用者選擇記住密碼,再次登入自動讀取儲存密碼Android密碼
- 一對一聊天原始碼,驗證碼選擇輸入字母驗證原始碼
- 如果你還在為選擇WordPress主機而糾結,選擇GoDaddy不會有錯!Go
- vue自定義密碼輸入框解決瀏覽器自動填充密碼的問題Vue密碼瀏覽器
- win 開機自動輸入密碼 並設定 cmder 開機自啟執行密碼
- macbook開機登入時輸入正確的密碼卻提示密碼錯誤Mac密碼
- nacos啟動,MySQL無密碼啟動MySql密碼
- Mac設定使用者自動登入無需輸入密碼的方法Mac密碼
- springboot啟動的applicationContext的型別選擇Spring BootAPPContext型別
- 密碼系統的安全性(一)密碼
- 密碼系統的安全性(二)密碼
- 審計SQL Server安全性的幾種方式YGSQLServer
- 微軟輸入法打字時不顯示選字框 win10輸入法的選字框不見了微軟Win10
- Flutter 自定義輸入框Selection選單和選擇器Flutter
- win10手寫輸入怎麼開啟_win10開啟手寫輸入的步驟Win10
- 一對一視訊原始碼,登入時輸入密碼時的顯示密碼按鈕原始碼密碼
- git push要輸入密碼問題Git密碼
- 輸入密碼連線過程log密碼
- 無需輸入密碼,macOS 設定開機直接免密碼進入桌面密碼Mac
- 四、Docker的啟動與停止Docker