用FTP修改网站服务器内容

2023-05-16

        用FTP协议可以登陆网站的服务器对网站内容进行维护,如果直接从网页登陆可以进行的操作太少,所以通常使用一些FTP客户端进行维护操作。

        常用的FTP客户端有很多,个人觉得FileZila比较容易,官方的使用方法非常容易懂FileZilaQuickGuide,文末是摘自官网的quick guide,非常简单无需翻译。

        在编辑HTML文件时,推荐一款实时可视化的编辑软件Dreamweaver,非常好用,如下图,左侧是代码,右侧可以显示网页布局。

       

附:Quick Guide

This guide gives you a short overview on how to use FileZilla client. By default you don't have to configure FileZilla, so you can start directly working with the program.


Connecting to an FTP server

Using the Quick Connect bar

To connect to an FTP server, enter the address of the server into the host field of the Quickconnect bar (e.g. example.com - see image below). If it is a special server type like an SFTP server, add the protocol in front of the address. In case of an SFTP server, start the address with 'sftp://' (e.g.sftp://example.com). Enter the port of the server into the port field if it isnot the default port (21 for FTP, 22 for SFTP). If a username / password is required, enter it in the corresponding fields, otherwise the defaultanonymous logon will be used. Click on Quickconnect or press Enter to connect to the server.

Enter-info.png

Please notice that the Quick Connect is for... quick connections - so there is no way to edit the quick connections list which stores the last 10 entries. To store FTP server names you should use the Site Manager, instead.

Quick Connect is good for testing the login info before making a site manager entry. Once you connect, you can choose File -> "Copy current connection to Site Manager..." to make a permanent entry. It is usually best to check your login info with Quick Connect before making a permanent entry.

Using Site Manager

You can use the FileZilla Site Manager to specify specific site parameters and connect to the targeted FTP site. TheSite Manager allows you to store entries and configure more parameters than the Quick Connect allows.

Special case: Servers in LAN

If the server you are connecting to is in your home LAN, then there is not an address (domain name) as you may know from the Internet. In LAN, you simply use the internal IP address of the server PC. In most cases the network name (computer name) will do, too. If the server is on the same PC as Filezilla, you can even use localhost or 127.0.0.1 as hostname.

NOTE: If you connect from the outside of your LAN this does not apply, you have to use the external (WAN) IP instead.

Navigating on the server

After a successful connection attempt, a list of files and directories appears on theright side of the main window. The name of the current remote directory is listed in the edit field on the top. Below that you will see the remote directory tree. Under the remote directory is a list of the contents of the current remote directory.

To change the current remote directory:

  • Type a directory name into the edit field and press enter, or
  • Click a directory in the directory tree, or
  • Double-click a directory in the list of the current directory contents

You will notice a directory called ".." listed in virtually all directories. Selecting this directory allows you to go up to the parent directory of the current directory.

Question marks ("?") appear on directories you haven't accessed yet, indicating that the FileZilla Client can't tell if there are subdirectories within those directories. If you access the directory the question mark will vanish.

Navigating-remote.png

Navigating on your machine

Navigating on your machine works almost like navigating on the server. The current local directory and the local directory tree are displayed on theleft side of the main window by default.

Navigating-local.png

Synchronized Browsing

If you have an identical directory structure on the local machine and the server, you can enable synchronized browsing. This means that any directory navigation on one machine is duplicated on the other.

To enable synchronized browsing, create an entry in the Site Manager, and on the Advanced tab, ensure that the Default local directory and the Default remote directory have the same structure. Then check "use synchronized browsing," save your settings, and connect.

Directory Comparison

To quickly see differences between files on the local machine and the server, choose View > Directory Comparison, and choose either "compare file size" or "compare modification time." (You also hide identical files by checking that option.) Then choose "Enable."

You will now see color-coded differences between copies of the same file on the different machines. See their meaningshere.

Transferring files

You can upload or download a file by double-clicking on it. It will be added to the transfer queue and the transfer starts automatically. To transfer directories and/or multiple files, select them and right-click the selection. Then you can click on Upload/Download in the popup menu.

Transfer-rightclick.png


You can also drag the files from one side and drop them on the other side. To add files to the queue so that they will be transferred later, select them and click Add to Queue from the popup menu. You may also drag the files directly into the queue. Click on the Process-queue-button.png button on the toolbar to start the transfer.

Or, you can click on a file, then drag the file (a box is added to the arrow cursor) to the directory where you want to move it. The directory will be highlighted when you are over it. Let go of the mouse button and the file will be moved to the directory.

Transfer-drag.png

Detailed Information Pages

Detailed information on other aspects of the FileZilla client can be found on the following pages:

  • Filename Filters
  • Other features

File Transfer Notes

FileZilla uses multiple FTP sessions. One session gets used purely to browse the server. The other sessions get used to do the file transfers. That way, you can always browse the server even during transfers.

For example, here is a simple car analogy: You order a pizza using your telephone (aka the browsing connection), then you hang up the telephone. Then the delivery man drives the pizza in his car to your location (the transfer connection). While the pizza is transferring, you can phone somebody else, like for example your garage because your own car is broken ;)

