°²×°»·¾³
CentOS 4.3 Final
Èí¼þÁбí
httpd-2.0.61.tar.gz
db-4.3.29.tar.gz
subversion-1.3.2.tar.gz
Èí¼þλÖÃ
/data/software
°²×°²½Öè
#mkdir /data/software/pkg
-p
°²×°Berkeley DB
#cd
/data/software/pkg
#tar zxvf ../db-4.3.29.tar.gz
#cd
db-4.3.29/docs
#../dist/configure
#make && make install
#echo
/usr/local/BerkeleyDB.4.3/lib >> /etc/ld.so.conf
#ldconfig
°²×°Apache
#cd /data/software/pkg
#tar zxvf
../httpd-2.0.61.tar.gz
#./configure --prefix=/usr/apache --enable-dav \
--with-berkeley-db=/usr/local/BerkeleyDB.4.3 --with-dbm=db43
#make &&
make install
°²×°Subversion
#cd
/data/software/pkg
#tar zxvf ../db-4.3.29.tar.gz
#cd
db-4.3.29
#./configure --with-apxs=/usr/apache/bin/apxs
--prefix=/usr/local/subversion \ --with-apr=/usr/apache
--with-apr-util=/usr/apache --with-ssl --with-zlib \ --enable-maintainer-mode
--with-berkeley-db=/usr/local/BerkeleyDB.4.3
#make && make
install
½¨Á¢²Ö¿â
#groupa ......
tar
-c: ½¨Á¢Ñ¹Ëõµµ°¸
-x£º½âѹ
-t£º²é¿´ÄÚÈÝ
-r£ºÏòѹËõ¹éµµÎļþĩβ׷¼ÓÎļþ
-u£º¸üÐÂÔѹËõ°üÖеÄÎļþ
ÕâÎå¸öÊǶÀÁ¢µÄÃüÁѹËõ½âѹ¶¼ÒªÓõ½ÆäÖÐÒ»¸ö£¬¿ÉÒԺͱðµÄÃüÁîÁ¬Óõ«Ö»ÄÜÓÃÆäÖÐÒ»¸ö¡£ÏÂÃæµÄ²ÎÊýÊǸù¾ÝÐèÒªÔÚѹËõ»ò½âѹµµ°¸Ê±¿ÉÑ¡µÄ¡£
-z£ºÓÐgzipÊôÐÔµÄ
-j£ºÓÐbz2ÊôÐÔµÄ
-Z£ºÓÐcompressÊôÐÔµÄ
-v£ºÏÔʾËùÓйý³Ì
-O£º½«Îļþ½â¿ªµ½±ê×¼Êä³ö
ÏÂÃæµÄ²ÎÊý-fÊDZØÐëµÄ
-f: ʹÓõµ°¸Ãû×Ö£¬Çмǣ¬Õâ¸ö²ÎÊýÊÇ×îºóÒ»¸ö²ÎÊý£¬ºóÃæÖ»Äܽӵµ°¸Ãû¡£
# tar -cf all.tar *.jpg
ÕâÌõÃüÁîÊǽ«ËùÓÐ.jpgµÄÎļþ´ò³ÉÒ»¸öÃûΪall.tarµÄ°ü¡£-cÊDZíʾ²úÉúеİü£¬-fÖ¸¶¨°üµÄÎļþÃû¡£
# tar -rf all.tar *.gif
ÕâÌõÃüÁîÊǽ«ËùÓÐ.gifµÄÎļþÔö¼Óµ½all.tarµÄ°üÀïÃæÈ¥¡£-rÊDZíʾÔö¼ÓÎļþµÄÒâ˼¡£
# tar -uf all.tar logo.gif
ÕâÌõÃüÁîÊǸüÐÂÔÀ´tar°üall.tarÖÐlogo.gifÎļþ£¬-uÊDZíʾ¸üÐÂÎļþµÄÒâ˼¡£
# tar -tf all.tar
ÕâÌõÃüÁîÊÇÁгöall.tar°üÖÐËùÓÐÎļþ£¬-tÊÇÁгöÎļþµÄÒâ˼
# tar -xf all.tar
ÕâÌõÃüÁîÊǽâ³öall.tar°üÖÐËùÓÐÎļþ£¬-tÊǽ⿪µÄÒâ˼
ѹËõ
tar –cvf all.tar *.jpg
//½«Ä¿Â¼ÀïËùÓÐjpgÎļþ´ò°ü³É all.tar
tar &nd ......
1.¼àÊÓÄÚ´æ
free -mt
total used free shared buffers cached
Mem: 1010 476 534 0 77 131
-/+ buffers/cache: 268 742
Swap: 1027 0 1027
Total: 2038 476 1561
linuxȇ ......
À´Ô´£ºhttp://linux.chinaunix.net/ebook/doc/2009/09/17/1135830.shtml
±¾ÎĽéÉÜÔÚcentos 5.x»·¾³ÏÂͨ¹ýyumÔ´µÄÀ©Õ¹Ê¹ÓÃmunin¡¢ monit¡¢ntop¹¤¾ßÀ´¼à¹ÜÄãµÄÓ¦ÓóÌÐòºÍ·þÎñÆ÷¡£ÌâΪÀÁÈË˵˵µÄÊǼò±ãµÄ°²×°·½Ê½¶øÒÑ£¬½«Ç¿´óµÄ¹¦ÄÜÅäÖüòµ¥µÄÓ¦ÓÃÆðÀ´ÊǺÜÖØÒªµÄ£¬¿ÉÒÔ½Úʡʱ¼ä²¢Ìá¸ßЧÂÊ¡£
Monit£ºhttp:#www.tildeslash.com/monit/
Munin: http:#munin.projects.linpro.no/
Ntop£ºhttp:#www.ntop.org/
¡¡¡¡µ±ÄãµÄLinuxÖ÷»úͶÈëÉú²ú»·¾³ÒÔºó£¬ÏëÒªÖªµÀϵͳ»òÕß·þÎñÿÌì»òÕßÿÖܵÄÔËÐÐÇé¿ö£¬MuninÊÇ×î¼ÑÑ¡Ôñ¡£ÔÚijЩÇé¿öÏ£¬¼à¿ØLinuxÖ÷»ú·þÎñ¡¢Ó¦ÓóÌÐòµÄÔËÐÐ״̬£¬ÊǷdz£ÓбØÒªµÄ£¬ÓÈÆäÊÇÓ¦ÓóÌÐò»ò·þÎñ»á³öÏÖ´íÎ󣬲¢¿ÉÄÜ¿ªÊ¼ÍÌÊÉÄãÖ÷»úµÄÄÚ´æºÍcpu£¬Õ⽫µ¼ÖÂÖ÷»úÉϵÄÓ¦Óò»ÄÜÕý³£µÄÔËÐС£Òò´Ë£¬ÐèÒªÆäËûһЩ³ÌÐòÀ´¼à¿ØÄãµÄ³ÌÐò£¬ÔÚ³ÌÐò³ö´íÒÔºóÖØÆôÄãµÄ³ÌÐò¡£ÔÚlinuxϽâ¾ö·½°¸£¬ÈçNagios¡¢ganglia¡¢HyperHQ¡¢ZABBIXµÈ£¬nagiosµÄ²å¼þºÜ¶à¹¦ÄÜÒ²ÊǺÜÇ¿´óµÄ£¬ÐèÒªÏ꾡µÄÅäÖÃʵÏÖ£»HyperHQ»á¿ªÆôJAVAµÄÓ¦Óò¢¶ÔJAVAµÄÓ¦Ó÷þÎñÆ÷»á×Ô¶¯É豸£¬ÏëÆðÀ´JAVA¶ÔÄÚ´æµÄµÄÇ¿ÁÒÐèÇó»¹ÊÇ»áÓйý¹À¼Æ¡£ÕâÕâÁËÍƼöʹÓà Monit¡¢ MuninÒÔ¼°ntopÒ»¸ö¼òµ¥µÄÍøÂçÁ÷Á¿µÄ¼à¿Ø¹¤¾ß¡ ......
LinuxÏÂSUNµÄJREÎÊÌâÈÕÖ¾ÊÕ¼¯
ÔÚLinuxÏÂʹÓÃSunÌṩµÄJRE£¬µ±·¢Éúcore dumpʱ£¬Èç¹ûÈ·ÈÏÊÇÓÉJREÔì³ÉµÄ£¬Sunͨ³£ÐèÒªÄãÌṩÈÕÖ¾ÒÔ¹©·ÖÎö¡£
ͨ³£ÊÇͨ¹ýÖ´ÐÐpkgapp½Å±¾À´ÊÕ¼¯¡£¸Ã½Å±¾¿ÉÔÚsunÍøÕ¾ÉÏÏÂÔØ£¬Ãû×ÖΪSUN-GDD_pkgapp_linux_redhat.tar.gz¡£
pkgapp¹¤¾ßÐèÒªkshµÄÖ§³Ö£¬Òò´ËÈç¹ûLinuxÉÏûÓа´ÕÕksh£¬±ØÐëÏÈ°²×°²Å¿É¡£
# rpm -i ksh-20080202-2.el5.x86_64.rpm
Ö´ÐÐÈçÏÂÃüÁî¼´¿ÉÊÕ¼¯ºÃÈÕÖ¾£¬
./pkgapp -i -r -c /opt/nawg/core.21675 -p /usr/java/jre1.6.0_19/bin/
ÆäÖÐcore.21675ÊÇcore dumpʱ²úÉúµÄcoreÎļþ£¬×¢Òâ¸ÃÃüÁî¸ñʽֻÊÊÓÃÓÚOnly for pkgapp 3.2 Redhat 3/4/5¡£
´ÓÖ´ÐÐÈÕÖ¾ÖпÉÒÔ¿´µ½ÀàËÆpkgapp-7b0a2470-app16.nbgint-100525-153458.tar.gzµÄÎļþ²úÉú£¬½«¸ÃÎļþÉÏ´«¸øSunÌṩµÄFTP·þÎñÆ÷¼´¿É¡£
......
ÔÚ¿ª·¢¹ý³ÌÖУ¬±ØÈ»»á³öÏÖ¶àÈËͬʱ¹¤×÷¡¢Ð×ŵÄÇé¿ö£¬ÔÚǶÈëʽ¿ª·¢ÏîÄ¿ÖиüΪƽ³££¬ÕâÑù¿ÉÒÔ¼Ó¿ìÏîÄ¿ÖÜÆÚ£¬Îª²úÆ·ÉÏÊÐÕ¼µÃʱ¼äÏÈ»ú¡£Ä¿Ç°£¬Ê¹ÓÃlinux×÷Ϊ¿ª·¢²úÆ·µÄ²Ù×÷ϵͳÇé¿öÔ½À´Ô½¶à£¬Ê¹ÓÃÔ½À´Ô½¹ã·º¡£ÎªÁ˽»²æ±àÒ룬ΪÁË×î½Ó½ü¿ª·¢Ä¿±ê£¬ÎÒÃÇÒ»°ã¶¼»á×Ô¼º´î½¨Ò»Ì¨linux¿ª·¢·þÎñÆ÷¡£linux¿ª·¢·þÎñÆ÷һЩ³£ÓõŦÄܱØÐëÖ§³Ö£¬±ÈÈçSamba¡¢nfs¡¢tftp¡¢httpdµÈ¡£
Ê×ÏÈÎÒÃÇÐèҪѡÔñºÏÊʵÄlinux²Ù×÷ϵͳ×÷Ϊ·þÎñÆ÷µÄϵͳ£¬ÍƼöʹÓÃFedora8¡¢Fedora10µÈ£¬±ÊÕßÔÚ³¤ÆÚʹÓõĹý³ÌÖоõµÃ±È½ÏÎȶ¨°É£¡ÈçºÎ°²×°¸Ã²Ù×÷ϵͳ¾Í²»¶à˵ÁË¡£
×°ºÃϵͳºó£¬ÐèÒªÔö¼Ólinux OSÓû§£¬¿ÉÒÔʹÓÃÃüÁî#adduser XXX;Ôö¼ÓXXXÓû§£¬#passwd XXX¸øÆäÉèÖõǼÃÜÂë¡£µ±È»Ê¹ÓÃͼÐλ¯´´½¨Óû§Ò²ºÜÖ±¹Û¡¢·½±ã¡£ÔÚÕâ¸ö»·½ÚÖµµÃ×¢ÒâµÄÒ»¶¨ÒªÉèÖúøÃÓû§µÄhomeĿ¼£¬Ò»°ã¶¼»áÉèÖõ½¸ÃÓû§µÄ¹¤×÷Ŀ¼£¬¸÷¸öÓû§µÄ¹¤×÷Ŀ¼ÐèҪ˽Óл¯¡¢¶ÀÁ¢¿ªÀ´£¬ÕâÑù·½±ãЩ¡¢°²È«Ð©¡£
¶àÓû§µÄÕË»§ÓÐÁË£¬ÎÒÃÇÓ¦¸ÃÀ´´òͨÍøÂ繦ÄÜÁË£¬FedoraÓÐbug£¬ÔÚͼÐλ¯ÅäÖÃGATEWAYʲôµÄ»á²»³É¹¦£¬Çë°²×°ÈçÏ·½·¨Ð޸ģº
# cd cd /etc/sysconfig/network-script ......
×ܼǼÊý:5772; ×ÜÒ³Êý:962; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] 3
[4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