Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does websphere create a profile

Shulou Source: shulou.com Published: 2022-06-02 08:09:26 10月29日 Update

This article mainly introduces "websphere how to create profiles", in daily operation, I believe many people have doubts on how to create profiles in websphere, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, hope to answer "websphere how to create profiles" doubts helpful! Next, please follow the small series to learn together!

Websphere has been created in docker container. Now start creating profile file. First create a management node.

./ manageprofiles.sh -create\ -profileName Dmgr01\ -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01\ -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/management\ -serverType DEPLOYMENT_MANAGER\ -cellName Dmgr01Cell\ -nodeName Dmgr01Node\ -hostName localhost\ -enableAdminSecurity true\ -adminUserName admin\ -adminPassword wasadmin\ -isDefault

Then take a look at the default port for creating a good profile

cat /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props

WC_adminhost=9060 and WC_adminhost_secure=9043, mine are 9060 and 9043.

Because I mapped port 9043 in the container to the host, we went to the bin directory of Dmgr01 to start the management node.

./ startManager.sh

Then we can access the host's port 9043 on the admin console too

https://IP:9043/ibm/console/logon.jsp

Then create two managed nodes and add them to the management node. Do not specify the cell name again, otherwise the creation will fail.

./ manageprofiles.sh -create\ -profileName Custom01\ -profilePath /opt/IBM/WebSphere/AppServer/profiles/Custom01\ -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed\ -nodeName Custom01Node\ -hostName localhost\ -dmgrHost localhost\ -dmgrPort 8879\ -dmgrAdminUserName admin\ -dmgrAdminPassword wasadmin./ manageprofiles.sh -create\ -profileName Custom02\ -profilePath /opt/IBM/WebSphere/AppServer/profiles/Custom02\ -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed\ -nodeName Custom02Node\ -hostName localhost\ -dmgrHost localhost\ -dmgrPort 8879\ -dmgrAdminUserName admin\ -dmgrAdminPassword wasadmin

The above is the Linux system through the command to create profiles, but also through the interface profile manager to create. If you create a command line under Windows, you need to replace the last newline\of each line of the above command with ^, or remove the newline and put all parameters on one line. Here are two examples

manageprofiles.bat -create^ -profileName Dmgr01^ -profilePath "C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Dmgr01"^ -templatePath "C:\Program Files (x86)\IBM\WebSphere\AppServer\profileTemplates\management"^ -serverType DEPLOYMENT_MANAGER^ -cellName Dmgr01Cell^ -nodeName Dmgr01Node^ -hostName localhost^ -enableAdminSecurity true^ -adminUserName admin^ -adminPassword wasadmin^ -isDefaultmanageprofiles.bat -create^ -profileName Custom01^ -profilePath "C:\Program Files (x86)\IBM\WebSphere\AppServer\profiles\Custom01"^ -templatePath "C:\Program Files (x86)\IBM\WebSphere\AppServer\profileTemplates\managed"^ -nodeName Custom01Node^ -hostName localhost^ -dmgrHost localhost^ -dmgrPort 8879^ -dmgrAdminUserName admin^ -dmgrAdminPassword wasadmin This is the end of learning about "websphere how to create profiles," hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: File summary management node learning command port two host container newline character more built help practical next one line parameter can pass name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info Docker Redmi NVidia