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

Redhat LinuxÍø¿¨ÅäÖÃÓë°ó¶¨


Redhat LinuxµÄÍøÂçÅäÖ㬻ù±¾ÉÏÊÇͨ¹ýÐ޸ļ¸¸öÅäÖÃÎļþÀ´ÊµÏֵģ¬ËäȻҲ¿ÉÒÔÓÃifconfigÀ´ÉèÖÃIP£¬ÓÃrouteÀ´ÅäÖÃĬÈÏÍø¹Ø£¬ÓÃhostnameÀ´ÅäÖÃÖ÷»úÃû£¬µ«ÊÇÖØÆôºó»á¶ªÊ§¡£
Ïà¹ØµÄÅäÖÃÎļþ
/ect/hosts
ÅäÖÃÖ÷»úÃûºÍIPµØÖ·µÄ¶ÔÓ¦
/etc/sysconfig/network
ÅäÖÃÖ÷»úÃûºÍÍø¹Ø
/etc/sysconfig/network-scripts/ifcfg-eth0
eth0ÅäÖÃÎļþ£¬eth1ÔòÎļþÃûΪifcfg-eth1£¬ÒÔ´ËÀàÍÆ
Ò»¡¢Íø¿¨ÅäÖÃ
¼ÙÉèÎÒÃÇÒªÅäÖÃÖ÷»úÃûΪtest£¬eth0µÄIPµØÖ·192.168.168.1/24£¬Íø¹ØµØÖ·192.168.168.250
Ôò/etc/sysconfig/networkÎļþÄÚÈÝÈçÏ£º
NETWORKING=yes
HOSTNAME=test
GATEWAY=192.168.168.250
eth0¶ÔÓ¦µÄÅäÖÃÎļþ/etc/sysconfig/network-scripts/ifcfg-eth0ÄÚÈÝÈçÏ£º
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.168.1
NETMASK=255.255.255.0
TYPE=Ethernet
ONBOOT=yes
¶þ¡¢µ¥Íø¿¨°ó¶¨¶à¸öIP
ÓÐʱ£¬ÎÒÃÇÐèÒªÔÚÒ»¿éÍø¿¨ÉÏÅäÖöà¸öIP£¬ÀýÈ磬ÔÚÉÏÃæµÄÀý×ÓÖУ¬ÎÒÃÇ»¹ÐèҪΪeth0ÅäÖÃIP 192.168.168.2ºÍ192.168.168.3¡£
ÄÇôÐèÒªÔÙÔÚ/etc/sysconfig/network-scriptsÏÂн¨Á½¸öÅäÖÃÎļþ£º
ifcfg-eth0:0
ÄÚÈÝÈçÏ£º
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=192.168.168.2
NETMASK=255.255.255.0
ONBOOT=yes
ifcfg-eth0:1
ÄÚÈÝÈçÏ£º
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.168.3
NETMASK=255.255.255.0
ONBOOT=yes
Èý¡¢¶à¸öÍø¿¨°ó¶¨³ÉÒ»¿éÐéÄâÍø¿¨
ΪÁËÌṩÍøÂçµÄ¸ß¿ÉÓÃÐÔ£¬ÎÒÃÇ¿ÉÄÜÐèÒª½«¶à¿éÍø¿¨°ó¶¨³ÉÒ»¿éÐéÄâÍø¿¨¶ÔÍâÌṩ·þÎñ£¬ÕâÑù¼´Ê¹ÆäÖеÄÒ»¿éÎïÀíÍø¿¨³öÏÖ¹ÊÕÏ£¬Ò²²»»áµ¼ÖÂÁ¬½ÓÖжϡ£±ÈÈçÎÒÃÇ¿ÉÒÔ½«eth0ºÍeth1°ó¶¨³ÉÐéÄâÍø¿¨bond0
Ê×ÏÈÔÚ/etc/sysconfig/network-scripts/Ï´´½¨ÐéÄâÍø¿¨bond0µÄÅäÖÃÎļþifcfg-bond0
£¬ÄÚÈÝÈçÏÂ
DEVICE=bond0
BOOTPROTO=none
BROADCAST=192.168.168.255
IPADDR=192.168.168.1
NETMASK=255.255.255.0
NETWORK=192.168.168.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.168.250
USERCTL=no
È»ºó·Ö±ðÐÞ¸Äeth0ºÍeth1µÄÅäÖÃÎļþ
ifcfg-eth0ÄÚÈÝ£º
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
ifcfg-eth1ÄÚÈÝ
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
ÒòΪlinuxµÄÐéÄâÍø¿¨ÊÇÔÚÄÚºËÄ£¿éÖÐʵÏֵģ¬ËùÒÔÐèÒª°²×°µÄʱºòÒѾ­×°ºÃ¸Ãmodule¡£ÔÚ/etc/modules.conf
ÎļþÖÐÌí¼ÓÈçÏÂÄÚÈÝ£¨Èç¹ûûÓиÃÎļþ


