Creating a boot.properties file
In the production mode, the server will prompt for your administration username and password when you start the server. While this does not directly impact performance, it means that server restarts cannot be performed automatically, possibly reducing the number of running servers and impacting performance that way. This recipe looks at how you can create a boot.properties
file which will allow servers to be restarted without prompts.
Getting ready
You will need to be able to log on to the host running your WebLogic servers as the user that owns the domain files.
How to do it…
To create a boot.properties
file, perform the following steps:
Navigate to the directory
%DOMAIN_HOME%/servers/AdminServer/security
as shown in the the following command line:cd %DOMAIN_HOME%/servers/AdminServer/security
Create a new file called
boot.properties
, with two properties defined, username and password.Save the file.
Start WebLogic using the following command:
cd %DOMAIN_HOME%/ ./startWebLogic...