Reducing simultaneous connections for incorrectly configured servers

If you get a 421 Too many connections from this IP (<number>) error, the FTP server is restricting your number of connections. There are even servers restricting it to one connection at a time.

The preferred solution would be to contact the server administrator and encourage him/her to configure the server correctly (FTP uses more than one connection by design!). But if you need access immediately, there is a workaround:

1. Open the Site Manager (File - Site Manager... or the first toolbar button)

2. Create an entry for that server, enter all details you know, the more precise, the better

3. Open the 'Transfer Settings' tab

4. Tick the 'Limit number of simultaneous connections' checkbox

5. Enter the desired limit into the 'Maximum number of connections' field


Now, if you connect using the Site Manager entry, connections will be limited.

Note: If you limit connections to 1 only, there is a major drawback: You cannot browse the server anymore while a transfer is in progress!

Troubleshooting

Re-registering the shell extension (Windows only)

Especially on Vista or Windows 7 it can happen that Drag&Drop fails and you get an error message stating the shell extension doesn't work. In this case you may need to re-register it. Here's how:


1. Open a command prompt as administrator. This is important!

Start Menu - All Programs - Accessories: Right Click 'Command Prompt', select 'Run as administrator'


2. Navigate to the Filezilla program directory.

Example (32bit): cd "\Program Files\Filezilla FTP Client"
Example (64bit): cd "\Program Files (x86)\FileZilla FTP Client"

3. Re-register the shell extension.

Type 'regsvr32 fzshellext.dll' (without quotes of course)


4. If you have 64bit OS, you need to perform an additional step.

Type 'regsvr32 fzshellext_64.dll' (no quotes as well)


If you get the reply 'DllRegisterServer in ... succeeded.', you've done it (though you probably still need to reboot your computer).

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

