Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 java webapp (重启按钮或类似)中执行 apache 服务器重启。例如apachectl graceful
apachectl graceful
如果有的话,我怎么能这样做?
您可以在脚本中使用 apache 服务器启动命令,然后从您的 Java 代码中调用该脚本。