Darkhttpd-ultra-Small Static http Server

Source: Internet
Author: User
Article Title: Darkhttpd-ultra-Small Static http server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Apache cannot be mentioned on the http server in Linux. In addition, Lighttpd is also a lightweight startup. However, if only some static html is displayed, these software is too large and complex.

Darkhttpd is a super-small static html server. After compilation, only one darkhttpd executable file with a size of 36 KB is provided. The parameter is extremely simple.

If you want to display the documents in the doc directory under the Home Directory, you only need:

$./Darkhttpd ~ /Doc

Access 127.0.0.1 in a browser and you will see the document content. By default, darkhttpd will display the index.html file in the directory. If it does not exist, darkhttpd will also display the directory content in the form of a list.

-- Port settings can be used to change the default port number, for example, to 81:

$./Darkhttpd ~ /Doc -- port 81

You can also run darkhttpd in the background as a service program:

$./Darkhttpd ~ /Doc -- pidfile/var/run/darkhttpd. pid -- daemon

You can run darkhttpd without parameters to view more options, or view the README file in the compressed package.

Uncompress the package and directly make the file to generate a darkhttpd executable file in the directory. You can copy the file to any place to run it ~

Darkhttpd runs fast without any settings. It is suitable for sharing html documents in the LAN or as a temporary file transfer channel between two hosts.

Home page of Darkhttpd: http://dmr.ath.cx/net/darkhttpd/

It seems that the home page has been gfw. If you cannot download it, you can download it locally.

Linuxgem.org/user_files/linuxgem/File/darkhttpd-1.7.tar.bz2 ">Darkhttpd-1.7.tar.bz2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.