Ïà¹ØÎĵµ£º

LinuxÖ¸Áî Îļþ·ÃÎÊȨÏÞ

[root@localhost root]# ls -l
»áÏÔʾĿ¼»òÎļþÐÅÏ¢£ºdrwxr-xr-x 2 root root 4096 06-29 14:30 Test
                               -rwxr--r-- 2 root roo ......

[ת]Ïê½âLinux 2.6ÄÚºËÐÂÎļþϵͳ±ä»¯»úÖÆ£¨inotify£©

Ô­ÎĵØÖ·£ºhttp://soft.yesky.com/os/lin/326/2237826.shtml
±¾ÎÄÏêϸµØ½éÉÜÁËÔÚ Linux 2.6.13 ÄÚºËÖÐÐÂÒýÈëµÄÎļþϵͳ±ä»¯Í¨Öª»úÖÆ inotify£¬²¢¾ÙÀý˵Ã÷ÁËËüµÄʹÓÃÓëµäÐÍÓ¦Óð¸Àý¡£
Ò»¡¢ÒýÑÔ
ÖÚËùÖÜÖª£¬Linux ×ÀÃæϵͳÓë MAC »ò Windows Ïà±ÈÓÐÐí¶à²»ÈçÈËÒâµÄµØ·½£¬ÎªÁ˸ÄÉÆÕâÖÖ×´¿ö£¬¿ªÔ´ÉçÇøÌá³öÓû§Ì¬ÐèÒªÄÚºËÌṩ ......

Linux¾²Ì¬¿âºÍ¶¯Ì¬¿â

¿â´Ó±¾ÖÊÉÏÀ´ËµÊÇÒ»ÖÖ¿ÉÖ´ÐдúÂëµÄ¶þ½øÖƸñʽ£¬¿ÉÒÔ±»ÔØÈëÄÚ´æÖÐÖ´ÐС£¿â·Ö¾²Ì¬¿âºÍ¶¯Ì¬¿âÁ½ÖÖ¡£ 
¾²Ì¬¿âºÍ¶¯Ì¬¿âµÄÇø±ð
1. ¾²Ì¬º¯Êý¿â
    ÕâÀà¿âµÄÃû×ÖÒ»°ãÊÇlibxxx.a£»ÀûÓþ²Ì¬º¯Êý¿â±àÒë³ÉµÄÎļþ±È½Ï´ó£¬ÒòΪÕû¸ö º¯Êý¿âµÄËùÓÐÊý¾Ý¶¼»á±»ÕûºÏ½øÄ¿±ê´úÂëÖУ¬ËûµÄÓŵã¾ÍÏÔ¶øÒ×¼ûÁË£¬¼´±àÒëºóµÄÖ ......

linuxÏÂgtkÖÐʹÓÃCÁ¬½Ómysql

Code:
1.»·¾³ÅäÖÃ
Ò»°ãÇé¿öÏ°²×°ÁËMySQLµÄ»úÆ÷ºÜÉÙ°²×°¿ª·¢°ü£¬Õâ¸öÐèҪעÒâ¡£Ò²¾ÍÊÇÄúÐèÒªÔÚ³ÌÐòÖаüº¬ÕâÑùµÄÓï¾ä£º
#include <mysql.h>
Èç¹ûÔÚ±àÒëµÄʱºòÌáʾº¬ÓÐÀàËÆÓÚÕÒ²»µ½ mysql.h µÄÐÅÏ¢£¬Õâ¾Í˵Ã÷ÄúûÓа²×°Ïà¹Ø¿ª·¢°ü¡£
»¹ÓÐÄú±ØÐ뽨Á¢Ò»¸öÊý¾Ý¿âÓëһЩ±í£¬Õâ¸öÔÚ±¾ÎÄÖлáʹÓá£
2.ÎÒÃÇÏÈÁ´½ÓÊ ......

ARM ÓëǶÈëʽlinuxµÄÈëÃŽ¨Òé

Ô­Îijö´¦£ºhttp://blog.mcuol.com/User/hzami/Article/8116_1.htm
ÓÉÓںܶàÈË×ÜÎÊÕâ¸öÎÊÌ⣬ËùÒÔÕâÀï×öÒ»¸ö×ܽáÎĵµ¹©´ó¼Ò²Î¿¼¡£ÕâÀï±ØÐëÏÈ˵Ã÷£¬ÒÔϵIJ½Ö趼ÊÇÕë¶ÔLinuxϵͳµÄ£¬²¢²»ÃæÏòWinCE¡£Ò²ÐíÄã
»á×¢Òâµ½£¬ÏÖÔÚ×öǶÈëʽµÄÈËÖУ¬×ölinuxÑо¿µÄÈËÔ¶±È×öWinCEµÄÈ˶࣬ºÜ¶à²ú¼ÒÌṩµÄ×ÊÁÏÒ²ÊÇÒÔlinuxΪÖ÷¡£ÎÒÒ»Ö±ºÜÄÑ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