以 PDF 格式下載這本書 (642 KB)
Chapter 4 Administration Server And NodesRunning Administration Server As Non-RootProblem: Unable to bind at port <port_number>. The administration server and the administration nodes should be run by the same user id in Unix. This is because of the following reason:
So for the administration server to perform its job of maintaining the server instances, it either needs to be part of the root process or at least the same user as that of the server instance. However in Solaris 10, you don't need to run the Administration Server as root to bind to port 80 (or < 1024). Execute the following commands:
Pulling Configuration Changes to the Administration ServerWhenever you make manual changes to the configuration, you should replicate the changes back into the Administration server repository as follows:
Note – The operation may take some time depending on the configuration. Note – Always use the Administration Console or the wadm CLI to edit the settings. Making Changes to server.policy FileIf you are deploying your website containing Java web applications and would like to enable security manager within the web container, then you will need to edit the server instance's server.policy file. In this scenario, Administration Server does not provide a direct command line interface or GUI to edit this server.policy file. But you can still perform the steps as mentioned in the previous section to make any manual edit to the server.policy file. Deployment Pending Message in Administration ConsoleQuestion:When I make changes to a configuration from the GUI, I see a deployment pending message. What does it mean? Answer:The deployment pending message indicates that there are changes to the configuration that are saved into the administration server's configuration store. You need to click the Deploy button to save these changes to the instances. Do I Need to Save or Deploy?Question:What is the difference between the Save and Deploy buttons that shows up on every page in the Administration Console within a configuration? Answer:If you click on Save, then the changes are saved only in the configuration store. When you click the Deploy button, the changes will be saved to the instances. Manually Editing Configuration FilesQuestion:Can I make manual edits to my configuration files? Will these be reflected in the CLI and GUI? Answer:If you need to make manual changes to the configuration files,
make the changes within the configuration store. These changes will be reflected
in the CLI and GUI and can be deployed using the Note – Always use the Administration Console or the wadm CLI to edit the settings. deploy-config Command FailsQuestion:Sometimes the When Where Can I Find wadm CLI?Question:Where can I find the CLI for Sun Java System Web Server 7.0 administration? Answer:The administration CLI is located at
Note – Administration server needs to be running in order to use the
CLI. You can start the server by running Note – If you are using wadm CLI on the same machine where the Administration Server is installed, then you do not need to know the Administration Server's port number. You are required to know the port number only if you have configured Administration Node and need to use wadm CLI to connect to a remote Administration Server. |
|||