从Release页面下载安装
要运行plik,它非常简单:$wgethttps://github.com/root-gg/plik/releases/download/1.3.1/plik-1.3.1-linux-amd64.tar.gz$tarxzvfplik-1.3.1-linux-64bits.tar.gz$cdplik-1.3.1/server$./plikd现在拥有一个在 https://127.0.0.1:8080上运行的功能齐全的Plik实例。可以编辑server/plikd.cfg以根据需要调整配置(端口、ssl、ttl、后端参数等)从源代码编译
要从源代码编译plik,需要在系统上安装golang和npm。首先,通过go获取项目和库:$gogetgithub.com/root-gg/plik/server$cd$GOPATH/src/github.com/root-gg/plik/构建并运行它:$make$cdserver&&./plikd客户端Plik附带了一个强大的golang多平台cli客户端(可在Web界面中下载):Usage:plik[options][FILE]...Options:-h--helpShowthishelp-d--debugEnabledebugmode-q--quietEnablequietmode-o,--oneshotEnableOneShot(Eachfilewillbedeletedonfirstdownload)-r,--removableEnableRemovableupload(Eachfilecanbedeletedbyanyoneatanymoment)-S,--streamEnableStreaming(Itwillblockuntilremoteuserstartsdownloading)-t,--ttlTTLTimebeforeexpiration(Uploadwillberemovedinm|h|d)-n,--nameNAMESetfilenamewhenpipingfromSTDIN--serverSERVEROverridesplikurl--tokenTOKENSpecifyanuploadtoken--commentsCOMMENTSetcommentsoftheupload(MarkDowncompatible)-pProtecttheuploadwithloginandpassword--passwordPASSWDProtecttheuploadwithlogin:password(ifomitteddefaultloginis"plik")-aArchiveuploadusingdefaultarchiveparams(see~/.plikrc)--archiveMODEArchiveuploadusingspecifiedarchivebackend:tar|zip--compressMODE[tar]Compressioncodec:gzip|bzip2|xz|lzip|lzma|lzop|compress|no--archive-optionsOPTIONS[tar|zip]Additionalcommandlineoptions-sEncryptuploadusnigdefaultencryptparams(see~/.plikrc)--not-secureDonotencryptuploadregardlessof~/.plikrcconfigurations--secureMODEArchiveuploadusingspecifiedarchivebackend:openssl|pgp--cipherCIPHER[openssl]Opensslciphertouse(seeopensslhelp)--passphrasePASSPHRASE[openssl]Passphraseor'-'tobepromptedforapassphrase--recipientRECIPIENT[pgp]Setrecipientforpgpbackend(example:--recipientBob)--secure-optionsOPTIONS[openssl|pgp]Additionalcommandlineoptions--updateUpdateclient-v--versionShowclientversion
评论