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

LinuxµÄoopsÄں˵÷ÊÔÐÅÏ¢

      Oops¿ÉÒÔ¿´³ÉÊÇÄں˼¶µÄSegmentation Fault¡£Ó¦ÓóÌÐòÈç¹û½øÐÐÁË·Ç·¨ÄÚ´æ·ÃÎÊ»òÖ´ÐÐÁË·Ç·¨Ö¸Á»áµÃµ½SegfaultÐźţ¬Ò»°ãµÄÐÐΪÊÇcoredump£¬Ó¦ÓóÌÐòÒ²¿ÉÒÔ×Ô¼º½Ø»ñSegfaultÐźţ¬×ÔÐд¦Àí¡£Èç¹ûÄÚºË×Ô¼º·¸ÁËÕâÑùµÄ´íÎó£¬Ôò»á´ò³öOopsÐÅÏ¢¡£´¦ÀíÆ÷ʹÓõÄËùÓеØÖ·¼¸ºõ¶¼ÊÇͨ¹ýÒ»¸ö¸´ÔÓµÄÒ³±í½á¹¹¶ÔÎïÀíµØÖ·Ó³Éä¶øµÃµ½µÄÐéÄâµØÖ·(³ýÁËÄÚ´æ¹ÜÀí×Óϵͳ×Ô¼ºËùʹÓõÄÎïÀíµØÖ·)¡£µ±Ò»¸ö·Ç·¨µÄÖ¸Õë±»·ÏÆúʱ£¬ÄÚ´æ·ÖÒ³»úÖƽ«²»ÄÜΪָÕëÓ³ÉäÒ»¸öÎïÀíµØÖ·£¬´¦ÀíÆ÷¾Í»áÏò²Ù×÷ϵͳ·¢³öÒ»¸öÒ³¹ÊÕÏÐźš£Èç¹ûµØÖ·²»ºÏ·¨£¬ÄÇôÄں˽«²»ÄÜÔڸõØÖ·“²¼Ò³”£»ÕâʱÈç¹û´¦ÀíÆ÷´¦ÓÚ³¬¼¶Óû§Ä£Ê½£¬Äں˾ͻáÉú³ÉÒ»ÌõoopsÏûÏ¢¡£
      ½âÊÍÒ»ÏÂËüËù²úÉúµÄ¹ý³Ì£º
1,do_page_fault()£¨arch/i386/mm/fault.c£©¡£Èç¹ûÊÇÄں˽øÐÐÁË·Ç·¨·ÃÎÊ£¬do_page_fault()»áÏÈ´ò³öEIP, PDEµÈÐÅÏ¢£¬ÀýÈ磺
Unable to handle kernel paging request at virtual address f899b670
printing eip:
c01de48c
*pde = 00737067
È»ºóµ÷Óà die("Oops", regs, error_code);ÕâÖ®ºó£¬Èç¹ûϵͳ»¹»î×Å(ÖÁÉÙÒªÂú×ãÁ½¸öÌõ¼þ£º1. ÔÚ½ø³ÌÉÏÏÂÎÄ 2. ûÓÐÉèÖÃpanic_on_oops)£¬»áɱËÀµ±Ç°½ø³Ì£¬µ¼ÖÂËÀ»ú¡£
2,die()£¨arch/i386/kernel/traps.c£©¡£die() Ê×ÏÈ´ò³öÒ»ÐУº
Oops: 0002 [#1]
ÆäÖÐ0002´ú±í´íÎóÂ룬#1´ú±íOops·¢Éú´ÎÊý¡£error_code:
 *      bit 0 == 0 means no page found, 1 means protection fault
 *      bit 1 == 0 means read, 1 means write
 *      bit 2 == 0 means kernel, 1 means user-mode
È»ºó£¬µ÷Óà show_registers(regs) Êä³ö¼Ä´æÆ÷¡¢µ±Ç°½ø³Ì¡¢¶ÑÕ»¡¢Ö¸Áî´úÂëµÈÐÅÏ¢£¬ÒÔ¹©Åжϡ£


Ïà¹ØÎĵµ£º

ÔÚLinuxÏ°²×° Sybase ASE 11.0.3.3

£¨ÉùÃ÷£ºÕâÊÇתÔØ×Ôhttp://www.chinaunix.net/jh/21/1079.html)
´ÓSybaseµÄÕ¾µãÉÏÏÂÔØÁ½¸öÈí¼þ°ü£¬±ÊÕßÏÂÔØÁË11.0.3.3°æ±¾£¬SybaseÄ¿Ç°ÒѾ­ÍƳöÁËASE11.9.2£¬ÓÉ
ÓÚ11.9.2Èí¼þ°üºÜ´ó£¬ÓÉ6¸örpmÈí¼þ°ü×é³É£¬¸÷λ¿ÉÒÔÈ¥ÆäÕ¾µãÏÂÔØ¡£¶ÔÓÚSybase¡¡11.0.3£¬sybaseÌṩÁË
Á½¸örpm¸ñʽµÄÈí¼þ°ü¡£ 
£¨ÕâÁ½¸öÎļþ¿ÉÒÔ¿´ÎÒ²©¿ ......

LinuxÏÂÍü¼ÇMySQL rootÃÜÂëµÄ½â¾ö·½°¸

×î½üʵÑéÊÒÄÚ²¿µÄmysqlµÄrootÃÜÂë±»ÐÞ¸ÄÁË£¬ÐèÒªÏë°ì·¨ÐÞ¸ÄÐÂÃÜÂë¡£·½·¨ÈçÏ£º
1£¬ ¹Ø±Õmysql·þÎñ
/etc/init.d/mysqld stop
2£¬Ê¹ÓÖskip-grant-tablesÑ¡ÏîÆô¶¯MySQL·þÎñ,¿ÉÒÔÐÞ¸Ä/etc/inin.d/mysqld½Å±¾Æô¶¯Î»ÖÃÔö¼Ó´ËÑ¡Ï
vi /etc/init.d/mysqld
ÔÚÏÂÃæÔËÐÐÆô¶¯µÄÓï¾äÀïÔö¼Ó--skip-grant-tables
......

linux ÏÂÓÃCʵÏÖ¡®CAT¡¯µÄ¹¦ÄÜ

linux
ÏÂÓÃCʵÏÖ‘CAT’µÄ¹¦ÄÜ
#include<stdio.h>
int main(int argc,char *argv[]){
FILE *file;
char buf[1024],name[20];
int n;
if(argc != 2){
printf("wrong argument\n");
return 1;
}
file=fopen(argv[1],"r");
if(file==NULL){
printf("Cant't open!\n&quo ......

linux shellÖк¯Êý²ÎÊý¼°Æä±äÁ¿

linuxÖеÄSHELLº¯ÊýÊÇ¿ÉÒÔ´ø²ÎÊýµÄ.
====´úÂë===
#!/bin/bash
function show()
{
echo $0        #·µ»Ø½Å±¾±¾ÉíÃû×Ö¶ø²»ÊǺ¯ÊýÃû
echo $1        #·µ»Øµ÷ÓÃʱµÄµÚÒ»¸ö²ÎÊý
.
.
.
echo $9         ......

linuxÓû§(user)ºÍÓû§×é(group)

add user£º
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test
add user to a group:
e.g. add nexus to admin
useradd -g admin nexus
default role£º
[root@localhost ~]# useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
de ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