ÅäÖÃLinux wget,yum ʹÓôúÀí·ÃÎÊÍøÂç
ÅäÖÃLinux wget,yum ʹÓôúÀí·ÃÎÊÍøÂç¡£
Èç¹ûÄãµÄlinuxÖ÷»úÐèҪͨ¹ý´úÀí·þÎñÆ÷²ÅÄÜ·ÃÎÊÍⲿÍøÂç¡£¿ÉÒÔͨ¹ýÈçÏ·½Ê½ÊµÏÖ¡£
1.wget
ÐèÒªÔÚµ±Ç°Óû§µÄĿ¼Ï´´½¨Ò»¸ö".wgetrc"Îļþ
[root@linux ~]#vi .wgetrc
http-proxy = 10.1.18.34:3128
ftp-proxy = 10.1.18.34:3128
·Ö±ð±íʾhttpµÄ´úÀí·þÎñÆ÷ºÍftpµÄ´úÀí·þÎñÆ÷¡£Èç¹û´úÀí·þÎñÆ÷ÐèÒªÃÜÂëÔòʹÓãº
--proxy-user=USERÉèÖôúÀíÓû§
--proxy-passwd=PASSÉèÖôúÀíÃÜÂë
ÕâÁ½¸ö²ÎÊý¡£
ʹÓòÎÊý--proxy=on/off ʹÓûòÕ߹رմúÀí¡£
2.yum
[root@linux ~]# vi /etc/yum.conf
#about yum proxy
#day 2010-03-06
#wellpan
#=================
proxy=http://10.1.18.34:3128/
#================
ÒòΪÎÒ²âÊԵĴúÀíûÓÐÒªÇóÃÜÂëÑéÖ¤£¬Èç¹ûÒªÇóûÓÐÊäÈëÓû§ÃûºÍÃÜÂë.
Ïà¹ØÎĵµ£º
dns
/etc/resolv.conf
Ö÷»úÃû
1)#hostname tt.com
2)/etc/sysconfig/networkÖеÄhostname
3)ÐÞ¸Ä/etc/hostsÎļþ
=>sendmail->/etc/mail/local-host-names
gateway
etc/sysconfig/network
ip
/etc/sysconfig/network-scripts/ifcfg-eth0
1. ±ä¸üµ±Ç°Ö÷»úÃû
Á½ÖÖ·½·¨£º echo new-hostname > /proc/s ......
ÀíÂÛÉÏ£¬±¾ÎÄÊÊÓÃÓÚboostµÄ¸÷¸ö°æ±¾£¬ÓÈÆäÊÇ×îа汾1.39.0£»ÊÊÓÃÓÚ¸÷ÖÖC++±àÒëÆ÷£¬ÈçVC6.0£¨²¿·Ö¿â²»Ö§³Ö£©£¬VS2003£¬VS2005£¬VS2008£¬gcc£¬C++ BuilderµÈ¡£ÏÈ×ܽáÒ»ÏÂWindowsϵͳ¡£
Ò»¡¢ÏÂÔØ
Ê×ÏÈ´Óboost¹Ù·½Ö÷Ò³http://www.boost.org/ÏÂÔØ×îаæboost°²×°°ü£¨Ä¿Ç°×îаæÊÇ1.39.0£©¡£ÒòΪboostÒ»²¿·ÖÀàÊÇÐèÒª±àÒë³É¿â²Å ......
Ò» »ù±¾µÄÎļþ²Ù×÷¼°ÏµÍ³²Ù×÷
н¨Ä¿Â¼ mkdir –Ŀ¼Ãû
½«¹¤×÷Ŀ¼¸Ä±äµ½Dir   ......
1. ÄÚ´æ·ÖÅ䷽ʽ
(1) ´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄÕû¸öÔËÐÐÆڼ䶼´æÔÚ¡£ÀýÈ磺ȫ¾Ö±äÁ¿£¬static±äÁ¿¡£
(2) ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯ÊýÖ´ÐнáÊøµÄʱºòÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ»ÄÚ´æ·ÖÅäÔËËãÄÚÖÃÓÚ´¦ÀíÆ÷µÄÖ¸ÁÖУ¬Ð§Âʺܸ ......