Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LINUXÏÂÈçºÎ¶ÔÒ»¸ö³ÌÐòÏÞËÙ

ǰÑÔ£º±¾ÎÄ»·¾³»ùÓÚRHEL 5¡£
 
ÔÚÓÐÏ޵Ĵø¿íÌõ¼þÏ£¬ÎÒÃÇ×ÔÑÔÍùÍùÒª¶ÔÕ¼Óôø¿í¹ý´óµÄ³Ì¶ÈÏÞËÙ£¬ÀýÈ磬ֻÔÊÐíÆäÕ¼ÓÃ×î¸ß1MbpsµÄ´ø¿í£¬»òÕßʹÆäÏÂÔØËٶȲ»³¬¹ý200Kbps£¬µÈµÈ¡£Òò´Ë£¬ÎÒÃǾÍÐèÒªÁ÷Á¿¿ØÖÆ£¨Traffic Control£©¹¤¾ß¡£
ÎÒÔÚÍøÉÏÕÒÁËһϣ¬Á˽âÁ˼¸¸ö£ºtrickle£¬pyshaper£¬ÒÔ¼°LINUXÄÚºË×Ô´øµÄtc¡£
£¨1£©trickle£¨Ö÷Ò³£ºhttp://monkey.org/~marius/pages/?page=trickle£©ÊÇ×î¼òµ¥µÄ£¬Ö»ÐèÒªÏñÕâÑùÆô¶¯Ä³³ÌÐò£¬¸Ã³ÌÐòµÄËٶȾͱ»ÏÞÖÆÔÚÄãÉ趨µÄÊý×ÖÖ®¼äÁË£º
# ./trickle -d 100 -u 30 /root/myapp
±íʾÈóÌÐòmyappµÄËÙ¶ÈÏÞÖÆÔÚ£¨×î´ó£©ÏÂÔØ100K£¬ÉÏ´«30KÖ®¼ä¡£
±¾ÒÔΪtrickleÊǸö¾ªÏ²£¬Ã»Ïëµ½Ò»µ½ËüµÄ¹Ù·½ÍøÕ¾Ò»¿´£¬²ÅÖªµÀËüµÄ×îа汾ÒѾ­ÊÇ2003ÄêµÄÊÂÁË£¬ÎÒÏÂÔØÁËËüµÄÔ´Âë°²×°°ü£¬ÔÚRHEL 5ϵͳÉϳ¢ÊÔ°²×°£¬makeµÄʱºò£¬Ìáʾ³ö´í£º“/usr/include/netinet/in.h:136: error: two or more data types in declaration specifiers”£¬²éÀ´²éÈ¥£¬ÔÚGoogleÉÏÕÒµ½Ô­Òò£ºtrickleÌ«ÀÏÁË£¬gcc 4ÎÞ·¨±àÒ룬±ØÐëÒª½µ¼¶Îªgcc 3²ÅÄܱàÒë¡£Ìì°¡£¬ÏÖÔÚµÄLINUX¼¸ºõ¶¼ÊÇgcc 4ÁË£¬Äĸö»¹»áÓÃgcc 3£¿ÓÚÊÇ·ÅÆúÁËtrickle¡£
 
£¨2£©pyshaper£¨Ö÷Ò³£ºhttp://www.freenet.org.nz/python/pyshaper/£©Ò²ÊDZȽÏÒ×ÓÚʹÓõÄÁ÷Á¿¿ØÖƹ¤¾ß£¬±Ètrickle¸´ÔÓһЩ¡£
¹ØÓÚpyshaper£¬ÎÒÐèÒªÌáÐÑÄãµÄÒ»µãÊÇ£ººÜ²»ºÃ°²×°£¬ÀË·ÑÁËÎÒÂù¶àʱ¼ä£¬ÎÒµ½×îºó»¹ÊÇû°²×°³É£¬ËùÒÔ·ÅÆúÁË¡£
pyshaperÒÀÀµÓÚpython 2.2.2ÒÔÉϰ汾£¬ÏÂÔØÔ´Âë°²×°°üÒԺ󣬲»ÓÃmake£¬Ö±½Ómake install¾ÍÐС£È»ºóÔÚÃüÁîÐÐϾͿÉÒÔÓÃÃüÁîÀ´Æô¶¯pyshaperÁË£º
# pyshaper start
Èç¹û²»³öÒâÍâµÄ»°£¬Äã»áºÍÎÒÒ»Ñù£¬¿´µ½ÏÂÃæµÄ´íÎóÌáʾ£º
ImportError: No module named ezsqlobject
¿´À´ÊÇÉÙÁËezsqlobject£¨http://www.freenet.org.nz/python/ezsqlobject/£©Õâ¸ö×é¼þ£¬ÓÚÊÇÎÒѸËÙGoogle£¬ÏÂÔØÁËezsqlobjectµÄÔ´Âë°²×°°ü£¬¼ÇסÕâÊÇÒ»¸öpythonÔ´Âë°²×°°ü£¬ÄãÒªÓÃÈçÏÂÃüÁîÀ´°²×°£¨Ã»ÓÐmake£¬make installÖ®ÀàµÄ£©£º
# python setup.py
È»ºó£¬ÂíÉÏÓÖÌáʾ´íÎóÁË£º
ImportError: Required package SQLObject not found.
Ô­À´ezsqlobjectÓÖÒÀÀµÓÚÁíÒ»¸öpython×é¼þ SQLObject£¨http://sqlobject.sourceforge.net/download.html£©£¬ÕæÀ×ÈË¡£
ÕâÏÂÐèҪעÒâÁË£¬ÎÒÃÇÐèÒªµÄSQLObject°æ±¾±ØÐëÊÇ0.6µÄ£¬ÒòΪ¸ù¾ÝÕâһƪÎÄÕ£¨http://ubuntuforums.org/archive/index.php/t-993210.html£©µÄ˵·¨£¬¸


