LinuxÏÂÈí¼þ°²×°
LinuxÏÂÈí¼þ°ü°²×°·½·¨
1.ÒѾ±àÒë´ò°üºÃµÄxxx.rpm
ʹÓÃrpmÃüÁÐèÒª´ò¿ªÖնˣ¬Çл»µ½xxx.rpmËùÔÚĿ¼£¬rpm -ivh xxx.rpm
2.´ò°üºÃµÄÔ´Âë°üxxx.src.rpm
ÒªÓÃrpm -rebuild xxx.src.rpmÃüÁîÀ´ÖØÐÂÉú³É
×¢£º¶ÔÓÚrpmÃüÁîµÄÏê½â¿ÉÒÔʹÓà $rpm -helpÀ´²é¿´
3.°²×°³ÌÐòxxx.bin
ÏÈ°Ñxxx.bin¸ÄΪ¿ÉÖ´ÐÐ״̬£¬¿ÉÒÔÓÃÈçÏÂÃüÁchmod +x xxx.bin£¬¾Í¿ÉÒÔÔÚÖÕ¶ËÏÂÖ´ÐÐxxx.binÁË¡£
4.ѹËõ·½Ê½µÄÈí¼þ°üxxx.tar.gz,xxx.bz2,xxx.zµÈµÈ
ÕâÖÖÈí¼þ°üÓÖ·ÖÁ½ÖÖÐÎʽ£º
a.ÒѾ±àÒëºÃµÄÈí¼þ°ü£¬Ê¹Óð²×°½Å±¾À´°²×°£º
ÔÚ°²×°Ç°×îºÃ¿´ÏÂÈí¼þ°üµÄ˵Ã÷Îļþ£¬Èçreadme,install,xxx.htmµÈ
´ò¿ªÖնˣ¬Çл»µ½Èí¼þ°üËùÔÚĿ¼£¬ÔËÐÐÈçÏÂÃüÁî./xxx.sh »ò./xxx.pl¼´¿É¡£
b.ÐèÒª×ÔÐбàÒëµÄÔ´ÂëѹËõ°ü£¬ÏȽâѹËõ£º
ÏÈ¿´ÏÂÈí¼þ°üµÄ˵Ã÷Îļþ£¬Èçreadme,install,xxx.htmµÈ¡£
Ò»°ã°²×°ÐÎʽΪ£º
´ò¿ªÖնˣ¬Çл»µ½Èí¼þ°üËùÔÚĿ¼£¬ÔËÐÐÈçÏÂÃüÁî./configuer→make→make check→make installÕâÑù£¬¾ÍÍê³ÉÁËÈí¼þµÄ°²×°¹ý³Ì¡£
Ïà¹ØÎĵµ£º
¹ØÓÚLinuxÄÚºËѧϰµÄÎóÇøÒÔ¼°Ïà¹ØÊé¼®½éÉÜ
·¢ ²¼ ʱ ¼ä :
2008-11-19
À´ Ô´ :
À´×ÔÍøÂç
×÷ Õß :
ÄäÃû
ä¯ ÀÀ :
1053
д¸øLinuxÄÚºËÐÂÊÖ-¹ØÓÚLinuxÄÚºËѧϰµÄÎóÇø
¡¡¡¡ÏÈ˵¾äÕý¾µÄ£ºÆäʵÎÒû×ʸñдÕâƪÎÄÕ£¬ÒòΪ×Ô¼ºÒ²¾ÍÒ»Á½¸öÔÂÒÔÀ´²Å¿ ......
´ó¼Ò¶¼ÖªµÀÐÞ¸ÄlinuxϵÄDNS¿ÉÒÔÖ±½ÓÐÞ¸Ä/etc/resolv.conf:
root@xuanfei-desktop:~#vim /etc/resolv.conf
nameserver ip //ÌîÉÏÄãµ±µØʹÓõÄ×î¿ìDNS·þÎñÆ÷IPµØÖ·
nameserver ip
µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓÃÍøÂç¹ÜÀíÆ÷Ð޸ġ£
µ«ÊÇÈç¹ûÄãËùÔÚ»ú¹¹»òÕß¹¤×÷µÄµØ·½±ØÐëÒªÇóÄãÓÃDHCP»ñµÃ×Ô¼º·Ç¹Ì¶¨¶¯Ì¬IP ......
°´ÏÂÃæ²½ÖèÀ´×ö£¬¿ÉÒÔ¼òµ¥ÌåÑésocket APIµÄʹÓ᣾ßÌ庯ÊýµÄÒâÒ壬Çë²Î¿¼ÆäËû˵Ã÷Îĵµ¡£
ÏÂÃæµÄº¯ÊýÖ±½Ócopy, paste¾Í¿ÉÒÔÁË¡£
Step1. ´´½¨Server ³ÌÐò¡£
н¨Îļþsocket_s.c, ÄÚÈÝÈçÏ£º
-------------------------------------------
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h ......
ÔÚlinuxÖУ¬¿ÚÁîÎļþÔÚ/etc/passwdÖУ¬ÔçÆÚµÄÕâ¸öÎļþÖ±½Ó´æ·Å¼ÓÃܺóµÄÃÜÂ룬ǰÁ½Î»ÊÇ"ÑÎ"Öµ£¬ÊÇÒ»¸öËæ»úÊý£¬ºóÃæ¸úµÄÊǼÓÃܵÄÃÜÂ롣ΪÁË°²È«£¬ÏÖÔÚµÄlinux¶¼ÌṩÁË /etc/shadowÕâ¸öÓ°×ÓÎļþ£¬ÃÜÂë·ÅÔÚÕâ¸öÎļþÀïÃ棬²¢ÇÒÊÇÖ»ÓÐroot¿É¶ÁµÄ¡£
ÏÂÃæÀ´·ÖÎöÒ»ÏÂ/etc/passwdÎļþ£¬ËûµÄÿ¸öÌõÄ¿Ó ......