【发布时间】:2020-12-10 04:11:21
【问题描述】:
我希望 payara 服务器作为服务运行。我以 sudo 身份登录 asadmin 并使用了 create-service 命令。给出以下输出。
The Service was created successfully. Here are the details:
Name of the service:production
Type of the service:Domain
Configuration location of the service:/etc/init.d/payara_production
User account that will run the service: root
You have created the service but you need to start it yourself. Here are the most typical Linux commands of interest:
* /etc/init.d/payara_production start
* /etc/init.d/payara_production stop
* /etc/init.d/payara_production restart
For your convenience this message has also been saved to this file:
/home/buddhika/payara/glassfish/domains/production/PlatformServices.log
Command create-service executed successfully.
这会在 /etc/init.d/ 文件夹中创建 payara_production 脚本,但是一旦计算机重新启动,该脚本就不会执行。我必须手动启动 payara 才能运行它。
“您已创建服务但需要自己启动”是什么意思,我之前使用的 GlassFish 版本没有类似问题。
如何将 Payara 作为服务启动?
【问题讨论】: