LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

Darkhttpd -- 超小型静态 http 服务器

galeki posted @ 2008年11月08日 03:27 in 网络管理 with tags http darkhttpd , 8347 阅读

要说Linux 下的 http 服务器,不能提到 Apache,除此之外,还有更加轻量的后起之秀 Lighttpd。不过,如果只是展示一些静态 html,这些软件还是过于庞大和复杂了。

Darkhttpd 是一个超小型的静态 html 服务器,编译后,只有一个大小仅为 36K 的 darkhttpd 可执行文件,参数极为简单。

如果你想展示家目录下 doc 目录中的文档,只需要:

$ ./darkhttpd  ~/doc

用浏览器访问 127.0.0.1,就会看到文档内容了,默认 darkhttpd 会呈现目录下的 index.html 文件,如果不存在,darkhttpd 也会将目录内容用列表的形式展现出来。

--port 设置可以来更改默认的端口号,比如改到 81:

$ ./darkhttpd  ~/doc  --port 81

也可以让 darkhttpd 作为一个服务程序在后台运行:

$ ./darkhttpd  ~/doc  --pidfile /var/run/darkhttpd.pid  --daemon

可以无参数运行 darkhttpd 来查看更多的选项,也可以查看压缩包中的 README文件。

解开压缩包,直接 make,就会在目录下生成 darkhttpd 可执行文件,你可以将他拷贝到任何地方运行~

Darkhttpd 无须任何设置,运行快速,非常适合局域网内共享 html 文档,或者作为两机之间临时的文件传输通道。

Darkhttpd 的主页: http://dmr.ath.cx/net/darkhttpd/

貌似主页被 gfw 了,如果你无法下载,可以在本地下载:

darkhttpd-1.7.tar.bz2

  • 无匹配
今天看到的竖排特别多 说:
2008年11月08日 05:00

报告测试结果。。。

非常易用,非常方便!对于我一人用Linux其他人用windows的情况来说,在寝室这个局域网里面实在是太好用了。

PS,传超大文件就不行。

俺有一个5.9G的文件,在家里面,然后在其他其他机器上看不到这个文件,其他的都可以看到,几百MB的也都能看到。
我被墙了,不能去官网看,知道这是怎么一回事的朋友请解释一下。或者帮忙去看看作者的email

zhtlancer 说:
2008年11月08日 06:33

不错,不过我需要用PHP,还是乖乖用我的apache吧...

Head_small
galeki 说:
2008年11月08日 07:10

@1楼: 试了下,我那 4 G 多的文件也出不来,不知道是代码的关系还是 linux 系统本身的限制……

我是1楼 说:
2008年11月09日 19:14

galeki,这个blog评论系统很讨厌。。。一开始我没注意下面的“新评论邮件通知”,没勾掉就发表了。现在一有个新评论就给我发一次邮件,请问怎么退订。谢谢。

LiYanrui 说:
2008年11月09日 20:01

那封邮件正文的尾部不是有退订链接么?

我是1楼 说:
2008年11月09日 20:15

感谢7楼兄弟。退订了

YDK 说:
2008年11月11日 21:09

我不会PHP只懂ASP。想在linux调试ASP用什么软件??

Head_small
galeki 说:
2008年11月12日 03:29

ASP 还是在 win 下调试比较方便

davidwei 说:
2008年11月14日 20:12 回2楼,如果需要带cgi支持的超轻量级网页服务器,我推荐你shttpd.
carpet cleaning duba 说:
2019年9月15日 16:36

We can easily provide people the services in line with your needs as we own high-pressure apparatus. The cleanness of attic area is for a minimum of a perilous task. At this point, you does not have to worry in relation to basement clean-up. Our skilled staff offers you the solutions eventually. Here usually are major developing and systems cleaning products and services we will be ready offer you round the clock.

Robinjack 说:
2020年12月28日 00:20

Hey there. I want to to inquire something…is this a wordpress weblog as we are thinking about shifting over to WP. Also did you make this theme on your own? Thanks. bed bugs

안전놀이터 说:
2021年1月17日 19:50

Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish just about gossips and net and this is actually irritating. A good blog with interesting content, this is what I need. Thank you for keeping this website, I’ll be visiting it. Do you do newsletters? Can not find it.

Robinjack 说:
2021年1月29日 23:02

I dont usually comment on blogs but i have to tell you well done Ross Levinsohn Maven

UMAIR 说:
2021年2月06日 20:57

Uttar Pradesh Madhyamika Shiksha Parishad (UPMSP) has released the model papers for UP Intermediate (Class 12) Board Exams 2021. The exam board has released the subject wise model papers for Class 12 board exams of Uttar Pradesh. The model papers of UP Intermediate board exams will help the candidates to have an understanding of actualUPMSP 12th Model Paper 2021 exam pattern of UP Class 12 Board Exams, nature of questions and weightage of marks for each section in a specific subject. UP Class 12 students must note that the UP Intermediate model papers are just for reference, and the questions in model papers are not asked in the UP Class 12 board exams 2021. Students can check the subject wise model papers and download here.

