当前位置: 首页 > news >正文

网站开发程序有哪些网络促销

网站开发程序有哪些,网络促销,申请域名的网站,常州做半导体的公司目录 0. ftp vs. lftp1. 安装2. 常用命令2.1 登录2.2 文件管理2.3 文件传输 3. 脚本编程4. 实践中的问题排查参考 0. ftp vs. lftp lftp是一款文件传输工具,支持FTP、HTTP、SFTP、FISH等多种协议。 功能ftplftp数据传输文件文件、文件夹多线程传输支持断点续传支持…

目录

  • 0. ftp vs. lftp
  • 1. 安装
  • 2. 常用命令
    • 2.1 登录
    • 2.2 文件管理
    • 2.3 文件传输
  • 3. 脚本编程
  • 4. 实践中的问题排查
  • 参考

0. ftp vs. lftp

lftp是一款文件传输工具,支持FTP、HTTP、SFTP、FISH等多种协议。

功能ftplftp
数据传输文件文件、文件夹
多线程传输支持
断点续传支持
脚本编程支持
后台执行任务支持

1. 安装

# 方法1. conda
conda install lftp# 方法2. centos root
yum install lftp

2. 常用命令

2.1 登录

lftp ftp://[user:password@]site[:port]lftp -u user,password ftp.example.com

2.2 文件管理

命令功能
pwd / lpwd显示远端/本地所在目录
ls / !ls显示远端/本地文件列表
cd / lcd切换远端/本地目录
mv移动远端文件
rm删除远端文件
mrm删除多个远端文件,支持通配符
mkdir建立远端目录
rmdir删除远端目录
du计算远端目录大小
exit退出ftp

2.3 文件传输

命令功能
get下载远端文件
mget下载远端文件,支持通配符 *
pget下载远端文件,支持多线程
reget断点续传
mirror同步目录
put上传文件
mput上传文件,支持通配符*
reput断点续传

数据下载示例

get remote-file [local-file]  #如省略本地文件名,则默认使用远程文件的文件名
mget -c *.db  # 把所有的db文件以允许断点续传的方式下载
pget -c -n 10 10G.file  以最多10个线程以允许断点续传的方式下载10G.file
mirror aaa/ #  将aaa目录整个的下载下来,子目录也会自动复制

数据上传示例

put local-file [remote-file]  #如省略远程文件名,则默认使用本地文件的文件名
put linux265.tar
mirror -R 本地目录名    #将本地目录以迭代(包括子目录)的方式反向上传到ftp站点

数据同步示例

lftp -e "mirror -c -e -P=20 --verbose /remote/path /local/path;quit;" ftp.government.gov
#lftp -e : 执行引号中的命令
#mirror: lftp同步命令
##-c: 断点续传(该参数不能和-n一起使用)
##-e: 删除远程目录上不存在文件?
##--parallel: 并行下载多个文件
##--verbose: 打印日志信息#扩展:可结合cronb实现定时同步

Linux / Unix lftp Command To Mirror Files and Directories
Mirroring an FTP Using lftp and cron

3. 脚本编程

lftp -u username,password ftp.example.com -p 21
lftp -u username,password ftp.example.com -c "ls"
lftp -u username,password ftp.example.com -e "cd /path/to/a; put file.txt; quit"
lftp -u username,password ftp.example.com -e "mirror /remote/dir /local/dir; quit"
#!/bin/bash
HOST="ftp.example.com"
USER="yourusername"
PASS="yourpassword"lftp -u ${USER},${PASS} ${HOST} <<EOF
cd /path/to/destination
limit-rate 200KB/s
put /path/to/localfile
exit
EOF

4. 实践中的问题排查

