Linux通过FTP上传文件到服务器

1.如果没有安装ftp,可执行:

输入:yum -y install ftp,回车

等待安装完毕

2.连接服务器

输入:ftp 服务器IP,回车

根据提示输入用户名和密码

3.上传下载操作

1). 上传 put

格式:put local-file [remote-file]

将本地文件上传到服务器home目录下面/home,并改名为2.htm

ftp> put 1.htm /home/2.htm,回车

2).下载 get

格式:get [remote-file] [local-file]
将服务器文件/home/1.htm下载到本地
ftp> get /usr/your/1.htm 1.htm,回车

4.断开连接 bye,回车

猜你喜欢

转载自www.cnblogs.com/liuswi/p/10152108.html