Create a download-type WEB site with controllable bandwidth and threads
Source: Internet
Author: User
Article title: Create a download-type WEB site with controllable bandwidth and threads. 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.
I. Preface I wrote a typical configuration for a resource download website one afternoon based on my online materials and personal practices. This configuration allows WEB sites to manage IP thread and thread traffic, proftpd is used to upload resources, and ssh is used to manage hosts. Undoubtedly, this will allow you to control your valuable network bandwidth. a simple firewall configuration is provided later in this article for your reference. my linux version is redhat as 3.0. Hope you have read this article after a lot of exchanges with me, MAIL: LLZQQ@163.COM
II. software version Apache-1.3.29
Mysql-4.0.16
Php-4.3.4
Proftpd-1.2.9
Mod_limitipconn-0.04
Mod_bandwidth-2.0.4
III. install and configure Mysql # Cd mysql-4.0.16
BandWidthDataDir "/var/apachebw /"
BandWidthModule on
BandWidth 192.168.0 0 200000: the download speed of users in the Lan is 200 KB.
BandWidth all 51200 limits the download speed of other users to 51200 bytes per second
Modify/etc/init. d/httpd
# Vi/etc/init. d/httpd
Add the following content after three rows:
#! /Bin/sh
#
# Startup script for the Apache Web Server
# Chkconfig:-85 15
# Description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# Processname: httpd
# Pidfile:/usr/local/apache/log/httpd. pid
# Config:/usr/local/apache/conf/httpd. conf
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.