묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
리눅스에서 제가 직접 대역폭을 제한시키고싶은데요...
2014.05.08 21:36
이런걸 qos라고 하나보네요...어디서 정보를 얻어야할까요 ㅜㅜ
도와주세요
댓글 3
-
GG
2014.05.08 23:12
-
키스투엑스이
2014.05.09 02:26
이게 답.. -
가브리엘조
2014.05.09 09:19
우분투사용자입니다.전 이거 보고했어요Installing Apache mod_bw in Ubuntu Linux
Bandwidth module (mod_bw) is not a default option in the Apache installation under Ubuntu Linux. The following are the steps to have bandwidth module enabled in Apache web server:
- (Optional) If you may want to download wget and apxs2 to be able to download and compile mod_bw.
# sudo apt-get install wget apache2-threaded-dev
- Download and compile mod_bw.
# wget http://ivn.cl/files/source/mod_bw-0.8.tgz
# tar xvzf mod_bw-0.8.tgz # cd mod_bw # apxs2 -i -a -c mod_bw.cI am assuming that you get this error:
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule’ directive already has to exist..Yes, it is expected. Just ignore the error.
- Create the load file.
# cd /etc/apache2/mods-available
# sudo sh -c "echo 'LoadModule bw_module /usr/lib/apache2/modules/mod_bw.so' > bw.load"
# cd ../mods-enabled
# ln -s ../mods-available/bw.load bw.load - Add Bandwidth Configuration to your Virtualhost, for example:
<Virtualhost *>
Servername www.example.com BandwidthModule On ForceBandWidthModule On Bandwidth all 1024000 MinBandwidth all 50000 LargeFileLimit * 500 50000 </Virtualhost><Virtualhost *> Servername www.example.com BandwidthModule On ForceBandWidthModule On Bandwidth all 10240 MinBandwidth all -1 LargeFileLimit * 500 50000 </Virtualhost>
For more examples, please visit mod_bw setup.
- Restart apache2 to activate the bandwidth module.
# /etc/init.d/apache2 restart
- (Optional) If you may want to download wget and apxs2 to be able to download and compile mod_bw.
정보는 역시 구글신께...