UMAIR 说:
2021年2月09日 18:20

If you are using signnow and are looking for more convenient ways to use it then you should visit https://4-software-downloads.com/incorporating-the-latest-technology-in-digital-signing-with-signnow.shtmlincorporating-the-latest-technology-in-digital-signing-with-signnow.shtml for more information on the topic.

Robinjack 说:
2021年2月17日 00:28

Interesting point of view. I’m curious to think what type of impact this would have globally? Sometimes people get a little upset with global expansion. I’ll be around soon to check out your response. renters insurance mississippi

cmd368 说:
2021年4月06日 21:55

very nice post, i surely love this site, carry on it

Robinjack 说:
2021年4月24日 20:16

health plans may be expensive but it is really very necessary to get one for yourself` Monthly Income Review

daniyalabbas212@gami 说:
2021年5月04日 08:39

Karnataka board will release the 2nd PUC result 2021 one month after the conclusion of examinations. Students can check their Karnataka 2nd PUC result 2021 on the board's official results website - karresults.nic.in or from the board's official website - pue.kar.nic.in by providing their "Registration Number".karresults.nic.in PUC Result 2021Students can also make use of the direct link given on this page to download their PUC results 2021.

vintage clothing sto 说:
2021年5月26日 13:38

If you are interested in imagine a alter in distinct llife, starting up usually the Los angeles Surgical procedures fat reduction method is a large movement in order to accomplishing which usually idea. lose belly fat

Robinjack 说:
2021年7月01日 18:39

You have brought up a very excellent points , thankyou for the post. How to Gain Baccarat

maid service dubai 说:
2021年9月04日 16:16

These items simply don't work. You'll find a listing of high high quality water spot removal items here drinking water stain removal. Now it might take a few days to obtain your place removal product however it is really worth the wait around. Also just about all supplies as well as services happen to be tested and utilized by me upon actual jobs and so i know these people work as well as trust the actual sources to buy them through. My preferred Hard drinking water Stain Eliminator is Bio-Clean, so be sure you look for this when creating a hard drinking water stain item purchase.

home cleaning dubai 说:
2021年9月14日 18:05

Whether you might be running a great enterprise or perhaps managing a great office, you have lots of time in these kind of workplaces. And right after spending a complete day working at the office, it is fairly manageable to take into account cleaning the office area. But, you'll find nothing to concern yourself with, because there are numerous options accessible to you to tidy up your office. The successful professionals individuals service are only one simply click ways. By simply taking a smaller amount time and also money, the specialist and knowledgeable professionals can do the complete cleaning portion.

forex market 说:
2023年8月16日 16:33

Can I simply say what a reduction to search out someone who truly is aware of what theyre speaking about on the internet. You positively know the way to carry an issue to light and make it important. Extra people have to learn this and perceive this aspect of the story. I cant imagine youre not more in style because you positively have the gift. custom curtains with photos

maid services dubai 说:
2023年8月17日 16:37

Outline which property you might working with by setting out its address along with details in the event necessary. Using as often detail as you're able, describe this painting work you happen to be carrying out along with the quality expectations to which you can be working. Include exactly all types of surface that need to be painted, any type of paint which is to be used and the volume of coats which is to be applied. It is usually common intended for painters to try and do a full pick up after a position and recycle any deadly substances correctly.

forex market 说:
2023年8月20日 23:20

Indeed, in all the Star Trek plots involving time travel, it’s never suggested that the good characters need not worry about some bad guy going back in time and meddling with things since it would just create a new time-line that cannot effect the one that the characters are in. UFABETแทงบอลบนมือถือ

haider 说:
2023年8月21日 17:24

I’m impressed, I must say. Actually rarely must i encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail within the head. Your concept is outstanding; the pain is an element that too little consumers are speaking intelligently about. I am delighted that we found this within my search for some thing relating to this. แทงใบเหลืองใบแดงUFABET

forex market 说:
2023年8月21日 23:21

There are a couple of interesting points over time here but I don’t know if I see every one of them center to heart. There’s some validity but Let me take hold opinion until I take a look at it further. Excellent post , thanks and now we want much more! Added onto FeedBurner also UFABETแทงบอลทายผลผู้ชนะ

forex market 说:
2023年8月23日 21:48

I’d have to consult with you here. Which isn’t something I usually do! I like reading an article that can make people feel. Also, many thanks for allowing me to comment! 안전놀이터

haider 说:
2023年8月23日 21:58

Wow! This could be one particular of the most helpful blogs We’ve ever arrive across on this subject. Actually Great. I’m also an expert in this topic therefore I can understand your hard work. เว็บพนันบอลออนไลน์อันดับ1

forex market 说:
2023年8月24日 17:36

This is a terrific web site, could you be interested in doing an interview regarding how you designed it? If so e-mail me! UFABET เว็บพนันแตกง่าย

haider 说:
2023年8月24日 18:44

I’d must talk with you here. Which isn’t something It’s my job to do! I love reading an article that can get people to feel. Also, many thanks permitting me to comment! เว็บบอลออนไลน์UFA

haider 说:
2023年8月25日 01:24

It is really a great and useful piece of info. I am glad that you shared this useful information with us. Please keep us informed like this. Thanks for sharing. สมัครแทงบอลฟรี

forex market 说:
2023年8月25日 14:14

Hello. Very cool web site!! Man .. Beautiful .. Superb .. I’ll bookmark your web site and take the feeds also…I’m satisfied to locate a lot of useful information here in the article. Thanks for sharing.. เว็บไซต์แทงบอลอันดับ1

forex market 说:
2023年8月26日 00:35

Have you ever considered writing an ebook or guest authoring on other blogs? I have a blog centered on the same ideas you discuss and would love to have you share some stories/information. I know my audience would appreciate your work. If you are even remotely interested, feel free to send me an e-mail. เว็บพนันออนไลน์UFA

haider 说:
2023年8月27日 18:11

What’s Happening i am new to this, I stumbled upon this I have found It positively useful and it has helped me out loads. I hope to contribute & assist other users like its helped me. Good job. 메이저사이트

haider 说:
2023年8月30日 16:47

I’ve been exploring for a bit for any high-quality articles or weblog posts in this kind of house . Exploring in Yahoo I eventually stumbled upon this web site. Studying this information So i’m satisfied to show that I have an incredibly just right uncanny feeling I found out exactly what I needed. I most for sure will make certain to do not disregard this website and provides it a look a relentless basis. 메이저사이트

haider 说:
2023年9月03日 19:54

I have been browsing on-line more than three hours lately, but I never found any attention-grabbing article like yours. It?s pretty value enough for me. Personally, if all webmasters and bloggers made just right content material as you probably did, the internet will be much more useful than ever before. 안전놀이터

forex market 说:
2023年9月05日 00:52

I’m not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for excellent information I was looking for this info for my mission. salingsilang

sdsds 说:
2023年9月08日 22:18

Nice post. I understand some thing tougher on different blogs everyday. It will always be stimulating to see content from other writers and practice something at their store. I’d prefer to use some with the content in my blog regardless of whether you don’t mind. Natually I’ll provide link on your web weblog. Thank you for sharing. ak47 hawaiian shirt

haider 说:
2023年9月08日 22:52

I discovered your website internet site online and check a couple of your early posts. Always keep inside the excellent operate. I just additional your Rss to my MSN News Reader. Seeking forward to reading far more from you finding out down the road!… filmyzilla 2023

haider 说:
2023年9月14日 21:20

I actually appreciated studying your website, I discovered it in Yahoo. I recently came acrossa reallyinteresting pdf finder type website, its a pdf lookup engine and I think it is actually incredibly interesting for individuals who like reading through pdfs สล็อต

haider 说:
2023年9月20日 00:44

At times it’s easier to simply take a step again and also understand that not everybody shares your own values custom birthday crocs

haider 说:
2023年9月23日 16:28

Hey there I am so excited I found your site, I really found you by accident, while I was browsing on Bing for something else, Regardless I am here now and would just like to say thank you for a incredible post and a all round entertaining blog (I also love the theme/design), I don’t have time to go through it all at the minute but I have saved it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent work. roof cleaning southampton

jmaes 说:
2023年9月24日 13:51

Nice Website. You should think more about RSS Feeds as a traffic source. They bring me a nice bit of traffic shillong teer common number

jmaes 说:
2023年10月02日 23:26

We are a group of volunteers and starting a new scheme in our community. Your website provided us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you. Kalaastar song lyrics

james 说:
2023年10月06日 18:51

After study a handful of the blogs on your internet site now, we really like your technique for blogging. I bookmarked it to my bookmark internet site list and are checking back soon. Pls have a look at my web page too and let me know if you agree. chicken crocs

ds 说:
2023年10月12日 18:34

That is why a good idea is you need to connected examine prior to producing. You can actually distribute greater distribute this way. Gutter Cleaning Poole

ds 说:
2023年10月14日 01:02

Your ability to write about this kind of info is just the thing we all desire. Simply by discussing your knowledge you support people thru discussing your own personal observations. And I’ll let you know right now your writing served me personally. transparent training bra

ds 说:
2023年10月21日 13:50

Thank you for the sensible critique. Me & my friend were just preparing to do a little research about this. We got a book from our area library but I think I learned better from this post. I am very glad to see such wonderful info being shared freely out there… แทงบอลเงินสด


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter