问题描述
[Unit]
Description=StorageWebServer
[Service]
WorkingDirectory=/opt/StorageWebServer
ExecStart=/opt/java/openjdk/jdk-16.0.2/bin/java -jar /opt/StorageWebServer/StorageWebServer.jar
User=jvmapps
Type=simple
Restart=on-failure
RestartSec=10
StandardOutput=file:/opt/log.log
StandardError=file:/opt/log2.log
[Install]
WantedBy=multi-user.target
我重新加载了文件,重新启动了服务,但仍然没有将输出写入文件夹。
使用 Ubuntu 在 Amazon EC2 上运行
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)