其他分享
首页 > 其他分享> > 升级优化 SeaTable 私有云表格

升级优化 SeaTable 私有云表格

作者:互联网

1 优化 SeaTable容器 开机自启动 :
docker update --restart unless-stopped $(docker ps -q)
注释:设置 SeaTable容器 开机自启动

2 Docker 容器内服务开机自启动 添加命令 :
vi /etc/crontab
注释:设置计划任务

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
@reboot root docker exec -d seatable /shared/seatable/scripts/seatable.sh start
注释: 在底部添加 SeaTable容器内服务自启动命令 @reboot root 服务路径xxx

:wq
注释:保存退出

reboot
注释:重启服务器进行测试

标签:seatable,表格,私有,reboot,注释,SeaTable,自启动,root
来源: https://www.cnblogs.com/tafeng/p/16271925.html