Linux Óû§ÃûºÍÃÜÂëÒÅÍü
²ËÄñ¾ÍÊDzËÄñ£¬Ê²Ã´ÎÊÌⶼÄÜÓöµ½°¡¡£¡£¸ÕÏëѧϰÏÂlinux ¾ÍÓöµ½ÕâÖְ׳ÕÎÊÌ⣬°Ù¶ÈÏ »¹ÊÇÓнáÂÛµÄÂ𡣺ǺÇ
ÒÔÏÂΪ²ÎÕյĽâ¾ö·½°¸£º
¿ÉÒÔÒÔµ¥Ò»Ê¹ÓÃÕßµÄģʽµÇÈ룬ȻºóÔÙ½¨Á¢Ò»¸öеÄrootÃÜÂë¡£
Òª½øÈ뵥һʹÓÃÕßģʽ£¬ÇëÏÈÖØÐÂÆð¶¯ÄúµÄµçÄÔ£¬¼ÙÈçÄúʹÓÃÔ¤µ÷µÄ¿ª¹Ø¹ÜÀí³ÌʽGRUB£¬Äú¿ÉÒÔÖ´ÐÐÏÂÁеĶ¯×÷À´½øÈ뵥һʹÓÃÕßģʽ£º
1¡¢ÔÚ¿ª»ú¹ÜÀí³ÌʽµÄÑ¡µ¥ÖУ¬ÊäÈë[e]ÒÔ½øÈë±à¼Ä£Ê½¡£
2¡¢ÔÙÀ´Äú»á¿´µ½¿ª»úµÄÁÐ±í¡£Ñ°ÕÒ¿´ÆðÀ´ÏñÒÔΪÕâÒ»ÐеļǼ£º
kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2
3¡¢°´Ï·½Ïò¼üÖ±µ½¸ÃÐÐÒѾ±»·´°×Ñ¡È¡£¬ÔÙ°´ÏÂ[e]
4¡¢ÏÈ°´Ï¿հ׼üÒÔÔö¼ÓÒ»¸ö¿Õ°×£¬È»ºó¼ÓÈësingleµÈ×Öµ½ÕâÒ»ÐеÄ×îºó£¬ÒÔ¸æËßGRUBÀ´¿ª»ú½øÈëLINUXµÄµ¥Ò»Ä£Ê½£¬ÔÙ°´ÏÂ[Enter]À´Ê¹±ä¸üÉúЧ¡£
5¡¢½«»á±»´ø»Øµ½±à¼Ä£Ê½µÄ»Ãæ¡£´ÓÕâÀ°´ÏÂ[b]Ö®ºó£¬GRUB½«»á¿ª»ú½øÈ뵥һʹÓÃÕßLINUXģʽ£¬ÔÚËüÍê³ÉϵͳÔØÈëºó£¬½«»á¿´µ½ÀàËÆÏÂÁеÄshellÌáʾ·ûºÅ
sh-2.05#
6¡¢ÏÖÔÚ¿ÉÒÔ¸ü¸ÄrootµÄÃÜÂ룬ÊäÈëpasswd root»Ø³µ
bash# passwd root
7¡¢ÊäÈëеÄÃÜÂ룬ȻºóÐèÒªÔÙÖØÐÂÊäÈëһϣ¬ÒÔÈ·ÈÏ£¬ÔÚÍê³Éºó£¬ÃÜÂëÒѾ¸ü¸Ä£¬¿ÉÒÔÖØÐÂÆ𶯵çÄÔ£¬ÔÙÒÔroot½øÐеÇÈë¡£
ÏÖÔںܶàÈ˶¼ÔÚ°²×°linuxµÄʱºò¶¼Ñ¡Ôñ°²×°µÄÊÇGRUP,ÔÚGRUPϵÄÃÜÂëÈ¡»ØÈçÏÂ:
(½øÈëlinuxϵݲȫģʽ----µ¥Óû§Ä£Ê½Ð޸ķ¨)
1. ÔÚ½øÈëGRUP½çÃæºó,¿ìËÙ°´ÏÂ"e"¼ü,½øÈëGRUP ±à¼½çÃæ
2. ÓÃϼýÍ·¼üÑ¡ÖÐ"kernel /vmlinuz-2.4.20-8 ro root=LABEL=/"ÉÏ(ÒÔredhatlinux 9ΪÀý),°´ÏÂ"e"¼ü,³öÏÖ,"grub edit> kernel /vmlinuz-2.4.20-8 ro root=LABEL=/".
3.ÔÚÈçÉÏʾµÄºóÃæ¼ÓÈë: (¿Õ¸ñ)single,Àý:,"grub edit> kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ single".»Ø³µ
4.°´ÏÂ"b"¼üÒýµ¼,½øÈëµ¥Óû§Ä£Ê½.
5.ÊäÈëÐÞ¸ÄÃÜÂëÃüÁî:passwd,Ð޸ĵ±Ç°rootµÄÃÜÂë¼´¿É,²»ÓÃÐÞ¸ÄÆäËûÎļþ,
6.exit,Í˳ö²¢ÖØÐÂÆô¶¯,ÓÃÐÂÃÜÂëµÇ½, ^&^
½â¾ö·½°¸ÒýÓÃÀ´Ô´ÓÚ http://hi.baidu.com/using/blog/item/fca4d42abe42712dd42af11d.html ¸ÐлǰÕßµÄÔâÓö°¡£¡ºÇºÇ
Ïà¹ØÎĵµ£º
[IBM][CLI Driver] SQL30081N ¼ì²âµ½Í¨ÐÅ´íÎó¡£ÕýÔÚʹÓõÄͨÐÅÐÒ飺"TCP/IP"¡£ÕýÔÚʹÓõÄͨÐÅAPI£º"SOCKETS"¡£¼ì²âµ½´íÎóµÄλÖãº"202.106.195.29"¡£¼ì²âµ½´íÎóµÄͨÐź¯Êý£º"connect"¡£ÐÒéÌض¨µÄ´íÎó´úÂ룺"10060"¡¢"*"¡¢"*"¡£ SQLSTATE=08001
½â¾ö°ì·¨£º
µ½C:\WINDOWS\system32\drivers\etc\Ï£¬´ò¿ªhostsÎļþ£¬ÔÚÎļ ......
Ò» ¡¢LinuxÎļþ½á¹¹
¡¡¡¡Îļþ½á¹¹ÊÇÎļþ´æ·ÅÔÚ´ÅÅ̵ȴæÖüÉ豸ÉϵÄ×éÖ¯·½·¨¡£Ö÷ÒªÌåÏÖÔÚ¶ÔÎļþºÍĿ¼µÄ×éÖ¯ÉÏ¡£
¡¡¡¡Ä¿Â¼ÌṩÁ˹ÜÀíÎļþµÄÒ»¸ö·½±ã¶øÓÐЧµÄ;¾¶¡£
¡¡¡¡LinuxʹÓñê×¼µÄĿ¼½á¹¹£¬ÔÚ°²×°µÄʱºò£¬°²×°³ÌÐò¾ÍÒѾΪÓû§´´½¨ÁËÎļþϵͳºÍÍêÕû¶ø¹Ì¶¨µÄĿ¼×é³ÉÐÎʽ£¬²¢Ö¸¶¨ÁËÿ¸öĿ¼µÄ×÷ÓúÍÆäÖеÄÎļþÀàÐÍ ......
1¡¢Éý¼¶ÏµÍ³
yum check-update
yum update
2¡¢°²×°Ò»Ð©³£ÓõŤ¾ß
yum install ntp iptraf sysstat screen subversion wget bzip2 nfs-utils vim-common
3¡¢ÉèÖÃÿÌì×Ô¶¯ºË׼ʱ¼ä
# crontab -e
0 * * * * /usr/sbin/ntpdate 210.72.145.44
:wq
4¡¢°²×°Ò»Ð©¿ª·¢°ü
# yum install make gcc gcc-c++ libjpeg-devel ......
¹¦ÄÜÃèÊö£º
»ñȡһЩÎļþÏà¹ØµÄÐÅÏ¢¡£
Ó÷¨£º
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int stat(const char *path, struct stat *buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *path, struct stat *buf);
²ÎÊý£º
path£ºÎļþ ......
Oops¿ÉÒÔ¿´³ÉÊÇÄں˼¶µÄSegmentation Fault¡£Ó¦ÓóÌÐòÈç¹û½øÐÐÁË·Ç·¨ÄÚ´æ·ÃÎÊ»òÖ´ÐÐÁË·Ç·¨Ö¸Á»áµÃµ½SegfaultÐźţ¬Ò»°ãµÄÐÐΪÊÇcoredump£¬Ó¦ÓóÌÐòÒ²¿ÉÒÔ×Ô¼º½Ø»ñSegfaultÐźţ¬×ÔÐд¦Àí¡£Èç¹ûÄÚºË×Ô¼º·¸ÁËÕâÑùµÄ´íÎó£¬Ôò»á´ò³öOopsÐÅÏ¢¡£´¦ÀíÆ÷ʹÓõÄËùÓеØÖ·¼¸ºõ¶¼ÊÇͨ¹ýÒ»¸ö¸´ÔÓµÄÒ³± ......