Closed AI1379 closed 3 years ago
如题。我想在我的Linux服务器上配置运行mcl。我使用的是screen。ssh保持连接时可以正常使用,但是当ssh连接关闭后就会自动停止运行。
root@listener1379-server:~/mcl-1.0.5#./mcl 09:15:09 [INFO] iTXTech Mirai Console Loader version 1.0.5-9b6cf6d 09:15:09 [INFO] https://github.com/iTXTech/mirai-console-loader 09:15:09 [INFO] This program is licensed under GNU AGPL v3 09:15:09 [DEBUG] Loading script: updater.js 09:15:09 [DEBUG] Loading script: repo.js 09:15:09 [DEBUG] Loading script: config.js 09:15:09 [DEBUG] Loading script: oraclejdk.js 09:15:09 [DEBUG] Loading script: boot.js 09:15:09 [DEBUG] Loading script: announcement.js 09:15:10 [INFO] Verifying "net.mamoe:mirai-console" version 2.4.0 09:15:11 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.4.0 09:15:11 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.4.0 09:15:11 [INFO] Verifying "net.mamoe:mirai-api-http" version 1.9.8 09:15:11 [INFO] Fetching Mirai Console Loader Announcement... 09:15:12 [INFO] Mirai Console Loader Announcement: Mirai Console Loader 公告栏 09:15:12 [WARNING] Package "net.mamoe:mirai-api-http" requires "net.mamoe:mirai-console" version 2.3.2. Current version is 2.4.0 2021-02-25 09:15:13 I/main: Starting mirai-console... 2021-02-25 09:15:13 I/main: Backend: version 2.4.0, built on 2021-02-14 21:51:02. 2021-02-25 09:15:13 I/main: Frontend Terminal: version 2.4.0, provided by Mamoe Technologies 2021-02-25 09:15:14 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http 2021-02-25 09:15:14 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop 2021-02-25 09:15:14 W/net.mamoe.mirai-api-http: USING INITIAL KEY, please edit the key 2021-02-25 09:15:14 I/net.mamoe.mirai-api-http: Starting Mirai HTTP Server in 127.0.0.1:8080 2021-02-25 09:15:14 I/Mirai HTTP API: Http api server is running with authKey: INITKEYEZbbHhZu 2021-02-25 09:15:14 I/net.mamoe.mirai-api-http: 心跳模块启用状态: false 2021-02-25 09:15:14 I/net.mamoe.mirai-api-http: 上报模块启用状态: false 2021-02-25 09:15:14 I/main: 1 plugin(s) enabled. 2021-02-25 09:15:18 I/main: Auto-login 2305341388 2021-02-25 09:15:20 I/Bot.2305341388: Logging in... 2021-02-25 09:15:21 I/Bot.2305341388: No OtherClient online. 2021-02-25 09:15:21 I/Bot.2305341388: Login successful 2021-02-25 09:15:21 I/main: mirai-console started successfully. > root@listener1379-server:~/mcl-1.0.5#
请问是否有方案在Linux上维持后台运行mcl或者mirai-console?
我用的也是screen, 命令是screen -A -m -d -S mcl ./mcl &
screen
screen -A -m -d -S mcl ./mcl &
ok我找到方案了 我用nohup ./mcl > output.log &解决的 有一个缺点是没法在console输入不过因为我自己暂时用不着
nohup ./mcl > output.log &
如题。我想在我的Linux服务器上配置运行mcl。我使用的是screen。ssh保持连接时可以正常使用,但是当ssh连接关闭后就会自动停止运行。
请问是否有方案在Linux上维持后台运行mcl或者mirai-console?