linux学习-将seafile启动脚本设置为开机启动服务.docx
《linux学习-将seafile启动脚本设置为开机启动服务.docx》由会员分享,可在线阅读,更多相关《linux学习-将seafile启动脚本设置为开机启动服务.docx(3页珍藏版)》请在优知文库上搜索。
1、有时候,我们安装的IinUX软件和程序不是通过yum安装,而是通过编译或者其他方式安装。有时须要将程序设凭为服务,达到开机启动的目的。我在公有云的与服务器上搭建了SeafiIe网盘,当我至启云服务器的时候,seafiIe的程序不会自动启动,须要我在相关书目下执行脚本,才能启动。1.rootepythonseafie-server-6.2.5*tree-1.1-CheCkn,Jadnlnpy一reset-admin.Sh-runtime-seaf-fsck.sh-seaf-fuse.sh-seaf-setup-seafile-mysql.py-seup-seaf1le-mysql.sn-seup
2、-seaf11e.sn51CTo博客3directories,10files-upgrade将两个脚本运用软连接至gOot/书目下,便利执行seafS1e-server_6.2.5_x86-64.tdr.gz50409678982anaconda-ks.cfgdead.letterdnspython-rootpyautopyautoS_22:46xstart_5eaf11e-hnec1oudstorage/s23:15SrartqeahUb-hmecloud_storaqe/se23:02*-22:28the-hydra-windows1XttttttttTtttttttOoooooooooo
3、oooooo#OooooooooooooooooFPrrrrrrrrrrrrrrrrrrooxpythonoral25660rw-r-r-1rw.1rw1rwxrwxrwx1rwxr-xr-x2rwr-xr-x2rwx2rwxr-xr-x4rwxr-xr-x2rwxr-xr-x6rwr-xr-x6rw-r一一r一一1rwxr-xr-x5rwxrwxrwx1rwrwxrwx1rwxr-xr-x2rootrootrootrootrootrootrootrootrootrootrootrootrootrootrootrootroot1259413714504096409640964064096409
4、64096261321664096AprNOVJulJunMayAprMayApr拼ananDulJulJulAprApr122021142118142023271029202604:30201711:2122:4517:4922:1417:2713:0913:5413:4420182018现在采纳服务的方式,将这这两个脚本加入开机启动创建Systemd服务文件etcsystemdsystemseaVimetcsystemdsystemsea=内容如下=UnitDeSCriPtion=Seafile# addmysql.serviceorpostgresql.servicedependingo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- linux 学习 seafile 启动 脚本 设置 开机 服务
