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

Linux ƽ̨ÉϵÄÈí¼þ°ü¹ÜÀí

¼¶±ð£º ³õ¼¶
½­ Ò»·«
(jiangyif@cn.ibm.com
), Èí¼þ¹¤³Ìʦ , IBM
·¶ ÓñÕä
, ¸ß¼¶Èí¼þ¹¤³Ìʦ, IBM
Ëï ÔÃ
, Èí¼þ¹¤³Ìʦ, IBM
2009 Äê 10 ÔÂ 22 ÈÕ
°²
×°£¬Éý¼¶ºÍжÔØÓ¦ÓÃÈí¼þÊÇÓ°ÏìÓû§¶Ô²Ù×÷ϵͳÆÀ¼ÛµÄ¾ö¶¨ÐÔÒòËØÖ®Ò»¡£¶ÔÓÚÈÕ½¥Á÷ÐÐµÄ GNU/Linux
²Ù×÷ϵͳ£¬ÓµÓмò½àÇ¿´óµÄÈí¼þ°ü¹ÜÀí»úÖƹ¦²»¿Éû¡£±¾ÎÄ´Ó»ù±¾µÄ rpm/dpkg ÃüÁîÐгö·¢£¬ÒÔ RHEL ºÍ UBUNTU ΪÀý£¬½éÉܵäÐÍ
Linux ϵͳÖÐÓ¦ÓÃÈí¼þµÄ¹ÜÀíºÍʹÓá£
RPM/DPKG Á½´óÕóÓª¼ò½é
ÔÚ
GNU/Linux( ÒÔϼò³Æ Linux) ²Ù×÷ϵͳÖУ¬RPM ºÍ DPKG Ϊ×î³£¼ûµÄÁ½ÀàÈí¼þ°ü¹ÜÀí¹¤¾ß£¬ËûÃÇ·Ö±ðÓ¦ÓÃÓÚ»ùÓÚ RPM
Èí¼þ°üµÄ Linux ·¢Ðа汾ºÍ DEB Èí¼þ°üµÄ Linux
·¢Ðа汾¡£Èí¼þ°ü¹ÜÀí¹¤¾ßµÄ×÷ÓÃÊÇÌṩÔÚ²Ù×÷ϵͳÖа²×°£¬Éý¼¶£¬Ð¶ÔØÐèÒªµÄÈí¼þµÄ·½·¨£¬²¢Ìṩ¶ÔϵͳÖÐËùÓÐÈí¼þ״̬ÐÅÏ¢µÄ²éѯ¡£
RPM
È«³ÆΪ Redhat Package Manager£¬×îÔçÓÉ Red Hat ¹«Ë¾Öƶ¨ÊµÊ©£¬Ëæºó±» GNU ¿ªÔ´²Ù×÷ϵͳ½ÓÊܲ¢³ÉΪºÜ¶à
Linux ϵͳ (RHEL) µÄ¼È¶¨Èí¼þ±ê×¼¡£Óë RPM ½øÐоºÕùµÄÊÇ»ùÓÚ Debian ²Ù×÷ϵͳ (UBUNTU) µÄ DEB
Èí¼þ°ü¹ÜÀí¹¤¾ß£­ DPKG£¬È«³ÆΪ Debian Package£¬¹¦ÄÜ·½ÃæÓë RPM ÏàËÆ¡£¶þÕßÖ®¾ßÌå±È½Ï²»ÔÚ±¾ÎÄ·¶Î§Ö®ÄÚ¡£
»ØÒ³Ê×
RPM °üµÄ°²×° / Éý¼¶ / ²éѯ / жÔØ
Ò»
¸ö RPM °ü°üº¬ÁËÒÑѹËõµÄÈí¼þÎļþ¼¯ÒÔ¼°¸ÃÈí¼þµÄÄÚÈÝÐÅÏ¢£¨ÔÚÍ·ÎļþÖб£´æ£©£¬Í¨³£±íÏÖΪÒÔ .rpm À©Õ¹Ãû½áβµÄÎļþ£¬ÀýÈç
package.rpm ¡£¶ÔÆä²Ù×÷£¬ÐèҪʹÓà rpm ÃüÁî¡£ÏÂÃæ½éÉÜ rpm ¹¤¾ßµÄ²ÎÊýºÍʹÓ÷½·¨£¬²¢ÒÔ IBM Lotus Notes ÔÚ
RHEL 5.2 °²×°ÎªÀý×ö¾ßÌå˵Ã÷¡£
RPM ÃüÁî³£ÓòÎÊý
RPM µÄ³£¹æʹÓ÷½·¨Îª rpm -? package.rpm£¬ÆäÖÐ -? Ϊ²Ù×÷²ÎÊý ( ¸ü¶àÐÅÏ¢£¬Çë²éÔÄ°ïÖú $man rpm)£º
-q ÔÚϵͳÖвéѯÈí¼þ»ò²éѯָ¶¨ rpm °üµÄÄÚÈÝÐÅÏ¢
-i ÔÚϵͳÖа²×°Èí¼þ
-U ÔÚϵͳÖÐÉý¼¶Èí¼þ
-e ÔÚϵͳÖÐжÔØÈí¼þ
-h Óà #(hash) ·ûÏÔʾ rpm °²×°¹ý³Ì
-v ÏêÊö°²×°¹ý³Ì
-p ±íÃ÷¶Ô RPM °ü½øÐвéѯ£¬Í¨³£ºÍÆäËü²ÎÊýͬʱʹÓã¬È磺
-qlp ²éѯij¸ö RPM °üÖеÄËùÓÐÎļþÁбí
-qip ²éѯij¸ö RPM °üµÄÄÚÈÝÐÅÏ¢
RPM ÃüÁî²ÎÊýʹÓ÷½·¨
ÒÔÉϲÎÊýÓÐЩÐèÒª×éºÏʹÓ㬱ÈÈç˵ rpm -h package.rpm ÊÇûÓÐÒâÒåµÄ£¬µ« rpm -ih
package.rpm ¼´±íʾ°²×° package ²¢Óà # ·ûÏÔʾ°²×°½ø¶È¡£