用FTP修改网站服务器内容 的相关文章

  • Java:从 FTP 服务器访问文件

    我有一个 FTP 服务器 里面有一堆文件夹和文件 我的程序需要访问该服务器 读取所有文件并显示它们的数据 出于开发目的 我一直在使用硬盘驱动器上 src 文件夹中的文件 但现在服务器已启动并运行 我需要将软件连接到它 基本上我想要做的是获取
  • 从 C# 中的服务器下载后,Zip 文件被损坏

    request MakeConnection uri WebRequestMethods Ftp DownloadFile username password response FtpWebResponse request GetRespo
  • 如何通过FTP将多个多级(不同层次)文件从本地版本覆盖到在线版本

    我只是在本地更改了几个不同目录中的许多文件 然后将更改推送到 Subversion 但这不会更改实时版本 只会更改存储库 现在我必须通过 FTP 更新这些文件 但它们都是不同的层次结构级别 我怎么做 我知道的唯一方法是采用我的整个本地版本并
  • 如何使用 FTP 在目录之间移动文件?

    我有一个程序需要将文件从 FTP 服务器上的一个目录移动到另一个目录 例如 该文件位于 ftp 1 1 1 1 MAIN Dir1 我需要将文件移动到 ftp 1 1 1 1 MAIN Dir2 我发现了几篇推荐使用 重命名 命令的文章 因
  • 没有人拥有者(99 99)在FTP中由php功能引起?

    我有一个脚本 Joomla 可以在服务器上创建文件和目录 问题是它在所有者 99 99 无人 下创建它们 并且在没有服务器管理员帮助的情况下我无法通过 FTP 删除或修改它们 我认为那是move uploaded filephp 的函数 W
  • FTP 二进制 x ASCII 自动选择

    我编写了一个 FTP 插件 使用 python 的 ftplib 我想知道确定给定文件是否应该使用二进制或 ASCII 传输方法的最佳方法是什么 换句话说 自动 传输模式 当我收到有关双线的问题报告时 我开始研究这个问题 并且谷歌搜索发现二
  • C# FileSystemWatcher 和 FTP

    我通过文件系统观察器监视在 ftp 上删除的文件 然后移动到另一个目录 现在我触发文件系统观察程序的创建事件的复制 但显然在 ftp 的情况下 创建只是一个存根文件 数据会进入并在上传时填充文件直至完成 任何人对此都有一个优雅的解决方案 或
  • 如何将 FTP 目录的内容复制到共享网络路径?

    我需要将 FTP 位置上的目录的全部内容复制到共享网络位置 FTP 任务要求您指定确切的文件名 不是目录 而文件系统任务不允许访问 FTP 位置 EDIT 我最终编写了一个脚本任务 没有什么比恢复一个非常旧的线程更好的了 但是有一个解决方案
  • PHP 通过 FTP 下载整个文件夹(递归)

    我目前有一个非常大的网站 大小约为 5GB 包含 60 000 个文件 当前主机并没有做太多事情来帮助我将网站转移到新主机 我的想法是在新主机上制作一个简单的脚本 通过 FTP 传输到旧主机并下载整个 public html 文件夹 递归地
  • 仅在 Azure Web 应用程序中从 FTP 下载文件失败

    我有一个非常基本的代码 可以从 FTP 服务器下载文本文件列表 foreach var fileUri in files try var ftpRequest FtpWebRequest FtpWebRequest Create fileU
  • 如何递归列出远程 FTP 的目录内容

    从远程 UNIX FTP 服务器下载文件后 您想要验证是否已正确下载所有文件 您至少会在 Windows 命令提示符中获得类似于 dir s 命令的信息 FTP 客户端在 Windows 上运行 遗憾的是这是为 Unix Linux 用户编
  • 是否可以使用流上下文在 PHP 下使用 FTPS?

    我了解到使用ftpsPHP for Windows 下的 ftp ssl connect 很困难 您被要求进入构建自己的二进制文件以包括 Open SSL 的漫长旅程 我找到了以下建议phpseclib http phpseclib sou
  • 使用 libcurl 检查 SFTP 站点上是否存在文件

    我使用 C 和 libcurl 进行 SFTP FTPS 传输 在上传文件之前 我需要检查文件是否存在而不实际下载它 如果该文件不存在 我会遇到以下问题 set up curlhandle for the public private ke
  • 在android中跟踪FTP上传数据?

    我有一个运行 Android 的 FTP 系统 但我希望能够在上传时跟踪字节 这样我就可以在上传过程中更新进度条 安卓可以实现这个功能吗 现在 我正在使用org apache common net ftp我正在使用的代码如下 另外 我在 A
  • 使用 WebClient 在 PowerShell 脚本中将 FTP 从二进制更改为 ascii

    简单的 PowerShell 脚本 它可以毫无问题地下载文件 二进制 我需要它的ascii 格式 File c temp ftpfile txt ftp ftp myusername email protected cdn cgi l em
  • 异步回调到BackgroundWorker

    我想使用 NET FTP 库 http netftp codeplex com http netftp codeplex com 该库提供 BeginOpenRead string AsyncCallback object 使用异步编程模型
  • SSH 主机密钥指纹与模式 C# WinSCP 不匹配

    我尝试通过 WinSCP 使用 C 连接到 FTPS 服务器 但收到此错误 SSH 主机密钥指纹 与模式不匹配 经过大量研究 我相信这与密钥的长度有关 当使用 服务器和协议信息 下的界面进行连接时 我从 WinSCP 获得的密钥是xx xx
  • 在 PHP cURL 中设置 FTP 模式

    我有一些代码使用 PHP cURL 库通过 FTP 上传一些文件 我被告知将 FTP 模式从被动切换为主动 但我找不到如何做到这一点 相关文档中似乎没有选项 我实际上不确定它当前使用的是什么模式 或者我如何查看它 这个问题的答案是使用 cu
  • Notepad++保存时可以自动上传本地文件到服务器吗?

    我使用 Notepad 及其 NppFTP 插件 我需要保持本地副本最新 因此我编辑本地文件然后将它们上传到服务器 我想知道是否有一种方法可以让 Notepad 在保存文件后立即自动将文件上传到服务器 而无需按另一个按钮 我愿意使用其他 F
  • 获取 FTP 服务器上的文件大小并将其放在标签上

    我正在尝试获取托管在FTP服务器并将其放入Label而 BackgroundWorker 在后台工作 我在用着 Try 来获取该值 但是该值在第一次尝试时被捕获 下载后 如果我按尝试再次获取它 那么它就可以工作 Note 第一次尝试时进度条

