LinuxÍø¹Ü±Ê¼Ç£¨£±£µ£©£ºÓëLinuxÏà¹ØµÄ½Ó¿Ú²âÊÔ
ΪÁËÍ»³ö½²½âµÄ·½±ãÐÔ£¬ÎÒ°ÑÒÔÇ°¹¤×÷ÖÐÕä²ØµÄһЩʵÑé¹ý³Ì¹±Ï׸ø´ó¼Ò¡££¨Î´¾ÔÊÐí£¬ÇëÎðתÔØ£© Ò»£®ÊµÑéÄ¿µÄ 1. Á˽âLinux²Ù×÷ϵͳµÄÆô¶¯ÓëµÇ¼·½·¨ 2. ÕÆÎÕ³£ÓÃRed Hat LinuxÃüÁîµÄʹÓ÷½·¨£¬ÕÆÎÕͼÐÎÓû§½çÃæϵĻù±¾²Ù×÷ 3. Á˽âLinuxÃüÁîÖвÎÊýÑ¡ÏîµÄÓ÷¨ºÍ×÷Óà 4. ÊìϤ²Ù×÷ϵͳµÄÃüÁî½Ó¿Ú¡¢Í¼ÐνӿںͳÌÐò½Ó¿ÚµÄÇø±ðÓëÁªÏµ 5£®Á˽âÃüÁîÐкͼ¯³É»·¾³ÏÂC³ÌÐòµÄ±àд¼°ÔËÐз½·¨ ¶þ£®ÊµÑ鹤¾ßÓëÉ豸 ÒÑ°²×°Linux²Ù×÷ϵͳµÄ¼ÆËã»ú²¢Í¨¹ýÍøÂçÓëLinux·þÎñÆ÷Á¬½Ó¡£ Èý£®ÊµÑéÄÚÈÝ 1£®ÊìϤ¿ª»úºóµÇ¼½øÈëLinuxϵͳºÍÍ˳öϵͳµÄ¹ý³Ì ÒÔÊʵ±µÄÓû§ÃûÔÚ×°ÓÐLinuxϵͳµÄ¼ÆËã»úÖеǼLinuxϵͳ¡£ £¨1£©µÇ¼ ¿ªÆô¼ÆËã»úµçÔ´£¬¼ÆËã»ú½øÐÐÆô¶¯¹ý³Ì£¬Èç¹û°²×°ÁËX Windows£¬ÏµÍ³Æô¶¯Ê±×Ô¶¯Æô¶¯X Windows£¬X WindowsµÄµÇ¼ÔÚͼÐνçÃæϽøÐС£Í¼1-1ËùʾÊÇGNOMEµÄµÇ¼½çÃ棬Ôڲ˵¥ÖÐÑ¡ÔñºÏÊʵÄÓïÑÔ£¨Language£©ºÍ»á»°£¨Session£©£¬·Ö±ðÊäÈëÓû§Õ˺ţ¨Èçroot£©ºÍÓû§ÃÜÂëºó£¬ÏµÍ³½øÈëͼÐÎÓû§½çÃæ¡£ ͼ1-1 GNOMEµÄµÇ¼½çÃæ ÈôûÓа²×°X Windows£¬»òÓÉÓÚÏÔʾ¿¨µÈÔÒò²»ÄÜÆô¶¯X Windowsʱ£¬¿ÉÒÔÔÚ×Ö·û½çÃ棨Ìáʾ·û״̬£©µÇ¼Linux¡£µ±ÏµÍ³Æô¶¯µ½³öÏÖÌáʾLogin£ºÊ±£¬ÊäÈëÓû§Õ˺ţ¬°´»Ø³µ¼ü£¬³öÏÖPasswordʱ£¬ÊäÈëÓû§ÃÜÂ룬°´»Ø³µ¼ü£¬¼´ÒÔ×Ô¼ºµÄÓû§ÃûµÇ¼µ½LinuxϵͳÖÐÁË¡£ ´Ó×Ö·û½çÃæµÇ¼Linuxϵͳºó£¬»¹¿ÉÒÔÓÃÒÔÏÂÃüÁîÆô¶¯X Windows£º [root@localhost /root]# startx ÔÚͼÐÎÓû§½çÃæÏ£¬Ò²¿ÉÒÔ²»Í˳öX WindowsÖ±½Ó½øÈëÌáʾ·û״̬ʹÓÃLinuxÃüÁÔÚ¡°Ö÷²Ëµ¥¡±ÖÐÑ¡Ôñ¡°ÏµÍ³¹¤¾ß¡úÖնˡ±Ñ¡Ïµ¯³öÈçͼ1-2Ëùʾ´°¿Ú£¬Ôڸô°¿ÚÖпÉÒÔʹÓÃ×Ö·ûÃüÁî¡£ £¨2£©¿ªÊ¼²Ù×÷ ÔÚ×ÀÃæË«»÷¡°´ÓÕâÀ↑ʼ¡±Í¼±ê£¬´ò¿ª¡°Nautilus¡±£¨Start Here£©´°¿Ú£¬Èçͼ1-3Ëùʾ¡£¸Ã´°¿ÚÓС°Ó¦ÓóÌÐò¡±¡¢¡°ÏµÍ³ÉèÖá±¼°¡°Ê×Ñ¡Ï3¸öͼ±ê£¬°üº¬ÁËRedhat Linux 9.0ÖÐ×î³£ÓõŦÄÜ¡£ ͼ1-2 GNOMEµÄÖն˷ÂÕæ³ÌÐò£¨Terminal Emulation Program£© ͼ1-3 GNOMEÖеġ°Start Here¡±´°¿Ú £¨3£©´´½¨Óû§Õ˺Šһ°ãÇé¿öϲ»Ó¦Ö±½ÓÓÃrootÕ˺ŽøÐвÙ×÷¡£ÔÚLinuxÖУ¬¿ÉÒÔΪÿһλÓû§´´½¨Ò»¸ö
Ïà¹ØÎĵµ£º
Linux USBÇý¶¯¿ò¼Ü·ÖÎö£¨Ò»£©
³õ´Î½Ó´¥ÓëOSÏà¹ØµÄÉ豸Çý¶¯±àд£¬¸Ð¾õ»¹Í¦ÓÐÒâ˼µÄ£¬ÎªÁ˲»ÖÁÓÚÍüµô¿´¹ýµÄ¶«Î÷£¬±Ê¼Ç¸ú×ܽᵱȻ²»¿Éȱ£¬¸üºÎ¿öÎÒ¾ö¶¨ÎªÇ¶ÈëʽÂôÃüÁË¡£ºÃ£¬ÑÔ¹éÕý´«£¬ÎÒ˵һ˵Õâ¶Îʱ¼äµÄÊÕ»ñ£¬¸ú´ó¼Ò·ÖÏíÒ»ÏÂLinuxµÄÇý¶¯¿ª·¢¡£µ«Õâ´ÎÖ»ÏÈÕë¶ÔLinuxµÄUSB×Óϵͳ×÷·ÖÎö£¬ÒòΪÖÜÎåÑÐÌÖÀÏ°å´ß» ......
To enable dumps for every daemon:
ulimit -c unlimited >/dev/null 2>&1 (-c maximum size of core files)
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1
Dump for system
:
DAEMON_COREFILE_LIMIT='unlimited'
The same for every daemon (in /etc/sysconfig/_daemon_ ......
ÍøÂç³ÌÐòºÍÆÕͨ³ÌÐò×î´óµÄÇø±ð¾ÍÊÇ,ÍøÂç³ÌÐòÊÇÓÉÁ½²¿·Ö×é³ÉµÄ--server/client.Ò»°ãÇé¿öÏÂ,ÊÇÏÈÔËÐÐserver¶ËÉϵijÌÐò,È»ºóµÈ´ýclient¶ËÉϵijÌÐòÔËÐв¢½¨Á¢Á¬½Ó,server¶ËÉϵijÌÐòÔÚÒ»¸ö¶Ë¿Ú¼àÌý,µÈ´ýclient¶Ë·¢À´µÄÇëÇó.
int socket(int domain,int type,int protocol)
domain:˵Ã÷ͨѶ³ÌÐòËùÔÚÖ÷»úËù²ÉÓõÄͨѶÐÒéÀ ......
zieckey £¨zieckey£Àyahoo.com.cn£©
Ị̈߳¨thread£©¼¼ÊõÔçÔÚ60Äê´ú¾Í±»Ìá³ö£¬µ«ÕæÕýÓ¦ÓöàÏ̵߳½²Ù×÷ϵͳÖÐÈ¥£¬ÊÇÔÚ80Äê´úÖÐÆÚ£¬solarisÊÇÕâ·½ÃæµÄٮٮÕß¡£´«Í³µÄUnixÒ²Ö§³ÖÏ̵߳ĸÅÄµ«ÊÇÔÚÒ»¸ö½ø³Ì£¨process£©ÖÐÖ»ÔÊÐíÓÐÒ»¸öỊ̈߳¬ÕâÑù¶àÏ߳̾ÍÒâζ×Ŷà½ø³Ì¡£
ÏÖÔÚ£¬¶àÏ̼߳ ......
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
int sock_fd;
struct my_addr;
struct ifreq ifr;
unsigned char * addr;
#define ETH_INTERFACE_NAME "e ......