Ïà¹ØÎĵµ£º

linux ¶¯Ì¬¼ÓÔØ ¶¯Ì¬Á´½Ó¿â

¶¯Ì¬¿âµÄÏÔʽµ÷ÓÃ
ÏÔʽµ÷Óõĺ¬ÒåÊÇ´úÂë³öÏÖ¿âÎļþÃû£¬Óû§ÐèÒª×Ô¼ºÈ¥
´ò¿ªºÍ¹ÜÀí¿âÎļþ¡£ÆäÒªµãΪ:
¢Å°Ñdlfcn.hϵͳͷÎļþ°üº¬½øÀ´
¢ÆÓÃdlopenº¯Êý´ò¿ª¿âÎļþ£¬²¢Ö¸¶¨´ò¿ª·½Ê½
dllopeµÄµÄµÚÒ»¸ö²ÎÊýΪ¹²Ïí¿âµÄÃû³Æ£¬½«»áÔÚÏÂÃæÎ»ÖòéÕÒÖ¸¶¨µÄ¹²Ïí¿â¡£
   ¢Ù»·¾³±äÁ¿LD_LIBRARY_PATHÁгöµÄÓ÷ֺżä¸ôµ ......

[ת]linux tr

ͨ¹ýʹÓà tr£¬Äú¿ÉÒԷdz£ÈÝÒ×µØÊµÏÖ sed µÄÐí¶à×î»ù±¾¹¦ÄÜ¡£Äú¿ÉÒÔ½« tr ¿´×÷Ϊ sed µÄ£¨¼«Æä£©¼ò»¯µÄ±äÌ壺Ëü¿ÉÒÔÓÃÒ»¸ö×Ö·ûÀ´Ìæ»»ÁíÒ»¸ö×Ö·û£¬»òÕß¿ÉÒÔÍêÈ«³ýȥһЩ×Ö·û¡£ÄúÒ²¿ÉÒÔÓÃËüÀ´³ýÈ¥ÖØ¸´×Ö·û¡£Õâ¾ÍÊÇËùÓÐ tr ËùÄܹ»×öµÄ¡£
trÓÃÀ´´Ó±ê×¼ÊäÈëÖÐͨ¹ýÌæ»»»òɾ³ý²Ù×÷½øÐÐ×Ö·ûת»»¡£trÖ÷ÒªÓÃÓÚɾ³ýÎļþÖÐ ......

Linux/UNIX C++Èí¼þ¿ª·¢




< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
var text = clipboar ......

VmwareÀïLinuxÔÚx windowsÓëÐéÄâÖÕ¶ËÖ®¼äÇл»·½·¨

    µ±ÎÒÃÇÔÚVmware»òÕ߯äËûÐéÄâ»úÖа²×°Linuxºó£¬ÏëÔÚX
WindowsÓëÐéÄâÖÕ¶ËÖ®¼äÇл»Ê±£¬È´·¢ÏÖCtrl+Alt+Fx²»Æð×÷Óã¬ÄÇôÎÒÃÇÈçºÎ½â¾öÕâ¸öÎÊÌâÄØ£¿Æäʵ·½·¨ºÜ¼òµ¥£¬ÎÒÃÇÖ»ÐèÒª½«Vmware»ò
Õ߯äËûÐéÄâ»úÈí¼þµÄÈȼü¸Ä³ÉCtrl+Alt+Shift¼´¿É£¬ÈçVmware¾ßÌå·½·¨ÈçÏ£ºÖÐÎİ旗ѡÔñ±à¼­—&mdash ......

ǶÈëʽLinux²Ù×÷ϵͳѧϰ¹æ»®

ǶÈëʽLinux²Ù×÷ϵͳѧϰ¹æ»®
ARM+LINUX·Ïߣ¬Ö÷¹¥Ç¶ÈëʽLinux²Ù×÷ϵͳ¼°ÆäÉÏÓ¦ÓÃÈí¼þ¿ª·¢Ä¿±ê£º 
£¨1£© ÕÆÎÕÖ÷Á÷ǶÈëʽ΢´¦ÀíÆ÷µÄ½á¹¹ÓëÔ­Àí£¨³õ²½¶¨Îªarm9£© 
£¨2£© ±ØÐëÕÆÎÕÒ»¸öǶÈëʽ²Ù×÷ϵͳ £¨³õ²½¶¨Îªuclinux»òlinux,°æ±¾´ý¶¨£© 
£¨3£© ±ØÐëÊìϤǶÈëʽÈí¼þ¿ª·¢Á÷³Ì²¢ÖÁÉÙ×öÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