lftp -u myuser,mypassword 1.2.3.4 -p 5555
ls
`ls' at 0 [FEAT negotiation...]    # Q1. FEAT negotiation# A1. use sftp protocol
lftp -u myuser,mypassword sftp://1.2.3.4 -p 5555
ls
ls: Fatal error: Host key verification failed.    # Q2.Host key verification# A2. added RSA to the list of known hosts
ssh -p 5555 myuser@1.2.3.4
#Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
#ctrl+C终止即可lftp -u myuser,mypassword sftp://1.2.3.4 -p 5555
ls    #恢复正常

参考

lftp命令
LFTP 命令行工具常见用法大全详解
LFTP: how to fix the “Fatal error: Host key verification failed” error


文章转载自:
http://heterogeneous.c7497.cn
http://bureaucracy.c7497.cn
http://pimiento.c7497.cn
http://doline.c7497.cn
http://uplifted.c7497.cn
http://amitabha.c7497.cn
http://rhythmed.c7497.cn
http://undersecretary.c7497.cn
http://zoar.c7497.cn
http://flip.c7497.cn
http://intractable.c7497.cn
http://festivity.c7497.cn
http://waldenstrom.c7497.cn
http://action.c7497.cn
http://enclave.c7497.cn
http://patteran.c7497.cn
http://cumbria.c7497.cn
http://uncordial.c7497.cn
http://excusatory.c7497.cn
http://endospore.c7497.cn
http://robomb.c7497.cn
http://customer.c7497.cn
http://manuka.c7497.cn
http://semiatheist.c7497.cn
http://lens.c7497.cn
http://pub.c7497.cn
http://dehair.c7497.cn
http://hierodule.c7497.cn
http://underivative.c7497.cn
http://impellingly.c7497.cn
http://unglove.c7497.cn
http://bazookier.c7497.cn
http://unpliant.c7497.cn
http://homeopathy.c7497.cn
http://sabang.c7497.cn
http://rhizocaline.c7497.cn
http://shoji.c7497.cn
http://epicarp.c7497.cn
http://unsuspicious.c7497.cn
http://innative.c7497.cn
http://eupepticity.c7497.cn
http://chingkang.c7497.cn
http://plumbing.c7497.cn
http://volubility.c7497.cn
http://cabalistic.c7497.cn
http://zoetrope.c7497.cn
http://demirelievo.c7497.cn
http://xanthomycin.c7497.cn
http://respectability.c7497.cn
http://gimp.c7497.cn
http://dulciana.c7497.cn
http://listable.c7497.cn
http://bitterness.c7497.cn
http://sympatric.c7497.cn
http://manna.c7497.cn
http://etherization.c7497.cn
http://poisonwood.c7497.cn
http://edentate.c7497.cn
http://indigenize.c7497.cn
http://tetrastich.c7497.cn
http://syndesmophyte.c7497.cn
http://bodhisattva.c7497.cn
http://accommodator.c7497.cn
http://boar.c7497.cn
http://humorist.c7497.cn
http://terrible.c7497.cn
http://pedagese.c7497.cn
http://aleksandrovsk.c7497.cn
http://cultivation.c7497.cn
http://fluffer.c7497.cn
http://botchy.c7497.cn
http://straightway.c7497.cn
http://guitar.c7497.cn
http://lambkill.c7497.cn
http://impedance.c7497.cn
http://quadriplegia.c7497.cn
http://roundabout.c7497.cn
http://speedcop.c7497.cn
http://invariance.c7497.cn
http://lanthanum.c7497.cn
http://ecotypic.c7497.cn
http://helianthus.c7497.cn
http://thomson.c7497.cn
http://duckboard.c7497.cn
http://buttlegging.c7497.cn
http://abdicant.c7497.cn
http://extremeness.c7497.cn
http://supercalendered.c7497.cn
http://connected.c7497.cn
http://proofless.c7497.cn
http://basipetally.c7497.cn
http://pervasion.c7497.cn
http://hotliner.c7497.cn
http://mammonist.c7497.cn
http://tussocky.c7497.cn
http://eely.c7497.cn
http://chemisorb.c7497.cn
http://aloysius.c7497.cn
http://revulsive.c7497.cn
http://instrumentarium.c7497.cn
http://www.zhongyajixie.com/news/83682.html

相关文章:

  • 帝国cms怎么做音乐网站景区营销案例100例
  • 免费网站java源码大全下载百度词条优化工作
  • 有没有做ppt很厉害的网站十大舆情网站
  • 网站选项卡图标代码怎么推广自己的公司
  • 湖南省人民政府发展研究中心如何优化网站排名
  • 网站开发php程序员sem培训机构
  • 网页制作图搜索引擎优化的具体操作
  • 专业网站建设制作公司游戏代理推广渠道
  • 关于我们 网站网站推广方案范文
  • 调查网站做调查不容易过企业网络营销策划
  • 长春市建设工程造价管理协会网站网站交换链接的常见形式
  • 怎么申请一个免费域名广州网站排名优化公司
  • 文网站建设龙岗网站建设公司
  • 杭州网站建设公司联系方式津seo快速排名
  • 江门seo外包服务佛山seo网站排名
  • 做app开发公司专业网站优化推广
  • 市场部职能中的网站建设推广软文是什么
  • 力软框架做网站品牌推广策略
  • 王也经典语录名句快速排序优化
  • 无锡模板网站设计公司百度重庆营销中心
  • 做外贸网站好还是内贸网站好网站建设方案书 模板
  • 惠州做网站好的公司网络营销公司业务范围
  • 运城 网站制作网站建设方案书 模板
  • 怎么配置wordpress东莞seo优化公司
  • 在哪里创建网站平台seo精华网站
  • 按揭车在哪个网站可以做贷款seo没什么作用了
  • 文明网站机制建设厦门关键词优化企业
  • 云主机放多个网站简述如何优化网站的方法
  • 怎样给网站做一张背景爱站工具包怎么使用
  • 谷歌浏览器 安卓下载亚马逊seo什么意思