玩趣头条自媒体邀请码邀请码是多少 在哪看 玩趣头条自媒体邀请码邀请码有什么用

君,已阅读到文档的结尾了呢~~
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
四种常用嵌入式RTOS的比较与选择
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口&&&&嵌入式linux下ftp服务器
嵌入式linux下ftp服务器
嵌入式linux下ftp服务器,使用教程将在博客中详细讲述,敬请关注!
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
操作系统下载排行6168人阅读
开源软件移植(3)
作者:. 原创作品,转载请标明出处!
在嵌入式Linux系统中,有时候需要搭建一个ftp服务器,以便windows或linux系统去访问嵌入式linux系统的数据。现在流行的ftp和vsftpd软件相对比较大,在嵌入式Linux系统下不太合适。最近由于需要,发现了一款很小型的ftp服务器,在这里分享。
根据自己的需要,修改Makefile,将gcc修改为交叉工具链的gcc,比如mips-gnu-linux-gcc。
若要静态编译,在CFLAGS后面添加&-static&选项。
以下的Makefile已经修改:
# Makefile for the linux version of stupid-ftpd
CC=mips-linux-gnu-gcc -EL
OBJS=ftpcommand.o ftpdconfig.o command.o ls.o stupid-ftpd.o
DOBJS=ftpcommand.do ftpdconfig.do command.do ls.do stupid-ftpd.do
POBJS=ftpcommand.po ftpdconfig.po command.po ls.po stupid-ftpd.po
CFLAGS=-O2 -Wall -Wstrict-prototypes -static
DCFLAGS=-g -DDEBUG -Wall -Wstrict-prototypes
PCFLAGS=-g -DDEBUG -Wall -Wstrict-prototypes -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs
EXEC=stupid-ftpd.Linux6
.SUFFIXES: .c .o .do .po
all: $(OBJS)
$(CC) $(CFLAGS) -o $(EXEC) $(OBJS) $(LIBS)
debug: $(DOBJS)
$(CC) $(DCFLAGS) -o $(EXEC) $(DOBJS) $(LIBS)
pedantic: $(POBJS)
$(CC) $(PCFLAGS) -o $(EXEC) $(POBJS) $(LIBS)
rm -f $(OBJS) $(DOBJS) $(POBJS) $(EXEC) *~
$(CC) $(CFLAGS) -c -o $@ $&
$(CC) $(DCFLAGS) -c -o $@ $&
$(CC) $(PCFLAGS) -c -o $@ $&
install -m 755 -s ./stupid-ftpd /usr/local/bin/stupid-ftpd
install -m 700 -d /etc/stupid-ftpd
install -m 755 -d /usr/local/stupid-ftpd
install -m 600 ./stupid-ftpd.conf /etc/stupid-ftpd/stupid-ftpd.conf
只需修改两个位置。
编译完成后,生成stupid-ftpd.Linux6可执行程序,该程序运行需要配置文件,以下的配置已经被修改并验证,是可以用的。但前提是运行在嵌入式Linux系统下,21端口没有被占用。
# This is a config-file for stupid-ftpd
# ------------------------------------
# The standard path should be /etc/stupid-ftpd.conf
# You can define other paths by using the &-f& option
# when starting stupid-ftpd.
# ATTENTION: 1) Remember, that the server is running with YOUR permissions.
It will fail to access other users directory, unless it is
root, but it also allows to access ALL YOUR directories,
which are deeper in a user's root-dir and YOU HAVE access to.
2) To solve the problem, the best way is to define a group-ID
for stupid-ftpd.
Or if you aren't root: set the MAIN root (serverroot=) to
the highest directory depth which is possible.
3) REMEMBER: DO NOT PUT THIS FILE in an accessible directory!!!
There are passwords defined here. The safest place is
outside the serverroot.
# Server operation mode:
- quiet in background
# interactive - standard mode
#mode=interactive
#交互式的形式运行
mode=daemon
#以守护进程的形式运行在后台
# chroot to
#serverroot=/usr/home/cinek/tmp3/aaa
serverroot=/mnt
#将ftp的根目录设置为/mnt目录下,在windows打开该ftp,就能访问/mnt目录
# type of chroot
- kernel chroot(), high security, but needs root privileges
# virtual - no real chroot(), software side (virtual) chroot
#changeroottype=real
changeroottype=virtual
# Port number for the FTP-Protocol
#port=2121
#默认为ftp的端口号。
# Maximum users allowed to log in
maxusers=10
# Message Of The Day (motd)
# It will be displayed after the login procedure.
#motd=/tmp/stupid-ftpd.motd
# Message on quit
# It will be displayed when quitting.
#byemsg=/tmp/stupid-ftpd.bye
#log=/tmp/stupid-ftpd.log
# User list:
user=&login& &passwd& &subdir& &maxlogins& &flags&
password or * for anonymous access
(internally appended to serverroot)
the user has access to the WHOLE SUBTREE,
if the server has access to it
&maxlogins& maximal logins with this usertype
D - download
U - upload + making directories
O - overwrite existing files
M - allows multiple logins
E - allows erase operations
A - allows EVERYTHING(!)
# user ftp is mapped to user anonymous, don't forget this
# Examples:
# user=user1 passx /tmp
- login: user1, passwd: passx, max login twice (different IPs!)
only download rights from directory /tmp
# user=user2 passy /home/user2 0 DU
- login: user2, passwd: passy, no login count limit (different IPs!)
download+upload rights to directory /home/user2
# user=user3 passz /home/user3 5 DUOM
- login: user3, passwd: passz, max login count 5 (even from same IP)
download+upload+overwrite rights to directory /home/user3
# user=user4 passq /tmp 10 -
- login: user4, passwd: passq, max login count 10 (even from same IP)
look-only rights at directory /tmp
# SEE: ATTENTION remark on the top of this file !!!
user=anonymous *
# Banned hosts
# &*& and &?& are allowed here
#ban=192.168.*
#ban=localhost
# Ban message (displayed to user who is banned)
# Please don't use more than 70 characters.
#banmsg=Go away !
# Login/password timeout
login-timeout=120
# Timeout (while logged in)
timeout=240
剩下的用默认的配置就可以了,特别注意,设置port参数的时候,2121端口不能使用,无法提供ftp服务。要设置为21端口,经过测试,设置为21端口,在Linux的PC机,报错:21端口被占用。但在嵌入式Linux下,是可以使用的。
stupid-ftpd.Linux6的使用方法:
直接用-f选项指定配置文件:
stupid-ftpd.Linux6 -f stupid-ftpd.conf
然后保证windows与嵌入式Linux系统的IP地址在同一网段,然后再&我的电脑&输入:ftp://192.168.x.x/
这里就不截图了。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:758681次
积分:9179
积分:9179
排名:第1564名
原创:73篇
转载:20篇
评论:930条
文章:13篇
阅读:143852
(1)(1)(1)(1)(3)(7)(2)(6)(11)(6)(3)(4)(1)(9)(3)(1)(1)(11)(15)(4)(1)(1)本帖子已过去太久远了,不再提供回复功能。嵌入式项目一 ――构建嵌入式FTP服务器报告_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
嵌入式项目一 ――构建嵌入式FTP服务器报告
上传于||暂无简介
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩48页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 东方头条邀请码 的文章

 

随机推荐