| | |
| | | package com.ruoyi.media.service.impl; |
| | | |
| | | import com.ruoyi.utils.tools.CmdUtils; |
| | | import com.ruoyi.utils.process.CmdUtils; |
| | | import com.sun.jna.Platform; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.PreDestroy; |
| | | import java.io.BufferedReader; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.InputStreamReader; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | |
| | | // 启动后台进程 |
| | | CmdUtils.commandStart(processName, cmd, null); |
| | | // 启动cmd窗口 |
| | | // String[] command = {"cmd", "/c", "start", exePath, "-H127.0.0.1:8000", "-o"}; |
| | | // CmdUtils.commandStart(command); |
| | | // String[] command = {"cmd", "/c", "start", exePath, "-H127.0.0.1:8000", "-o"}; |
| | | // CmdUtils.commandStart(command); |
| | | } |
| | | } |
| | | } |