shell - 有没有办法在关机后自动启动基于 unix 的系统?

标签 shell unix tomcat

我的本​​地服务器因为断电而关闭。有什么方法可以自动启动系统以及 apache tomcat。

最佳答案

你可以看看Apache Daemon , 这是进行此类事件的有用工具

Jsvc is a set of libraries and applications for making Java applications run on UNIX more easily. Jsvc allows the application (e.g. Tomcat) to perform some privileged operations as root (e.g. bind to a port < 1024), and then switch identity to a non-privileged user.

See here

Also see - Running Tomcat as a service on Linux

关于shell - 有没有办法在关机后自动启动基于 unix 的系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33845728/

相关文章:

linux - bash shell 中的 '$$' 是什么?

bash - 拆分巨大的 CSV 文件

java - HTTP 状态 503 - 此应用程序当前在部署时不可用

unix - 为什么shell脚本比较经常使用x$VAR = xyes?

bash - 从远程服务器调用的脚本无法正确运行服务

linux - Bash 混合 for 循环和 if then 表达式给出不好的结果

bash - 使用 awk 命令删除带有 CRLF 的重复文件

c++ - 抑制 system() 控制台输出

java - 监听器类不调用方法?

java - 使用 Apache CXF 2.3 的 REST 服务调用参数中的分号