4.2. 在红帽企业 Linux 中将 JBoss EAP 配置为服务(RPM 安装)
先决条件
- 将 JBoss EAP 作为 RPM 安装安装.
- 服务器上的管理员特权.
不支持在一台计算机上将多个 JBoss EAP 实例配置为系统服务。
JBoss EAP 的 RPM 安装将安装作为服务运行 JBoss EAP 所需的一切。使用下列命令之一激活 JBoss EAP 服务,以在系统启动时自动启动:
				对于以下命令,请将 EAP_SERVICE_NAME 替换为独立 JBoss EAP 服务器的 eap7-standalone,或者将 EAP_SERVICE_NAME 替换为 受管域的 eap7- standalone。
			
- Red Hat Enterprise Linux 6: - chkconfig EAP_SERVICE_NAME on - chkconfig EAP_SERVICE_NAME on- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Red Hat Enterprise Linux 7 及更新的版本: - systemctl enable EAP_SERVICE_NAME.service - systemctl enable EAP_SERVICE_NAME.service- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
若要按需启动或停止 JBoss EAP 的 RPM 安装,请参阅 JBoss EAP 配置指南中的 RPM 指令。
有关更多详细信息和选项,请参见 JBoss EAP 配置指南中 https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.3/html-single/configuration_guide/#rpm_installation_configuration_files 的附录 RPM 服务配置文件。