树莓派3B seafile 企业云盘无法实现自启动,求助!
树莓派3B安装seafile 开源的企业云盘手动启动成功
root@raspberrypi:~# cd /opt
root@raspberrypi:/opt# dir
ccnetpids seafile-server_6.0.5_stable_pi.tar.gzseahub.db
conf seafile-data seafile-server-latest vc
logs seafile-server-6.0.5seahub-data
root@raspberrypi:/opt# cd seafile-server-6.0.5/
root@raspberrypi:/opt/seafile-server-6.0.5# dir
check_init_admin.pyseaf-gc.sh seahub.sh
reset-admin.sh seafile setup-seafile-mysql.py
runtime seafile-server-6.0.5setup-seafile-mysql.sh
seaf-fsck.sh seafile.sh setup-seafile.sh
seaf-fuse.sh seahub upgrade
root@raspberrypi:/opt/seafile-server-6.0.5# clear
root@raspberrypi:/opt/seafile-server-6.0.5# dir
check_init_admin.pyseaf-gc.sh seahub.sh
reset-admin.sh seafile setup-seafile-mysql.py
runtime seafile-server-6.0.5setup-seafile-mysql.sh
seaf-fsck.sh seafile.sh setup-seafile.sh
seaf-fuse.sh seahub upgrade
root@raspberrypi:/opt/seafile-server-6.0.5# ./seafile.sh start
../common/session.c(132): using config file /opt/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server started
Done.
root@raspberrypi:/opt/seafile-server-6.0.5# ./seahub.sh start
LC_ALL is not set in ENV, set to en_US.UTF-8
./seahub.sh: line 207: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Starting seahub at port 8000 ...
Seahub is started
Done.
编辑 vim /etc/systemd/system/seafile.service
Description=Seafile# add mysql.service or postgresql.service depending on your database to the line belowAfter=network.targetType=oneshotExecStart=/opt/seafile-server-6.0.5/seafile-server-latest/seafile.sh startExecStop=/opt/seafile-server-6.0.5/seafile-server-latest/seafile.sh stopRemainAfterExit=yesUser=rootGroup=seafileWantedBy=multi-user.target
编辑
vim /etc/systemd/system/seahub.service
Description=Seafile hub
After=network.target seafile.service
# change start to start-fastcgi if you want to run fastcgi
ExecStart=/opt/seafile-server-6.0.5/seafile-server-latest/seahub.sh start
ExecStop=/opt/seaflie-server-6.0.5/seafile-server-latest/seahub.sh stop
User=root
Group=seafile
Type=oneshot
RemainAfterExit=yes
WantedBy=multi-user.target
设置服务开机自启动sudo systemctl enable seafile.servicesudo systemctl enable seahub.service不知道设置那里有错误,那位大神给指导指导
页:
[1]