linux的ftp操作

1、查看是否安装

  rpm -qa |grep vsftpd

  没有输出,表示没有安装

2、查看服务状态

  1)、service vsftpd status

    输出信息  

    vsftpd is stopped  表示关闭

    vsftpd (pid 5773) is running...表示开启

  

  2)、netstat -an | grep 21

    有下面这行表示启动

    tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN 

3、安装ftp,默认安装目录:/etc/vsftpd

  yum -y install vsftpd

4、开启和关闭服务

  启动:service vsftpd start 

  关闭:service vsftpd stop

  重启:service vsftpd restart

  

猜你喜欢

转载自www.cnblogs.com/whalesea/p/11984394.html