When developing WebSphere applications, it is often necessary to start and stop the server, but the startup and shutdown program hides the path too deep to find a half-day for each use. Here are some shortcuts to Windows start and stop servers, which can be easily used by placing shortcuts on menus. Using command line startup is faster than booting under a graphical user interface.
Save the file contents to the corresponding file, then create a shortcut to the three files, and then drag the shortcut to the Windows bottom shortcut startup. Only use the mouse point two times to complete the start and stop operation.
Start server, File Startserver.bat
@echo start Server[server1], profilename[appsrv01]
@echo off
cd/d D:\Program files\ibm\rational\sdp\6.0\ Runtimes\base_v6\profiles\appsrv01\bin
cmd/c startserver server1-profilename AppSrv01
@echo on
@echo Boot complete
@echo off
Pause
Stop server, File Stopserver.bat
<pre name= "code" class= "java" > @echo Stop server[server1], PROFILENAME[APPSRV01]
@echo off
cd/d d:\ Program Files\ibm\rational\sdp\6.0\runtimes\base_v6\profiles\appsrv01\bin
cmd/c stopserver Server1- ProfileName AppSrv01
@echo on
@echo stop completing
@echo off
Pause
Reboot server, File Restartserver.bat
@echo reboot Server[server1], profilename[appsrv01]
@echo off
cd/d D:\Program files\ibm\rational\sdp\6.0\ Runtimes\base_v6\profiles\appsrv01\bin
cmd/c stopserver Server1
cmd/c startserver APPSRV01
@echo on
@echo reboot complete
@echo off
Pause
Users can modify the Appsrv path and profile name according to the actual environment of their machine.
To delete a profile:
You need to verify that the user performing the action has been administrator, and that the Windows platform is normal for users on Aix and Linux platform root users. In this step, you use the Windows platform test to use a system Management Officer
Stop was service
It is important to confirm that the was service was stopped before deleting and that the Windows platform can look for a confirmed startup state in Services.msc, and that Ps-ef|grep was can be used on Linux and AIX platforms to confirm
Confirm Profile Name
CD D:\Program Files (x86) \ibm\websphere\appserver\bin>
Manageprofiles.bat-listprofiles
Delete profile Definition
CD D:\Program Files (x86) \ibm\websphere\appserver\bin>
Manageprofiles.bat-delete-profilename Myprofile
Delete profile Directory
Delete Profiles folder to D:\Program Files (x86) \ibm\websphere\appserver\