随机推荐

  • Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'inform

    Expression 1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 39 information schema PROFIL
  • rabbitmq的消息持久化处理开启,再关闭后,消费者启动报错

    今天在测试rabbitmq的消息持久化处理时 xff0c 一切顺利 xff0c 可是再想测试ACK消息确认机制时 xff0c 消费者却无法启动了 xff0c 报如下错误 xff1a org springframework amqp rabb
  • VMware下Linux无法播放声音的解决方案

    问题背景 宿主机环境 xff1a Windows 10 VMware Workstation版本 xff1a VMware Workstation 12 VMware Workstation 15 客户机环境 xff1a CentOS 7
  • pip更新及Requirement already up-to-date解决方法

    pip更新及Requirement already up to date解决方法 文 xff1a 铁乐与猫 2018 9 11 更新命令 将pip更新到最新版本 python m pip install upgrade pip Anacon
  • 如何高效的使用适配器Adapter

    如何高效的使用适配器Adapter 当我们在使用ListView GridView时 xff0c 都会给其设置相应的适配器 xff0c 用来给其设置数据 xff0c 会去继承BaseAdapter xff0c 重写getCount getI
  • kotlin 没有@Parcelable注解

    在使用kotlin的时候 xff0c 有的时候需要对实体类进行序列化的操作 序列化的方式就两种 xff0c 一种是Serializable xff0c 一种是Parcelable 在android中 xff0c 基本都是使用的Parcela
  • Android studio3.0+ 编译Lame库(CMake方式)

    最近在学习音视频方面的知识 xff0c 购买了音视频开发进阶指南 xff0c 在交叉编译LAME库的时候 xff0c 书中使用的还是旧版本的编译方式 xff0c 现在android studio在2 2以后就开始使用CMake的编译方式了
  • 打印正整数n拆分的所有情况

    题目 xff1a 把一个正整数n拆分成若干个正整数的相加 xff0c 列出所有组合 例如 xff1a 4 61 4 4 61 1 43 3 61 2 43 2 4 61 1 43 1 43 2 4 61 1 43 1 43 1 43 1 动
  • redis实现积分排行榜

    在项目开发中常常遇到一些积分排行的问题 一个典型的积分行榜包括以下常见功能 xff1a 能够记录每个用户的分数 xff1b 能够对用户的分数进行更新 xff1b 能够查询每个用户的分数和名次 xff1b 能够按名次查询排名前N名的用户 xf
  • 如何减小Ubuntu 16.04系统下VMware虚拟机硬盘空间占用过大问题

    VMware虚拟机占用硬盘空间只增大不减少 xff0c 即使你删除文件 xff0c 占用的硬盘空间也不释放 用了一段时间后空间不够了 解决办法 方法一 在vmware的安装目录下 xff0c 有一个vmware vdiskmanager 关
  • 使用Redis实现积分排行榜,并支持同积分按时间排序

    排行榜这个功能很常见 xff0c 多用于激励用户活跃和拉新 xff0c 比如CSDN平台实现的周榜 xff0c 按照每周文章总阅读量进行排名 xff0c 用排名和奖品激励用户持续在平台上输出高质量内容 最近笔者也做了一个积分排行榜的功能 x
  • 神奇的排序

    代码 xff1a 此方法只能对互不相同的正整数排序 xff0c 也成为神奇的排序 xff0c 从编程珠玑中看到的 public class magicSort public static void main String args TODO
  • 学会自己测天气之 起卦篇

    找三个一元的硬币 xff0c 找一个安静的没人的地方 xff0c 把钱合在掌内反复摇动 xff0c 心中反复问神灵你想问的事情 然后抛出硬币 xff0c 记录反面 xff08 有花的那面 xff09 的数量 xff08 总共有四种情况 xf
  • Java 使用 jdbc 连接 mysql

    首先要下载Connector J地址 xff1a http www mysql com downloads connector j 这是MySQL官方提供的连接方式 xff1a 解压后得到jar库文件 xff0c 需要在工程中导入该库文件
  • 找零钱的方案数以及所需最少张数的钞票的方案

    问题描述 xff1a 我们知道人民币有1元 xff0c 2元 xff0c 5元 xff0c 10元 xff0c 20元 xff0c 50元 xff0c 100元这几种表示 xff0c 现在给你一个整数 n 让你找零 xff0c 求出有多少种
  • 2017京东校招编程题 烽火台

    描述 xff1a n 个 烽火台围成一个圈 xff0c 任意两个烽火台只要中间的烽火台比他们两个都低就能看见彼此 xff0c 当然相邻的肯定能看见对面 xff0c 求能看见彼此的对数 输入 5 烽火台的个数 3 2 5 4 1 烽火台的高地
  • 利用Oh-My-Zsh打造你的超级终端

    什么是Zsh Zsh是一款强大的虚拟终端 xff0c 既是一个系统的虚拟终端 xff0c 也可以作为一个脚本语言的交互解析器 Zsh的一些特性 兼容bash xff0c 原来使用bash的兄弟切换过来毫无压力 强大的历史纪录功能 xff0c
  • netty源码分析(二十五)Netty自定义协议与TCP粘包拆包问题解决之道

    上一节说了TCP的粘包和拆包 xff0c 用一个实例的方式做了说明 xff0c 那么在netty里面是怎么解决粘包和拆包问题呢 xff0c 这就需要编解码器 xff0c 我们写一个简单的自动以协议的demo xff0c 说明一下编解码器在解
  • Netty UDP通信Demo

    1 服务端代码 package udp import io netty bootstrap Bootstrap import io netty buffer ByteBuf import io netty buffer Unpooled i
  • 用FTP修改网站服务器内容

    用FTP协议可以登陆网站的服务器对网站内容进行维护 xff0c 如果直接从网页登陆可以进行的操作太少 xff0c 所以通常使用一些FTP客户端进行维护操作 常用的FTP客户端有很多 xff0c 个人觉得FileZila比较容易 xff0c