linux 1ºÅ½ø³Ì
1ºÅ½ø³Ì£¬pidΪ1µÄ½ø³Ì£¬ÓÖ³Æinit½ø³Ì¡£
¡¡¡¡linuxϵͳÆô¶¯ºó£¬µÚÒ»¸ö±»´´½¨µÄÓû§Ì¬½ø³Ì¾ÍÊÇinit½ø³Ì¡£ËüÓÐÁ½ÏîʹÃü£º
¡¡¡¡1¡¢Ö´ÐÐϵͳ³õʼ»¯½Å±¾£¬´´½¨Ò»ÏµÁеĽø³Ì(ËüÃǶ¼ÊÇinit½ø³ÌµÄ×ÓËï);
¡¡¡¡2¡¢ÔÚÒ»¸öËÀÑ»·ÖеȴýÆä×Ó½ø³ÌµÄÍ˳öʼþ£¬²¢µ÷ÓÃwaitidϵͳµ÷ÓÃÀ´Íê³É“ÊÕʬ”¹¤×÷;
¡¡¡¡init½ø³Ì²»»á±»ÔÝÍ£¡¢Ò²²»»á±»É±ËÀ(ÕâÊÇÓÉÄÚºËÀ´±£Ö¤µÄ)¡£ËüÔڵȴý×Ó½ø³ÌÍ˳öµÄ¹ý³ÌÖд¦ÓÚTASK_INTERRUPTIBLE״̬£¬ “ÊÕʬ”¹ý³ÌÖÐÔò´¦ÓÚTASK_RUNNING״̬¡£
pidΪ0¡¢1µÄ½ø³ÌÊÇɱ²»µôµÄ£¬
ϵͳ½øÐгõʼ»¯µÄʱºò½«ÕâÁ½¸ö½ø³ÌµÄËùÓÐÐźÅÆÁ±ÎµôÁË£¬
ͨ¹ýkill·¢Ë͸ø0¡¢1µÄÐźű»ºöÂÔ£¬²»»áÓÐÈκÎ×÷Óá£
¶øÆÕͨ½ø³ÌÓÐÁ½¸öÐźÅÊDz»ÄܺöÂԵģº
SIGKILL SIGSTOP
Ïà¹ØÎĵµ£º
#!/bin/sh ÊÇ˵Ã÷¸Ã½Å±¾µ÷ÓõÄshellµÄÀàÐÍ
#chkconfig: 2345 80 05 ÆäÖÐ2345ÊÇÖ¸Ã÷·þÎñµÄÔËÐеȼ¶£¬80±íÃ÷ÊÇϵͳÆô¶¯Ê±ÒªÆô¶¯µÚ80ºÅ·þÎñ£¨·þÎñºÅ¿ÉÒÔÖظ´£©¡£05±íÃ÷ÊÇϵͳ¹Ø±ÕҪֹͣµÄ·þÎñºÅ¡£
#descrīption: service ÕâÀïµÄserviceÄã¿ÉÒÔËæ±ãÌí£¬µ«±ØÐëÓÐ
case $1 in ÕâÀïµÄcaseÊǸöÑ¡ÔñÓ ......
ת×Ô£ºhttp://www.oracle.com/technology/global/cn/pub/articles/calish-find.html
Linux find
ÃüÁîÊÇËùÓÐ Linux ÃüÁîÖÐ×îÓÐÓõÄÒ»¸ö£¬Í¬Ê±Ò²ÊÇ×î»ìÂÒµÄÒ»¸ö¡£ËüºÜÄÑ£¬ÒòΪËüµÄÓï·¨ÓëÆäËû
Linux ÃüÁîµÄ±ê×¼Óï·¨²»Í¬¡£µ«ÊÇ£¬ËüºÜÇ¿´ó£¬ÒòΪËüÔÊÐíÄú°´ÎļþÃû¡¢ÎļþÀàÐÍ¡¢Óû§ÉõÖÁÊÇʱ¼ä´Á²éÕÒÎļþ¡£Ê¹Óà find
̟産 ......
1 ϵͳƽ̨µÄÓ²¼þ½á¹¹
±¾ÎÄʹÓõÄϵͳƽ̨Ӳ¼þ¹¦ÄÜ¿òͼÈçͼ1Ëùʾ£¬¸Ãƽ̨²ÉÓÃSamsung¹«Ë¾µÄ´¦ÀíÆ÷S3C2410¡£¸Ã´¦ÀíÆ÷ÄÚ²¿¼¯³ÉÁËARM¹«Ë¾ARM920T´¦ ÀíÆ÷ºËµÄ32b΢¿ØÖÆÆ÷£¬×ÊÔ´·á¸»£¬´ø¶ÀÁ¢µÄ16kBµÄÖ¸ÁîCacheºÍ16kBÊý¾ÝCache£¬LCD¿ØÖÆÆ÷¡¢RAM¿ØÖÆÆ÷£¬NANDÉÁ´æ¿ØÖÆÆ÷£¬3· UART¡¢4·DMA¡¢4·´øPWMµÄTimer¡¢²¢ÐÐI/O¿Ú¡¢8·10λA ......
¿´Ô´´úÂë¡£
#include <linux/kernel.h>
#include <linux/module.h>
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
int init_module()
{
printk("Hello, I'm kernel\n");
return 0;
}
void cleanup_module()
{
printk("I'm kernel, bye\n");
} ......
LinuxÏ°²×°ÍêºóOracle¿Í»§¶Ëºóµ÷ÓÃOCI£¬±àÒëûÓÐÎÊÌ⣬ÔËÐÐʱ·¢ÏÖ
cannot open shared object file libclntsh.so.10.1: No such file or directory
¾¹ý²éÕÒ·¢ÏÖÊÇoracleµÄ·¾¶Ã»ÓÐÉèÖÃ
ÊäÈë:
locate libclntsh.so.10.1
»ñÈ¡¶ÔÓÚ·¾¶
/app/oracle/oracle/product/10.2.0/db_1/lib/libclntsh.so.10.1
±à¼/etc/ld. ......