linuxϵͳRPMÃüÁîÊÖ²á
linuxϵͳRPMÃüÁîÊÖ²á
RPMÊÇRed HatϵÁг£ÓõÄ軟¼þ°ü¸ñʽ£¬靈»îµÄʹÓÃËû將ʹÄúÔÚ RH LinuxÖÐÈç魚µÃË®.現將Æä³£見µÄʹÓ÷½·¨ÊÕ¼¯ÈçÏÂ.................
Ò»¡¢°²×°
ÃüÁî¸ñʽ£º
rpm -i ( or --install) options file1.rpm ... fileN.rpm
²ÎÊý£º
file1.rpm ... fileN.rpm ½«Òª°²×°µÄRPM°üµÄÎĵµÃû
ÖÜÏêÑ¡Ï
-h (or --hash) °²×°Ê±Êä³öhash¼ÇºÅ (``#'')
--test Ö»¶Ô°²×°½øÐвâÊÔ£¬²¢²»Êµ¼Ê°²×°¡£
--percent Ò԰ٷֱȵÄÐÎʽÊä³ö°²×°µÄ½ø¶È¡£
--excludedocs ²»°²×°Èí¼þ°üÖеÄÎĵµÎĵµ
--includedocs °²×°Îĵµ
--replacepkgs Ç¿ÖÆÖØа²×°ÒÑ°²×°µÄÈí¼þ°ü
--replacefiles Ìæ»»ÊôÓÚÆäËûÈí¼þ°üµÄÎĵµ
--force ºöÂÔÈí¼þ°ü¼°ÎĵµµÄ³åÍ»
--noscripts ²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾
--prefix ½«Èí¼þ°ü°²×°µ½ÓÉ Ö¸¶¨µÄ·¾¶ÏÂ
--ignorearch ²»Ð£ÑéÈí¼þ°üµÄ½á¹¹
--ignoreos ²»¼ì²éÈí¼þ°üÔËÐеIJÙ×÷ϵͳ
--nodeps ²»¼ì²éÒÀÀµÐÔ¹Øϵ
--ftpproxy Óà ×÷Ϊ FTP´úÀí
--ftpport Ö¸¶¨FTPµÄ¶Ë¿ÚºÅΪ
ͨÓÃÑ¡Ïî
-v ÏÔʾ¸½¼ÓÐÅÏ¢
-vv ÏÔʾµ÷ÊÔÐÅÏ¢
--root ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ"¸ùĿ¼"£¬ÕâÑùÔ¤°²×°³ÌʽºÍºó°²×°³Ìʽ¶¼»á°²×°µ½Õâ¸öĿ¼ÏÂ
--rcfile ÅäÖÃrpmrcÎĵµÎª
--dbpath ÅäÖÃRPM ×ÊÁÏ¿â´æËùÔڵķ¾¶Îª
¶þ¡¢É¾³ý
ÃüÁî¸ñʽ£º
rpm -e ( or --erase) options pkg1 ... pkgN
²ÎÊý
pkg1 ... pkgN £ºÒªÉ¾³ýµÄÈí¼þ°ü
ÖÜÏêÑ¡Ïî
--test Ö»Ö´ÐÐɾ³ýµÄ²âÊÔ
--noscripts ²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾³Ìʽ
--nodeps ²»¼ì²éÒÀÀµÐÔ
ͨÓÃÑ¡Ïî
-vv ÏÔʾµ÷ÊÔÐÅÏ¢
--root ÈÃRPM½«Ö¸¶¨µÄ·¾¶×öΪ"¸ùĿ¼"£¬ÕâÑùÔ¤°²×°³ÌʽºÍºó°²×°³Ìʽ¶¼»á°²×°µ½Õâ¸öĿ¼ÏÂ
--rcfile ÅäÖÃrpmrcÎĵµÎª
--dbpath ÅäÖÃRPM ×ÊÁÏ¿â´æËùÔڵķ¾¶Îª
Èý¡¢Éý¼¶
ÃüÁî¸ñʽ
rpm -U ( or --upgrade) options file1.rpm ... fileN.rpm
²ÎÊý
file1.rpm ... fileN.rpm Èí¼þ°üµÄÃû×Ö
ÖÜÏêÑ¡Ïî
-h (or --hash) °²×°Ê±Êä³öhash¼ÇºÅ (``#'')
--oldpackage ÔÊÐí"Éý¼¶"µ½Ò»¸öÀÏ°æ±¾
--test Ö»½øÐÐÉý¼¶²âÊÔ
--excludedocs ²»°²×°Èí¼þ°üÖеÄÎĵµÎĵµ
--includedocs °²×°Îĵµ
--replacepkgs Ç¿ÖÆÖØа²×°ÒÑ°²×°µÄÈí¼þ°ü
--replacefiles Ìæ»»ÊôÓÚÆäËûÈí¼þ°üµÄÎĵµ
--force ºöÂÔÈí¼þ°ü¼°ÎĵµµÄ³åÍ»
--percent Ò԰ٷֱȵÄÐÎʽÊä³ö°²×°µÄ½ø¶È¡£
--noscripts ²»ÔËÐÐÔ¤°²×°ºÍºó°²×°½Å±¾
-
Ïà¹ØÎĵµ£º
LinuxµÄÍøÂçÅäÖÃ
Redhat LinuxµÄÍøÂçÅäÖ㬻ù±¾ÉÏÊÇͨ¹ýÐ޸ļ¸¸öÅäÖÃÎļþÀ´ÊµÏֵģ¬ËäȻҲ¿ÉÒÔÓÃifconfigÀ´ÉèÖÃIP£¬ÓÃrouteÀ´ÅäÖÃĬÈÏÍø¹Ø£¬ÓÃhostnameÀ´ÅäÖÃÖ÷»úÃû£¬µ«ÊÇÖØÆôºó»á¶ªÊ§¡£
Ïà¹ØµÄÅäÖÃÎļþ
/ect/hosts ÅäÖÃÖ÷»úÃûºÍIPµØÖ·µÄ¶ÔÓ¦
/etc/sysconfig/network ÅäÖÃÖ ......
linuxÏÂÍü¼ÇÁËmysqlµÄrootÓû§ÃÜÂë½â¾ö°ì·¨£º
¡¡¡¡Ò»¡¢ÒÔϵͳµÄrootÓû§£¨Ê²Ã´£¬ÄãµÄϵͳµÄrootÓû§ÃÜÂëÒ²ÍüÁË¡£ÄÇÖ»ºÃ¿´ÎÒÁíÍâһƪlinuxÏÂÍü¼ÇrootÓû§µÄ½â¾ö°ì·¨ÁËÏȽâ¾öÕâ¸öÎÊÌ⣩µÇ½ϵͳ£¬½øÈëÖÕ¶Ë
¡¡¡¡[root@localhost /]#
¡¡¡¡¶þ¡¢É±µômysql½ø³Ì
¡¡¡¡·½·¨1¡¢[root@localhost /]#killall mysqld
¡¡¡¡·½·¨2¡ ......
½ñÌìºöÈ»·¢ÏÖ´úÀí·þÎñÆ÷²»ÄÜʹÓÃÁË£¬ÉÏÈ¥Ò»¿´£¬squidµÄ¶Ë¿Ú¼àÌýStopµôÁË£¬²é¿´ÈÕÖ¾£¬ÈçÏ´íÎó ¡¡¡¡½ñÌìºöÈ»·¢ÏÖ´úÀí·þÎñÆ÷²»ÄÜʹÓÃÁË£¬ÉÏÈ¥Ò»¿´£¬squidµÄ¶Ë¿Ú¼àÌýStopµôÁË£¬²é¿´ÈÕÖ¾£¬ÈçÏ´íÎó
¡¡¡¡localhost kernel: Out of Memory: Killed process 785 (squid).
¡¡¡¡ÍøÉÏgoogleһͨ£¬Ã»ÓÐÈκÎÓмÛÖµµÄ½á¹û£¬×Ô¼ºÕÒÆäË ......
1.ϵͳÐÅÏ¢ÏÔʾÃüÁî # uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
# hostname ......
¼ÙÉèÊý¾Ý¿âµÄÓµÓÐÕßΪoracle£¬Êý¾Ý¿âµÄÓû§Îªscott£¬Æä¿ÚÁîΪtrigger£¬
OracleÊý¾Ý¿âµÄ²ÎÊý$ORACLE_HOMEΪ/usr/oracle£¬$ORACLE_SIDΪoracle1£¬ÔòʵÏÖ²½ÖèÈçÏ£º
1¡¢½¨Á¢ÊµÏÖ±¸·ÝµÄshell
ÔÚ/usr/oracleÖÐÓÃviÃüÁÁ¢Îļþbackup.sh£¬ÆäÄÚÈÝΪ:
ORACLE_HOME=/usr/oracle; <br>export ORACLE_HOME;
ORACLE_SID= ......