cst05001 cst05001
关注数: 4 粉丝数: 128 发帖数: 14,342 关注贴吧数: 21
一段IRC的#rhel频道的对话 (19时35分54秒) #rhel 的话题为: Red Hat Enterprise Linux (RHEL) Discussion | Stable: 5.1, 4.6, 3.9, 2.1 | Beta: 5.2 | Be polite and use a pastebin (http://rafb.net/paste) to post multi-line. For discussion of Fedora #fedora, for CentOS #centos, for RHN #rhn, and for satellite/proxy #rhn-satellite (though also welcome here). Non RH extra package sites EPEL (http://fedoraproject.org/wiki/EPEL), RPMForge (http://dag.wieers.com). Wiki: http://rhelwiki.com(19时36分51秒) lettuce [[email protected]] 进入了聊天室。(19时38分11秒) alin_CN: a hello ..(19时39分09秒) morthan: why(19时39分21秒) NeosVortex [[email protected]] 进入了聊天室。(19时43分30秒) alin_CN: just to see what will happed in this channel ...(19时43分41秒) morthan: poor alin_CN(19时43分47秒) alin_CN: The first day use IRC..(19时45分02秒) morthan: do you admit you're poor?(19时45分07秒) pki: alin_CN: welcome then =)(19时45分12秒) alin_CN: do not welcome ?(19时45分47秒) pki: i just said - welcome! =)(19时45分50秒) morthan: do you admit you're poor, alin_CN?(19时46分03秒) swankier: morthan: stop being a dork.(19时46分07秒) Roobarb [[email protected]] 进入了聊天室。(19时46分42秒) alin_CN: if I disturb you, I say sorry and be quite^_^(19时47分16秒) morthan: you disturb, go away(19时47分33秒) MartinCo: any squid people here ?(19时47分46秒) e_: like with tentacles instead of arms?(19时48分08秒) MartinCo: proxy - obviously :D(19时48分09秒) morthan: it's nothing personal, Alin: I like you. but why don't you admit you're poor?(19时48分33秒) pki: MartinCo: sure =)(19时48分35秒) MartinCo: is the POST **data** saved anywhere on squid?(19时48分48秒) pki: MartinCo: not by default(19时49分07秒) alin_CN: -_=I think I am not belong to this channel. bye all(19时49分09秒) swankier: alin_CN: please don't be offended. morthan is a troll.(19时49分21秒) MartinCo: should it show in the general access log with the request if it were logged ?(19时49分31秒) alin_CN: it does not matter^_^(19时50分19秒) pki: MartinCo: i havent seen the arguments being logged with post in my access.log, but im sure that is a feature that could be used(19时50分57秒) pki: and I guess it depends on the design of the website aswell.(19时51分05秒) MartinCo: pki, yea i guess its not there since i cant' see it, its a bit late now if i enable it :D(19时51分15秒) jnewbigin [[email protected]] 进入了聊天室。(19时51分29秒) pki: MartinCo: heh, yeah probably.(19时53分33秒) morthan: poor alin_CN(19时53分58秒) 日志已启动。此会话中的后续消息将会被自动记录。(19时55分22秒) lettuce 离开了聊天室(quit: )。(19时55分53秒) alin_CN: er...In this channel, I do not want to speak drity words, and I had keep quiet, can you stop to say drity words to me ?(19时56分00秒) nawty [[email protected]] 进入了聊天室。
在博创UP-NETARM2410-S开发板上建立嵌入式网页服务器(lighttpd) 参考文档:lighttpd源文件的README以及configure实验环境:硬件:目标板:UP-NETARM2410-S开发板基于ARM 920T内核的SAMSUNG S3C2410处理器Linux Kernel2.4.18RAMDISK YAFFSIP:192.168.0.115,已配置telnet服务并开启宿主机环境:RedHat 9I686IP:192.168.0.110,已配置NFS服务并开启,共享/mnt/nfs目录,权限为*(rw,sync)交叉编译链:arm-linux-binutils-2.15 (获取源:handhelds.org)arm-linux-gcc-3.4.1 (获取源:handhelds.org)网页服务器:lighttpd_1.4.18(获取源:Ubuntu中国镜像 debian.cn99.com/ubuntu)采用理由:lighttpd是一个轻量级的网页服务器,源代码只有4.4M,经过实验,经过arm-linux-gcc编译之后核心可执行文件lighttpd只占用489K实验步骤:编译lighttpd解压lighttpd源文件tar zxvf lighttpd_1.4.18.orig.tar.gz进入源文件目录配置交叉编译所需的环境变量在这里重新制定编译链为arm编译链export CC=arm-linux-gccexport AR=arm-linux-arexport LD=arm-linux-ldexport RANLIB=arm-linux-ranlibexport STRIP=arm-linux-strip查看配置文件帮助之后配置编译配置文件./configure –prefix=/mnt/nfs/lighttpd-arm –host=arm-linux –build=i686-pc-linux --disable-FEUTARE –disable-ipv6 –disable-lfs--prefix安装路径选项必须设定为与目标板挂在目录相同,否则会出现lighttpd服务器找不到相关动态链接库和配置文件的错误我计划把编译后的网页服务器目录挂载到目标板的/mnt/nfs/目录下,所以设置为/mnt/nfs/lighttpd-arm--host宿主机设置为开发板的型号arm-linux--build设置为当前开发环境i686-pc-linux由于开发板环境限制,因此我决定对配置编译文件进行粗略的裁剪。所以用--disable-FEUTARE关闭对未来扩展的支持--disable-ipv6关闭对ipv6的支持--disable-lfs关闭对大文件系统的支持(large file system)用./configure生成Makefile文件后,用make进行编译,并用make install命令把编译后的可执行文件复制到安装路径到此为止,lighttpd的编译完成。从上图可以看出,经过arm编译链编译过的lighttpd所有文件一共占用2M的存储空间配置lighttpd把lighttpd源文件家下的doc目录下的配置文件模板复制到安装文件目录下的sbin目录。cp /root/lighttpd-2.4.18/doc/lighttpd.conf /mnt/nfs/lighttpd-arm/sbin配置配置文件创建网页根目录mkdir /mnt/nfs/lighttpd-arm/htdocscd /mnt/nfs/lighttpd-arm/sbinvim lighttpd.conf制定网页根目录为/mnt/nfs/lighttpd-arm/htdocs由于开发板的系统文件是固化到ROM里的特性,对文件写入操作极为忌讳,所以禁用网页访问记录。用#号注释掉server.errorlogaccesslog.filename这两个选项由于开发板不完全支持lighttpd的server.range-requests操作,所以必须注释掉$HTTP[“url”] =~ “\.pdf$” {Server.range-requests = “disable” }操作测试lighttpd在htdocs目录下建立两个测试网页index.htmlb.htmlindex.html的内容为http://tieba.baidu.com/mo/q/checkurl?url=%E2%80%9Db.html%E2%80%9D&urlrefer=39ee8d45807eab26576b48654b852e88b.html的内容为Hello Lighttpd for ARM用telnet远程登陆到目标板进行挂在网页服务器telnet 192.168.0.115挂在宿主机相应目录mount 192.168.0.110:/mnt/nfs /mnt/nfs 进入网页服务器目录下的sbin目录,加载配置文件并启动服务进程./lighttpd –f lighttpd.conf用宿主机访问目标板测试页面可以访问实验成功
首页 1 2 3 4 5 下一页