How to install Lighttpd in Windows

Source: Internet
Author: User

The installation of Lighttpd in Windows involves several steps: www.2cto.com 1. cygwin is required in windows. If you need to download and install cygwin first. 2. Download lighttpd for Windows: http://www.software8.co/software/wlbc/1830.html 3. In the cygwin environment, enter the downloaded directory of lighttpd and run the following commands in sequence: 1>. /configure-prefix = C:/lighthttd 2> make 3> make install if no error is reported, the installation is successful. 4. Create a directory named etc under C:/lighthttd to store the configuration file and create a new configuration file named lighttpd. conf, the sample configuration is as follows: server.doc ument-root = "D:/Itang_home/MyPics/100 CANON" server. port = 8080 mimetype. assign = (". html "=>" text/html ",". txt "=>" text/plain ",". jpg "=>" image/jpeg ",". png "=>" image/png ") www.2cto.com 5. In the windows command line environment, enter the C:/lighthttd/sbin directory and run lighttpd-t-f .. \ etc \ lighttpd. conf to test whether the configuration is successfully installed. At this time, the system will prompt that the DLL dependent on cygwin does not exist when lighttpd such as cygwin1.dll is running, so you need to find the corresponding dll in the bin directory of cygwin and copy it to the C:/lighthttd/sbin directory, then run lighttpd-t-f .. \ etc \ lighttpd. conf until "Syntax OK" is displayed, it indicates that the configuration is successfully installed. 6. Run lighttpd-D-f .. \ etc \ lighttpd. conf to start the Web server. 7. access in the browser and display images. After the process manager is started, the memory usage is only 4 MB, which is very delicate. The access speed is also fast. In the future, let's take a look at the official documentation and try it out based on the actual application. It may be applied to the actual project.

Related Article

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.