此内容没有您所选择的语言版本。

3.12. Managing the Server Service


3.12.1. Starting the Server and Other Services

The simplest way to start all installed services (server, agent, and storage node) is simply to run the script with the start command.
[jsmith@server ~]$ serverRoot/bin/rhqctl start
Trying to start the RHQ Server...
RHQ Server (pid 27547) is starting
Copy to Clipboard Toggle word wrap
Any individual service can be started using the appropriate option (--server, --storage, or --agent).
[jsmith@server ~]$ serverRoot/bin/rhqctl start --server
Copy to Clipboard Toggle word wrap
The RHQ_JAVA_HOME environment variable must be set on Red Hat Enterprise Linux systems for the server to start. This can be set to a general value like /usr/.
Note
The server must be started using the rhqctl script, not the rhq-server.sh script.
Any agents installed with the server must be started using the rhqctl command. It must not be started using the rhq-agent.sh script.
Additionally, the agent must be started without requiring any user intervention. The RHQ_AGENT_PASSWORD_PROMPT parameter should always be commented out or set to false so that no password is required to start the agent.

3.12.2. Opening the Server in a Console

When the server is running as a service on either Windows or Linux, it is running in the background. It is possible to open the server in a console window, using the control script:
  1. Stop the JBoss ON server.
    [jsmith@server ~]$ serverRoot/jon-server-3.3.2.GA/bin/rhqctl stop
    Copy to Clipboard Toggle word wrap
  2. Run the rhqctl script with the console command.
    [jsmith@server ~]$ serverRoot/jon-server-3.3.2.GA/bin/rhqctl console --server
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat