zoukankan      html  css  js  c++  java
  • 使用busybox配置ftp server

    使用busybox配置ftp server:

    1.在编译busybox时加入tcpsvd和ftpd

    2.tcpsvd作用:

    Create TCP socket, bind to IP:PORT and listen                                   
    for incoming connection. Run PROG for each connection.

    3.ftpd作用:

    ftpd should be used as an inetd service.                                        
    ftpd's line for inetd.conf:                                                     
            21 stream tcp nowait root ftpd ftpd /files/to/serve                     
    It also can be ran from tcpsvd:                                                 
            tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve                             

    4.在终端上输入:

    tcpsvd 0 21 ftpd -w /root

    0代表监听所有ip,21代表本地监听端口为21,ftpd代表要执行的程序,-w代表允许上传,/root代表默认登录和允许访问的目录

  • 相关阅读:
    POJ 1017
    poj 2709
    poj 1328
    POJ 2386
    POJ 1065
    POJ 3728
    hdu--1004--Let the Balloon Rise
    hdu--2570--迷瘴(贪心)
    hdu--1257--最少拦截系统(贪心)
    hdu--1230--火星A+B
  • 原文地址:https://www.cnblogs.com/live-program/p/11057088.html
Copyright © 2011-2022 走看看