您的位置:首页 > 运维架构 > Linux

centos6.4安装ftp服务軟件vsftpd

2015-11-24 23:22 801 查看
centos6.4安装ftp服务軟件vsftpd

[root@hsgpc 桌面]# rpm-qa|grep vsftpd

bash: rpm-qa: command not found

[root@hsgpc 桌面]# yum -y install vsftpd*

已加载插件:fastestmirror, refresh-packagekit, security

设置安装进程

Loading mirror speeds from cached hostfile

* base: mirror.bit.edu.cn

* epel: mirror01.idc.hinet.net

* epel-testing: mirror01.idc.hinet.net

* extras: mirrors.aliyun.com

* nux-dextop: li.nux.ro

* rpmfusion-free-updates: mirror.bjtu.edu.cn

* rpmfusion-nonfree-updates: mirror.bjtu.edu.cn

* updates: mirror.bit.edu.cn

解决依赖关系

--> 执行事务检查

---> Package vsftpd.x86_64 0:2.2.2-14.el6 will be 安装

--> 完成依赖关系计算

依赖关系解决

================================================================================

软件包 架构 版本 仓库 大小

================================================================================

正在安装:

vsftpd x86_64 2.2.2-14.el6 base 152 k

事务概要

================================================================================

Install 1 Package(s)

总下载量:152 k

Installed size: 332 k

下载软件包:

vsftpd-2.2.2-14.el6.x86_64.rpm | 152 kB 00:00

运行 rpm_check_debug

执行事务测试

事务测试成功

执行事务

正在安装 : vsftpd-2.2.2-14.el6.x86_64 1/1

Verifying : vsftpd-2.2.2-14.el6.x86_64 1/1

已安装:

vsftpd.x86_64 0:2.2.2-14.el6

完毕!

[root@hsgpc 桌面]# service vsftpd start

为 vsftpd 启动 vsftpd: [确定]

[root@hsgpc 桌面]# service vsftpd stop

关闭 vsftpd: [确定]

[root@hsgpc 桌面]# chkconfig vsftpd on

[root@hsgpc 桌面]# su hsg

[hsg@hsgpc 桌面]$ service vsftpd start

为 vsftpd 启动 vsftpd:500 OOPS: cannot read config file: /etc/vsftpd/vsftpd.conf

[失败]

[hsg@hsgpc 桌面]$ su root

密码:

[root@hsgpc 桌面]# servicevsftpd start

bash: servicevsftpd: command not found

[root@hsgpc 桌面]# service vsftpd start

为 vsftpd 启动 vsftpd: [确定]

[root@hsgpc 桌面]# ^C

[root@hsgpc 桌面]# telnet 127.0.0.1 21

bash: telnet: command not found

[root@hsgpc 桌面]# yum install telnet

已加载插件:fastestmirror, refresh-packagekit, security

设置安装进程

Loading mirror speeds from cached hostfile

* base: mirror.bit.edu.cn

* epel: mirrors.opencas.cn

* epel-testing: mirrors.opencas.cn

* extras: mirrors.aliyun.com

* nux-dextop: li.nux.ro

* rpmfusion-free-updates: mirror.bjtu.edu.cn

* rpmfusion-nonfree-updates: mirror.bjtu.edu.cn

* updates: mirror.bit.edu.cn

解决依赖关系

--> 执行事务检查

---> Package telnet.x86_64 1:0.17-48.el6 will be 安装

--> 完成依赖关系计算

依赖关系解决

================================================================================

软件包 架构 版本 仓库 大小

================================================================================

正在安装:

telnet x86_64 1:0.17-48.el6 base 58 k

事务概要

================================================================================

Install 1 Package(s)

总下载量:58 k

Installed size: 109 k

确定吗?[y/N]:y

下载软件包:

telnet-0.17-48.el6.x86_64.rpm | 58 kB 00:00

运行 rpm_check_debug

执行事务测试

事务测试成功

执行事务

正在安装 : 1:telnet-0.17-48.el6.x86_64 1/1

Verifying : 1:telnet-0.17-48.el6.x86_64 1/1

已安装:

telnet.x86_64 1:0.17-48.el6

完毕!

[root@hsgpc 桌面]# telnet 127.0.0.1 21

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

220 (vsFTPd 2.2.2)

^C^]

telnet> q

Connection closed.

[root@hsgpc vsftpd]# rpm -qa | grep vsftpd

vsftpd-2.2.2-14.el6.x86_64

[root@hsgpc vsftpd]#

在IE中input url :ftp://127.0.0.1:21 or ftp://ip:21 如:ftp://192.168.0.102/

pub dir

dir at /var/ftp/pub save dir location

config file: /etc/vsftpd/vsftpd.conf

[hsg@hsgpc pub]$ pwd

/var/ftp/pub

[hsg@hsgpc pub]$ ls -l

总用量 0

[hsg@hsgpc pub]$ mkdir tools

mkdir: 无法创建目录"tools": 权限不够

[hsg@hsgpc pub]$ su root

密码:

[root@hsgpc pub]# mkdir tools

[root@hsgpc pub]# ls

tools

[root@hsgpc pub]# touch 1.txt //create null file

[root@hsgpc pub]# gedit 1.txt //pop window edit file 1.txt

[root@hsgpc pub]# vi 1.txt

[root@hsgpc pub]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: