cloudreve后台运行
首页 > >    作者:lininn   2020年7月14日 16:11 星期二   热度:3514°   百度已收录  
时间:2020-7-14 16:11   热度:3514° 
# 创建配置文件  

vim /usr/lib/systemd/system/cloudreve.service 或者/etc/systemd/system/cloudreve.service


[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
Wants=network.target

[Service]
Type=simple
WorkingDirectory=/www/web
ExecStart=/www/web/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed

StandardOutput=null
StandardError=syslog

[Install]
WantedBy=multi-user.target




更新重启服务

# 更新配置
systemctl daemon-reload

# 启动服务
systemctl start cloudreve

# 设置开机启动
systemctl enable cloudreve

管理命令

# 启动服务
systemctl start cloudreve

# 停止服务
systemctl stop cloudreve

# 重启服务
systemctl restart cloudreve

# 查看状态
systemctl status cloudreve


二维码加载中...
本文作者:lininn      文章标题: cloudreve后台运行
本文地址:?post=463
版权声明:若无注明,本文皆为“覆手为雨”原创,转载请保留文章出处。
分享本文至:

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:覆手为雨    站长: lininn