Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : linux

linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®½ø³Ì2


Äܱ»¶ÀÁ¢µ÷¶ÈµÄÿ¸öÖ´ÐÐÉÏÏÂÎͼ±ØÐëÓµÓÐ×Ô¼ºµÄ½ø³ÌÃèÊö·û¡£½ø³ÌºÍ½ø³ÌÃèÊö·ûÖ®¼äÓÐÑϸñµÄ¶ÔÓ¦¹ØÏµ£¬Ê¹ÓÃ32λ½ø³ÌÃèÊö·ûµØÖ·±êʶ£¬½ø³ÌÃèÊö·ûÖ¸ÕëÖ¸ÏòÕâЩµØÖ·£¬Äں˶Խø³ÌµÄ´ó²¿·ÖÒýÓÃÊÇͨ¹ý½ø³ÌÃèÊö·ûÖ¸Õë½øÐеġ£
¿ÉÒÔʹÓÃpid£¨½ø³Ì±êʶ·û£©À´±ê¼Ç½ø³Ì£¬´æ·ÅÔÚ×Ö¶ÎpidÖУ¬PID±»Ë³Ðò±àºÅ£¬Ð´´½¨µÄ½ø³ÌPIDͨ³£ÊÇǰһ¸ö½ø³ÌµÄPID¼ÓÒ»¡£
#define PID_MAX_DEFAULT 0x8000
Ò»¸öÏß³Ì×âÖеÄËùÓÐÏß³ÌʹÓú͸ÃÏß³Ì×éµÄÁìÍ·Ị̈߳¨thread group leader£©ÏàͬµÄPID£¬Ò²¾ÍÊǸÃ×éÖеÚÒ»¸öÇáÁ¿¼¶½ø³ÌµÄPID,±»´æÈë½ø³ÌÃèÊö·ûµÄtgid×Ö¶ÎÖС£getpid()ϵͳµ÷Ó÷µ»Øµ±Ç°½ø³ÌµÄtgidÖµ¶ø²»ÊÇpidµÄÖµ£¬Òò´ËÒ»¸ö¶àÏß³ÌÓ¦ÓõÄËùÓÐÏ̹߳²ÏíÏàͬµÄPID¡£¾ø´ó¶àÊý½ø³Ì¶¼ÊôÓÚÒ»¸öÏß³Ì×飬°üº¬µ¥Ò»µÄ³ÉÔ±£»Ïß³Ì×éÁìÍ·Ïß³ÌÆätgidµÄÖµÓëpidµÄÏàͬ£¬Òò¶øgetpid(£©ÏµÍ³µ÷ÓöÔÕâÀà½ø³ÌËùÆäµÄ×÷ÓúÍÒ»°ã½ø³ÌÊÇÒ»ÑùµÄ¡£
¶Ôÿ¸ö½ø³ÌÀ´Ëµ£¬linux°ÑÁ½¸ö²»Í¬µÄÊý¾Ý½á¹¹½ô´ÕµØ´æ·ÅÔÚÒ»¸öµ¥¶ÀΪ½ø³Ì·ÖÅäµÄ´æ´¢ÇøÓòÄÚ£ºÒ»¸öÄÚºË̬µÄ½ø³Ì¶ÑÕ»£¬ÁíÒ»¸öÊǽô°¤½ø³ÌÃèÊö·ûµÄСÊý¾Ý½á¹¹thread_info£¬½Ð×öÏß³ÌÃèÊö·û£¬Õâ¿é´æ´¢ÇøÓòµÄ´óСͨ³£Îª8192¸ö×Ö½Ú£¨Á½¸öÒ³¿ò£©¡£ÄÚºËÈÃÕâ8k¿Õ¼äÕ¼¾ÝÁ¬ÐøµÄÁ½¸öÒ³¿ò²¢ÈõÚÒ»¸öÒ³¿òµÄÆ ......

QT4.6+QT Creator1.3°²×°£¨Linux£©

1¡¢Ê×ÏÈ´Óhttp://qt.nokia.com/downloads ÏÂÔØ“Qt SDK for Linux”£¬°üÀ¨ÁËQT4.6ºÍQT Creator1.3¡£ Download Qt SDK for Linux/X11 32-bit** (353 MB)

2¡¢ÐÞ¸ÄÎļþqt-sdk-linux-x86-opensource-2009.05.binµÄÊôÐÔ£¬ÈÃÆä¿ÉÖ´ÐУº
chmod u+x qt-sdk-linux-x86-opensource-2009.05.bin
3¡¢Ë«»÷qt-sdk-linux-x86-opensource-2009.05.bin½øÐа²×°£¬»áÈÃÑ¡Ôñ·¾¶£¬¿ÉÒÔʹÓÃĬÈÏ·¾¶£º/opt/qtsdk-2009.05/
4¡¢°²×°Íê³É¡£
5¡¢ÆÈ²»¼°´ý£¬´ò¿ª×ÀÃæÉϵÄQT CreatorÆô¶¯Æ÷¡£
6¡¢½¨Á¢Ò»¸ö¼òµ¥µÄQT GUI Application¡££¨»òÕß´ò¿ªÒ»¸ö×Ô´øµÄÀý×Ó£©¡£
7¡¢±àÒ룬³öÏÖÒÔÏ´íÎó£º
collect2: ld returned 1 exit status £¨collect2
: ld ·µ»Ø
1
£©
8¡¢¿´ÄǸö“compile” ÄÇÀ¸ÀïÃæÓоßÌåµÄÊÂÔõô¸öÁ´½Ó´íÎó£¬ÈçÏ£º
undefined reference to 'FcFreeTypeQueryFace'
9¡¢ÉÏÍø²éѯµÃµ½ÈçϽâ¾ö·½°¸QT for linux µÄ´íÎó undefined reference to 'FcFreeTypeQueryFace' µÄ½â¾ö·½·¨
´Ó http://www.fontconfig.org/release/
ÏÂÔØ×îеÄ2.6.0µÄÔ´Âë
½â¿ªºó°´ÕÕINSTALLÎļþÀïµÄ˵Ã÷°²×°ÁËfontconfig£¬È»ºó¾Í¿ÉÒÔÕý³£±àÒë³ÌÐòÀ²£º
½øÈë½â¿ªµÄfontconfigĿ¼£¬¿ÉÒ ......

Eclipse+QT4.6(Linux)

1¡¢Ê×ÏÈÊÇQT4.6µÄ°²×°£¬²Î¼ûQT4.6+QT Creator1.3°²×°£¨Linux£©
2¡¢ÔٲμûEclipse+Qt4ÅäÖò½Ö裨Linux°æ£©
  ½«QT4.6µÄ·¾¶£¬È磺
/opt/qtsdk-2009.05/qt/bin/
3¡¢OK£¡
4¡¢¿ÉÒÔͬʱʹÓÃEclipseºÍQT Creator Á½¸öIDEÁË£¬ºÇºÇ¡£ ......

LinuxÄں˼°ARMµÄÄÚ´æ¹ÜÀí

»¶Ó­»Øµ½KernelÖÐ……
¼ÌÐøËµ__vet_atagsº¯Êý£¬Õâ¸öº¯ÊýÈԾɶ¨ÒåÔÚarch\arm\kernel\head-common.sÎļþÖУº
/* Determine validity of the r2 atags pointer.  The heuristic requires
 * that the pointer be aligned, in the first 16k of physical RAM and
 * that the ATAG_CORE marker is first and present.  Future revisions
 * of this function may be more lenient with the physical address and
 * may also be able to move the ATAGS block if necessary.
 *
 * r8  = machinfo
 *
 * Returns:
 *  r2 either valid atags pointer, or zero
 *  r5, r6 corrupted
 */
__vet_atags:
tst r2, #0x3 @ aligned?
bne 1f
ldr r5, [r2, #0] @ is first tag ATAG_CORE?
subs r5, r5, #ATAG_CORE_SIZE
bne 1f
ldr r5, [r2, #4]
ldr r6, =ATAG_CORE
cmp r5, r6
bne 1f
mov pc, lr @ atag pointer is ok
1: mov r2, #0
mov pc, lr
ENDPROC(__vet_atags)
ÓÉTIµÄоƬÊÖ²áÖª£¬OMAP3430µÄSDRAMµØÖ·¿Õ¼ä×Ô0x80000000Æð£¬¼Æ1GB¿Õ¼ä ......

linux϶¯Ì¬¿âÓ뾲̬¿â

ÌåÑéÒ»ÏÂlinuxϱàдºÍʹÓö¯Ì¬¿âÓ뾲̬¿â£¬·¶Àý£ºhelloworld³ÌÐò¡£
Ê×Ïȱàд¾²Ì¬¿â£º
hellos.h
 #ifndef _HELLO_S_H
#define _HELLO_S_H
void prints(char *str);
#endif
 
hellos.c
#include "hellos.h"
#include <stdio.h>
void prints(char *str)
{
printf("print in static way:%s",str);
}
 
¿ªÊ¼±àÒë³É¾²Ì¬¿â£º
gcc -c -o hellos.o hellos.c
ar cqs libhellos.a hellos.o
main.c
#include "hellos.h"
int main(void)
{
char *text = "hello,world\n";
prints(text);
}

ʹÓþ²Ì¬¿â±àÒ룺gcc -o hello main.c -static -L. -lhellos
È»ºóÔËÐÐhello,Êä³ö£º
print in static way: Hello World!
ɾ³ý
libhellos.aºÍ
hellos.*ºó, ³ÌÐòÈÔÈ»Õý³£ÔËÐС£
±àд¶¯Ì¬¿â
£º
hellod.h
#ifndef _HELLO_D_H
#define _HELLO_D_H
void printd(char *str);
#endif

hellod.c
#include "hellod.h"
#include <stdio.h>
void printd(char *str)
{
printf("print in dynamic way:%s",str);
}

±àÒëÉú³É¶¯Ì¬¿â£ºgcc -shared -o libhellod.so ......

linuxÏÂÍêȫɾ³ýOracle

1.ÓÃoracleÓû§µÇ¼
Èç¹ûÒªÔٴΰ²×°£¬ ×îºÃÏÈ×öһЩ±¸·Ý¹¤×÷¡£
°üÀ¨Óû§µÄµÇ¼½Å±¾£¬Êý¾Ý¿â×Ô¶¯Æô¶¯¹Ø±ÕµÄ½Å±¾£¬ºÍListener×Ô¶¯Æô¶¯µÄ½Å±¾¡£
ÒªÊÇÓпÉÄÜÁ¬´´½¨Êý¾Ý¿âµÄ½Å±¾Ò²±£´æÏÂÀ´
2.ʹÓÃSQL*PLUSÍ£Ö¹Êý¾Ý¿â
[oracle@ora920 oracle]$ sqlplus /nolog
SQL> connect / as sysdba
SQL> shutdown [immediate]
SQL> exit
3.Í£Ö¹Listener
[oracle@ora920 oracle]$ lsnrctl stop
4.Í£Ö¹HTTP·þÎñ
[oracle@ora920 oracle]$ $ORACLE_HOME/Apache/Apache/bin/apachectl stop
5.ÓÃsu»òÕßÖØÐµÇ¼µ½root(ÈçÏëÖØÐ°²×°¿ÉÒÔ±£ÁôoracleÓû§£¬Ê¡µÃÊäÈë»·¾³±äÁ¿ÁË)
6.½«°²×°Ä¿Â¼É¾³ý
[root@ora920 /root]# rm -rf /opt/oracle/
7.½«/usr/binϵÄÎļþɾ³ý
[root@ora920 /root]# rm /usr/bin/dbhome
[root@ora920 /root]# rm /usr/bin/oraenv
[root@ora920 /root]# rm /usr/bin/coraenv
8.½«/etc/oratabɾ³ý
[root@ora920 /root]# rm /etc/oratab
9.½«/etc/oraInst.locɾ³ý
[root@ora920 /root]# rm /etc/oraInst.loc
10.½«oracleÓû§É¾³ý(ÈôÒªÖØÐ°²×°,¿ÉÒÔ²»É¾³ý)
[root@ora920 /root]# userdel –r oracle
11.½«Óû§×éɾ³ý(ÈôÒªÖØÐ°²×°,¿ÉÒÔ²»É¾³ý ......
×ܼǼÊý:5772; ×ÜÒ³Êý:962; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [651] [652] [653] [654] 655 [656] [657] [658] [659] [660]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