启动Apache Server时启动应用程序

时间:2023-01-20 21:26:17

Is there a way to start a Java application when launching Apache Server? I need to generate a report of the server's statistics, periodically, with a separate application.

有没有办法在启动Apache Server时启动Java应用程序?我需要使用单独的应用程序定期生成服务器统计信息的报告。

1 个解决方案

#1


On Windows: Create a batch file; which will start both Apache and Tomcat services one after another. See below:

在Windows上:创建批处理文件;这将一个接一个地启动Apache和Tomcat服务。见下文:

sc start MyService

#1


On Windows: Create a batch file; which will start both Apache and Tomcat services one after another. See below:

在Windows上:创建批处理文件;这将一个接一个地启动Apache和Tomcat服务。见下文:

sc start MyService