°²×° RPM °ü
# rpm -ivh package.rpm

Éý¼¶ RPM °üÃüÁî
# rpm -Uvh package.rpm

жÔØ RPM °üÃüÁî
# rpm -ev package

²éѯ RPM °üÖаüº¬µ


Ïà¹ØÎĵµ£º

linuxÌßÈ˼¼ÇÉ


linuxϵͳrootÓû§¿ÉÇ¿ÖÆÌßÖÆÆäËüµÇ¼Óû§£¬
Ê×ÏÈÒÔrootµÇ¼ÒÔ±ã²é¿´È«²¿µÄÔÚÏßÓû§ÐÅÏ¢£¬¿ÉÓÃwÃüÁî²é¿´µÇ¼Óû§ÐÅÏ¢
Ç¿ÖÆÌßÈËÃüÁî¸ñʽ£ºpkill -kill -t tty
½âÊÍ£º
pkill -kill -t ¡¡ÌßÈËÃüÁî
tty¡¡ËùÌßÓû§µÄTTY
ÈçÉÏÌß³öliuÓû§µÄÃüÁîΪ£º pkill -kill -t pts/1
......

LinuxϱéÀúijÎļþ¼ÐÏÂÎļþ£¨²»µü´ú½øÈë×ÓĿ¼£©

Ô­ÎĵØÖ·£ºhttp://www.wangzhongyuan.com/archives/487.html
ÒÔÏÂÊÇÒ»¸öLinux/UnixÏÂÏÔʾijһĿ¼ÏÂÎļþÁбíµÄC³ÌÐò£¬Ï൱ÓÚ×î»ù±¾µÄlsÃüÁîµÄ¹¦ÄÜ£¬ÏÔʾµÄÄÚÈݱ¨¸æ¸ÃĿ¼ÏµÄ×ÓĿ¼ÒÔ¼°ÎļþÃû:
#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
#include <errno.h>
int m ......

ѧϰlinux¼¸µãÖÒ¸æ ת

LinuxmineÊÕ¼¯ÕûÀí ×÷Õߣºlinux±¦¿â (http://www.linuxmine.com) 1. ²»Òªµ±¡°´«½ÌÊ¿¡±
ºÜ¶àÈËÔÚÌÖÂÛÇø²»¶ÏµÄÒýÆð "Linux vs. Windows" Ö®ÀàµÄÌÖÂÛ£¬ÉõÖÁÕùµÄÃæºì¶ú³à£¬ÕâÊÇûÓбØÒªµÄ¡£
ÕâÖÖÕùÂÛÊÇÀË·Ñʱ¼ä¶øûÓÐÈκÎÓô¦µÄ¡£¶Ô£¬Ä㻨ÁËÒ»ÏÂÎ磬ÓÃÐí¶àÊÂʵ¡°º´ÎÀ¡±ÁË ¡°Linux ±È Windows ºÃ¡± Õâ¸ö˵·¨¡£µ«ÊÇ Win ......

Linux¶àÏ̱߳à³ÌµÄ»ù±¾µÄº¯Êý

  º¯ÊýÔ­ÐÍ£º                  
#include <pthread.h>
int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr, void *(*start_rtn)( ......

ÔËÐÐÁËOracleµÄLinux·þÎñÆ÷¸ü¸ÄÖ÷»úÃû

ÔËÐÐÁËOracleµÄLinux·þÎñÆ÷¸ü¸ÄÖ÷»úÃû
¼ÙÈçÒª°ÑÖ÷»úÃû¸ÄΪoratest¡£
$±íʾoracleÓû§²Ù×÷£»
#±íʾrootÓû§²Ù×÷¡£
DB£ºoracle10.2
OS£ºRHEL4.5
µÚÒ»²½£¬¹Ø±ÕÊý¾Ý¿âºÍ¼àÌý£¬dbconsole£º
$ dbshut
$ lsnrctl stop
µÚ¶þ²¿£º
# hostname oratest
µÚÈý²½£º
# vi /etc/sysconfig/network
¸ü¸Ähostname²ÎÊý¡£
µÚËIJ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