服务器信息:CentOS 8,4 核,8G 内存,160 GB SSD
我在尝试维护进程,但是出现如下报错:
➜ ~ vim /usr/lib/systemd/system/cloudreve.service
➜ ~ /root/cloudreve/cloudreve
___ _ _
/ __\ | ___ _ _ __| |_ __ _____ _____
/ / | |/ _ \| | | |/ _ | '__/ _ \ \ / / _ \
/ /___| | (_) | |_| | (_| | | | __/\ V / __/
\____/|_|\___/ \__,_|\__,_|_| \___| \_/ \___|
V3.3.1 Commit #a1252c8 Pro=false
================================================
[Info] 2021-03-28 16:21:59 初始化数据库连接
[Info] 2021-03-28 16:21:59 数据库版本匹配,跳过数据库迁移
[Info] 2021-03-28 16:21:59 初始化任务队列,WorkerNum = 10
[Info] 2021-03-28 16:21:59 初始化定时任务...
[Info] 2021-03-28 16:21:59 当前运行模式:Master
[Info] 2021-03-28 16:21:59 开始监听 :5212
^C
➜ ~ systemctl daemon-reload
➜ ~ systemctl start cloudreve
➜ ~ systemctl status cloudreve
● cloudreve.service - Cloudreve
Loaded: loaded (/usr/lib/systemd/system/cloudreve.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-03-28 16:22:16 UTC; 6s ago
Docs: https://docs.cloudreve.org
Process: 1235788 ExecStart=/root/cloudreve/cloudreve (code=exited, status=203/EXEC)
Main PID: 1235788 (code=exited, status=203/EXEC)
/usr/lib/systemd/system/cloudreve.service
文件如下:
➜ ~ cat /usr/lib/systemd/system/cloudreve.service
#!/bin/sh
[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
After=mysqld.service
Wants=network.target
[Service]
WorkingDirectory=/root/cloudreve
ExecStart=/root/cloudreve/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
请问问题在哪?