Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Method of installing Lighttpd Web server on CentOS and RHEL using Yum

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to use Yum to install Lighttpd Web servers on CentOS and RHEL. I believe most people don't know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.

Lighttpd is a high-performance Web server suitable for running in a production environment. It is a highly optimized, secure, and very flexible Web server; compared to other Web servers, LightTPD uses very low memory and CPU. Its event-driven architecture is optimized for a large number of parallel connections (remain active)

Lighttpd provides support for some popular Web 2.0 sites. It provides a high-speed IO infrastructure that enables them to scale several times on the same hardware. This is developed in consideration of future networks, such as faster FastCGI, COMET compliance with mod_mailbox, asynchronous IO.

You can install Lighttpd on a RHEL-based system by following these steps.

Step 1: add an EPEL repository

The EPEL yum repository has the latest Lighttpd package, so first add the EPEL yum repository to your system.

# rpm-Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Step 2: install the LightTPD server

Install lighttpd using the yum package Manager

# yum install lighttpd lighttpd-fastcgiLoaded plugins: fastestmirror, refresh-packagekit SecurityLoading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: mirrors.ispros.com.bd * extras: mirror.nbrc.ac.in * updates: mirror.nhanhoa.comSetting up Install ProcessResolving Dependencies-- > Running transaction check--- > Package lighttpd.i686 0vir 1.4.35-1.el6 will be installed--- > Package lighttpd-fastcgi.i686 0vir 1.4.35-1.el6 will be installed-- > Processing Dependency: spawn-fcgi for package: lighttpd-fastcgi-1.4. 35-1.el6.i686 1.el6 will be installed---> Running transaction check--- > Package spawn-fcgi.i686 0pur1.6.3-1.el6 will be installed-- > Finished Dependency ResolutionDependencies Resolved= Package Arch Version Repository Size=Installing: lighttpd i686 1.4.35-1.el6 epel 300k lighttpd-fastcgi i686 1.4.35-1.el6 epel 45 kInstalling for dependencies: spawn-fcgi i686 1.6.3-1.el6 epel 16 kTransaction Summary=Install 3 Package (s) Total download size: 361 kInstalled size: 818 kIs this ok [yUnip N]: yDownloading Packages : (1 kB 3): lighttpd-1.4.35-1.el6.i686.rpm | 300 kB 00:00 (2 pm 3): lighttpd-fastcgi-1.4.35-1.el6.i686.rpm | 45 kB 00:00 (3 pm 3): spawn-fcgi-1.6.3-1.el6.i686.rpm | | 16 kB 0015 00-| -Total 206kB/s | 361kB 00:01Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum.** Found 1 pre-existing rpmdb problem (s) 'yum check' output follows:google-chrome-stable-34.0.1847.116-1.i386 has missing requires of libnss3.so (NSS_3.14.3) Installing: lighttpd-1.4.35-1.el6.i686 1 3 Installing: spawn-fcgi-1.6.3-1.el6.i686 2 Installing 3: lighttpd-fastcgi-1.4.35-1.el6.i686 3/3Installed: lighttpd.i686 0VOV 1.4.35-1.el6 lighttpd-fastcgi.i686 0VOV 1.4.35-1.el6Dependency Installed: spawn-fcgi.i686 0VOR 1.6.3-1.el6Complete!

Step 3: configure the LightTPD server

Before starting the lighttpd configuration, make sure that selinux is disabled on the system.

# getenforece

Now edit the Lighttpd configuration file / etc/lighttpd/lighttpd.conf

Server.use-ipv6 = "disable" server.max-fds = 2048

Server.use-ipv6: setting this value to "diable" will allow the server to listen for IPv6 connections and disable IPv6 connections.

Server.max-fds Lighttpd is a single-threaded server whose main resource limit is the number of file descriptors, which is set to 1024 by default (on most systems). To handle high-traffic sites, you can set this to 2048.

Step 4: start the LightTPD server

Finally, start the lighttpd service with the following command

# service lighttpd start

To stop or restart the server, use the following command.

# service lighttpd stop# service lighttpd restart

Cause lighttpd to start when the server starts

# chkconfig lighttpd on above is all about the method of installing Lighttpd Web server on CentOS and RHEL using Yum. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report