---
title: "centos 6.4 minimal FTP安装配置"
author: "5xnl"
date: "2013-08-16T18:48:03Z"
tags: []
categories: ["操作系统"]
slug: "centos-6-4-minimal-ftp"
draft: false
lastmod: "2013-08-16T19:25:58Z"
id: 1926277
url: "https://5xnl.iteye.com/blog/1926277"
---

**
1.安装FTP服务器
**

```shell

yum install vsftpd

```

**
2.开启ftp服务
**

```shell

chkconfig vsftpd on

```

**
3.开启ftp服务器
**

```shell

 service vsftpd start

```

**
4.打开ftp端口,也可以不开21端口，使用sftp协议
**

```shell

vi /etc/sysconfig/iptables

#在REJECT 行前添加如下内容
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEP

#重启iptables
service iptables restart

```