ºìÁªLinuxÃÅ»§
Linux°ïÖú

²ËÄñÈëÃÅ ¸öÈËѧϰLinux֪ʶ×ܽá

·¢²¼Ê±¼ä:2006-03-18 00:51:55À´Ô´:ºìÁª×÷Õß:´ó³¤½ñ
1.¸ü¸ÄtelnetµÇ¼ÂýµÄÎÊÌ⣺cd /etc vi resolv.conf½«ÀïÃæÄÚÈÝÇå¿Õ

2.¸ü¸ÄrootÓû§²»ÄÜÖ±½ÓÔ¶³ÌµÇ¼ÎÊÌ⣺cd /etc cd pam.d vi login×¢Ê͵ôÕâÐÐ#auth required pam_securetty.so //¸ÃÐÐ×¢Ê͵ô

3.¹Ò½ÓUSBÒƶ¯Ó²Å̽«Òƶ¯Ó²Å̹ÒÉÏ¡£

#df ²é¿´LinuxÏÂÓ²ÅÌÅÌ·ûmount /dev/sda1 /mnt/usb £¨¾ÙÀý£©

5.¸ü¸ÄLinuxÆô¶¯Ê±ÓÃͼÐνçÃ滹ÊÇ×Ö·û½çÃæcd /etc vi inittab½«id£º5£ºinitdefault£º ÆäÖÐ5±íʾĬÈÏͼÐνçÃæ¸Äid£º3£º initdefault£º 3±íʾ×Ö·û½çÃæ

8.ÅäÖÃsmb¿ÉÒÔ±»ÄÄЩIPËùÓá£

cd /etc/samba Vi smb.confÕÒµ½hosts allow = 192.168.1. 192.168.2. 127.ÐÞ¸ÄÆäΪÄÄЩ»úÆ÷ËùÓã¬×¢ÒâIPÖ®¼äÓöººÅ·Ö¿ª¾ÙÀý£ºhosts allow =192.168.1.110£¬192.168.1.120

9.½ûÖ¹ÔÚºǫ́ʹÓÃCTRL-ALT-DELETEÖØÆð»úÆ÷cd /etc/inittab vi inittab ÔÚÎļþÕÒµ½ÏÂÃæÒ»ÐÐ# Trap CTRL-ALT-DELETE ca£º£ºctrlaltdel£º/sbin/shutdown -t3 -r now £¨×¢Ê͵ôÕâÒ»ÐУ©

È磺 # Trap CTRL-ALT-DELETE #ca£º£ºctrlaltdel£º/sbin/shutdown -t3 -r now

10.ÐÞ¸ÄÖ÷»úÃûvi /etc/sysconfig/networkÐÞ¸ÄHOSTNAMEÒ»ÐÐΪHOSTNAME=Ö÷»úÃû

12.²é¿´¿ª»ú¼ì²âµÄÓ²¼þdmesg | more

13.²é¿´Ó²ÅÌʹÓÃÇé¿ödf -m

14.²é¿´Ä¿Â¼µÄ´óСdu -sh dirname

15.½âѹСȫtar xvfj lichuanhua.tar.bz2 tar xvfz lichuanhua.tar.gz tar xvfz lichuanhua.tgz tar xvf lichuanhua.tar unzip lichuanhua.zip

16.ÏÔʾÄÚ´æʹÓÃÇé¿öfree -m

17.Íü¼ÇrootÃÜÂ룬Èç¹ûÊÇgrup 1.³öÏÖgrup»­Ãæʱ£¬ÓÃÉÏϼüÑ¡Æô¶¯LinuxµÄÄÄÒ»Ï°´e¼ü2.ÉÏϼüÑ¡Ôñ kernel /boot/¡­¡­¡­ È»ºó°´e¼ü3.ÐÞ¸ÄÏÖÔÚ¼ûµ½µÄÃüÁîºÃ£¬¼ÓÈësingle ½á¹û£ºkernel /boot/vmlinuz-2.4.20-8 single ro root=LABEL= 4.»Ø³µ·µ»Ø£¬°´b¼üÆô¶¯£¬Ö±½Ó½øÈëlinuxÃüÁîÐÐÖ±½ÓÖ´ÐУº passwd rootÐÞ¸ÄÃÜÂ룬ÄãµÄÃÜÂë¾Í¸ã¶¨Èç¹ûÊÇlilo£º°´Tab£¬»­Ãæ³öÏÖlilo ¼üÈ룺linux single £¬»Ø³µ

18.ÏÔʾϵͳÔËÐÐÁ˶೤ʱ¼äuptime

19.ÖØÐÂÆô¶¯ÍøÂç/etc/init.d/network restart

20.ÏÔʾ¿ª»ú×Ô¼ìµÄÄÚÈÝÃüÁîdmesg

21.²é¿´¶Ë¿Únetstat -an netstat -anp

22¡­¡­¶Ë¿ÚµÄÏêϸÁбí/etc/services

23.²é¿´ÎïÀíÐÅÏ¢lspci

24.°²×°Í¼ÐνçÃæ²»ÄܳöÏÖ£¬Ê¹ÓýâÎö½øÐа²×°Linux lowres £¨Ê¹ÓõÄÊÇ640X480·Ö±æÂÊ£©

25.ÆÁ±ÎÖ÷»úµÄping ÃüÁÊDZ»±ðÈËÎÞ·¨pingÄãµÄ»úÆ÷echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

26.³¹µ×ɾ³ýOracle°²×°µÄ³ÌÐò£¬É¾³ýһϼ¸¸öĿ¼/etc/oraInst.loc /tmp/ /etc/oratab $ORACLE_BASE/*

28.RPM°ü1.жÔØ RPM -e 2.²éѯ rpm -q -a ²éѯËùÓÐÒÑ°²×°µÄÈí¼þ°ü-f ²éѯ°üº¬ÎļþµÄÈí¼þµÄ°ü-i ÏÔʾÈí¼þ°üÐÅÏ¢-l ÏÔʾÈí¼þ°üµÄÎļþÁбí3.ÑéÖ¤ rpm -v rpm -Va ÑéÖ¤Õû¸öÎļþ¶ªÊ§ÁËÄÄЩÎļþÅöµ½²»ÈÏʶµÄÎļþʹÓÃrpm -qf 4.Ò»¸örpm°ü°²×°µ½ÄÄÀïÈ¥ÁË£¨ÒѾ­°²×°µÄ°ü£©

rpm -qi °üÃû£¨ÕâÀï²»°üÀ¨¡£rpmºó׺µÄÈí¼þÃû³Æ£¬Ò²¾ÍÊÇ˵ֻÄÜÓÃmysql»òÕßmysql-3.23.54a¶ø²»ÊÇmysql-3.23.54a.rpm£©

5.Ò»¸örpm°üÖаüº¬ÄÄЩÎļþÒ»¸öûÓа²×°¹ýµÄÈí¼þ°ü£ºÊ¹ÓÃrpm -qip ***.rpmÒ»¸öÒѾ­°²×°¹ýµÄÈí¼þ°ü£º ʹÓÃrpm -qi ***.rpm

29.¿´ÒѾ­°²×°µÄ×Ö·û¼¯locale -a

30.×¥°üÃüÁîtcpdumpÀý£º×¥»ñ192.168.1.32 µÄÖ÷»úÊÕµ½ºÍ·¢³öµÄËùÓеÄÊý¾Ý°ütcpdump host 192.168.1.32½Ø»ñÌض¨µÄ¶Ë¿Útcpdump tcp port 21 host 192.168.1.32

31.Îı¾½ØÃæµÄÖÐÎÄÖ§³ÖRH 9.0×Ô´ø°²×°°ü zhcon_0.2.3_1.rh9.i386.rpm°²×°Íê³Éºó£¬Ö´ÐУº zhcon ¾Í¿ÉÒÔÖ§³ÖÖÐÎÄÁË

32.²é¿´¶Ë¿ÚÏÖÔÚÔËÐÐʲô³ÌÐòlsof -i£º8001

33.²ì¿´ÊµÊ±µÄÈÕÖ¾tail -f /var/log/messages

34.µ±mount³öÏÖËÀµÄÏÖÏó1.fuser -m /mnt/share ²é³ö¸Ã³ÌÐòµÄ½ø³Ì£¬È»ºóKillµô2.ÔÙumount /mnt/share

35.linux ¿ØÖÆ windows 1.ÓÃRH9.0×Ô¼º´ørdesktop£¬°æ±¾ÊÇ1.2.0ÃüÁrdesktop -u user -f 192.168.1.70 ɫĬÈϵÄÊÇ8λ2Òª´ïµ½16É«£¬¾ÍÒªÏÂÔØа汾1.3.0 rdesktop -a 16 -u lichuanhua -g 800*600 192.168.1.70

36. Linux¹ÒÔØWindows·ÖÇømount ntfs·ÖÇøÒ»¡£µ¥»ú¹ÒwindowsµÄNTFS·ÖÇø1. ÉÏwww.google.comËÑË÷²¢ÏÂÔØ kernel-ntfs-2.4.18-14.i686.rpm 2. rpm -ivh kernel-ntfs-2.4.18-14.i686.rpm 3. mkdir /mnt/share 4. mount -t ntfs /dev/hda1 /mnt/shareÒª¹ÒÔØWindows·ÖÇø£¬Ê×ÏÈн¨Ò»¸öĿ¼/mnt/share£¬ÐÞ¸Ä/etc/fstab£¬ÔÚ×îĩβÌíÉÏ£¨¼ÙÉèWindows°²×°ÔÚÓ²Å̵ĵÚ1¸ö·ÖÇø£©

/dev/hda1 /mnt/share ntfs defaults 0 0¶þ¡£ÍøÂçÉÏһ̨windowsºÍlinux»úÆ÷£¬linux»úÆ÷¹ÒÔØwindowsÉϵĹ²ÏíÎļþwindows IP£º192.168.1.1 1.linux¹ÒÔØ192.168.1.1£¨windows£©ÉϹ²ÏíÎļþdbf£¬¹ÒÔÚlinuxµÄ/mnt/shareĿ¼Ï£¬ÔÚ/mntϽ¨Á¢shareĿ¼mount -t smbfs -o username=massky£¬password=massky //192.168. 1.1/dbf /mnt/share 2.»úÆ÷ÖØÆô×Ô¶¯¹ÒÔØ£¬vi /etc/fstab×îºó¼ÓÈ룺//192.168.1.1/dbf /mnt/share smbfs defaults£¬auto£¬username=m assky£¬password=massky 0 0

37.Oracle9iÔÚLinux9.0Éϵݲװ1.È·±£RPM¿ª·¢°ü£¬Ê¹ÓÃÏÂÃæÃüÁî²é¿´ÊÇ·ñÒÑ°²×°ÕâЩ°ürpm -q gcc cpp compat-libstdc++ glibc-devel glibc-kernheaders binutils 2.½øÐнâѹzcat Linux9i_Disk1.cpio.gz | cpio -idmv zcat Linux9i_Disk2.cpio.gz | cpio -idmv zcat Linux9i_Disk3.cpio.gz | cpio -idmv 3.ÉèÖÃÄں˲ÎÊývi /etc/sysctl.conf£¬¼ÓÈëÏÂÃæ²ÎÊýkernel.shmmax=4294967295 ÄÚ´æ512M¼ÆËã·½·¨Îª£ºkernel£ºshmmax=1024*1024*RAM£¨M£©/2Ö´ÐÐsysctl -pÉúЧ4.½¨Á¢Êý¾ÝĿ¼ºÍÓû§groupadd dba groupadd oinstall useradd -g oinstall -G dba oracle passwd oracle

mkdir /opt/oracle mkdir /opt/oracle/product mkdir /opt/oracle/product/9.2.0 chown -R oracle.oinstall /opt/oracle mkdir /var/opt/oracle chown oracle.dba /var/opt/oracle chmod 755 /var/opt/oracle 5.vi .bash_profile ÉèÖñäÁ¿export LD_ASSUME_KERNEL=2.4.1 export ORACLE_BASE=/opt/oracle export ORACLE_HOME=/opt/oracle/product/9.2.0 export ORACLE_SID=ora9i export ORACLE_TERM=xterm export TNS_ADMIN=$ORACLE_HOME/network/admin export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib£º/lib£º/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH£º/usr/local/lib export LD_LIBRARY_PATH

export PATH=$PATH£º$ORACLE_HOME/bin CLASSPATH=$ORACLE_HOME/JRE£º$ORACLE_HOME/jlib£º$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH£º$ORACLE_HOME/network/jlib export CLASSPATH

38.Íø¿¨µÄ¼¤»îÓëÍ£Ö¹³¬¼¶Óû§£»ifconfig eth0 down Í£Ö¹ifconfig eth0 up Æô¶¯

40.LinuxÏÂcvsµÄ°²×°ÅäÖÃ1.°²×°CVSÈí¼þ°ü¡£

2.groupadd cvs 3.useradd -g cvs cvsroot 4.chmod 777 -R /home/cvsroot 5.cd /etc 6.vi profileÐÂÔöÒÔ϶þÐУºCVSROOT=/home/cvsroot export CVSROOT CVSEDIT=vi export CVSEDIT 7.²é¿´/etc/servicesÎļþÖÐcvspserver ËùÔÚÐеÄ×¢ÊÍ״̬£¨ÓÐÔò°Ñ×¢ÊÍÈ¥µô£©

8.½øÈë /etc /xinetd.d£¬ vi cvspserver¸ÃÎļþ²»´æÔÚ£¬ÄÚÈÝÈçÏ£ºservice cvspserver { disable = no socket_type =stream wait =no user =root env =HOME= server =/usr/bin/cvs server_args =----allow-root=/home/cvsroot pserver log_on_failure +=USERID } 9.vi /etc/xinetd.conf ÄÚÈÝÈçÏ£¬Ã¿´Î¿ª»ú×Ô¶¯Æô¶¯·þÎñ£ºservice cvspserver { port = 2401 socket_type = stream wait = no user = root server = /usr/bin/cvs server_args = -f ----allow-root=/home/cvsroot pserver bind = 168.168.1.110 }ÖØеǼ »»cvsrootÓû§10./etc/init.d/xinetd restart 11.cvs init£¨³õʼ»¯£ºCVS°æ±¾¿âµÄ³õʼ»¯£©

12.cvs -d £ºpserver£ºcvsroot@192.168.1.110£º/home/cvsroot login£¨Óû§µÇ¼£©Ã»ÓÐÈκÎÌáʾÐÅÏ¢¾Í³É¹¦¡£

13.Ê×ÏÈÒªµ¼Èë¿â£¬¼ÙÉèÏîÄ¿Ãû³ÆΪLinuxISQuote.²½Ö裺1¡¢½øÈëLinuxISQuote. 2¡¢Ò»¸öÏîÄ¿µÄÊ״ε¼Èëcvs import LinuxISQuote lch V_0_0_1´Ëʱµ½$CVSROOTĿ¼Ï£¬¿ÉÒÔ¿´µ½¶àÁËÒ»¸öLinuxISQuoteµÄĿ¼¡£

41.ÃüÁî¾ø¶Ô·¾¶¡£Èç¹û²»ÊǾø¶Ô·¾¶µÄ»°£¬Äã¿ÉÒÔÕâÑùÊäÈ루1£©[root@RedHat linux]# whereis adduser adduser£º /usr/sbin/adduser /usr/share/man/man8/adduser.8.gzÄãÕâÑùÊäÈë¾Í¿ÉÒÔÁË /usr/sbin/adduser xxx£¨2£© »òÕ߸Ävi /etc/profile£¬¼ÓÈëÒ»¾ä£ºPATH=$PATH£º/usr/sbin£º¡£ export PATH£¬¾Í¿ÉÒÔÖ±½ÓÊäÈëadduser

42.ÐÞ¸ÄÓû§µÄȨÏÞ¡£¸ÄÓû§È¨Ï޵Ļ°£¬Äã¿ÉÒÔ¸Ävi /etc/passwdÈ磺ÎÒÏëlll±ä³ÉºÍrootÓû§Ò»Ñù£¬¾Í¸Ä£º lll£ºx£º508£º508£º£º/home/lll£º/bin/bash¸ÄºóÃæµÄ 508 ΪºÍrootºóÃæµÄÊý¾ÝÒ»ÑùµÄ¾Í¿ÉÒÔÁË£¡

¸ÄΪ£ºlll£ºx£º508£º0£º£º/home/lll£º/bin/bash lll¾ÍÓµÓÐrootµÄȨÏÞÁË¡£

43.ÐÞ¸ÄgrubÆô¶¯Ê±µÄ±³¾°Í¼Æ¬1¡¡½«Ò»Í¼Æ¬×ª»¯³É640*480£¬14É«µÄXPMÎļþ£º#convert abc.jpg -colors 14 -geometry 640x480£¡ abc.xpm 2 ѹËõÉú³ÉµÄxpmÎļþ£¬Ê¹ÓÃgzip #gzip -9 abc.xpm 3 ½«abc.xpm.gz¿½µ½/boot/grubÏÂ4¡¡ÐÞ¸Ä/boot/grub/menu.lst splashimage=£¨hd0£¬0£©/boot/grub/abc.xpm.gz

44.VNC for LinuxµÄ°²×°1.µÚÒ»²½ÔÚlinuxÉÏ°²×°VNCserver tar zxvf vnc-X.tgz cd X cp *vnc* /usr/local/bin/ûÓÐvnc Ŀ¼£¬¾Í½¨vncĿ¼mkdir /usr/local/vnc cp -r classes/ /usr/local/vnc/ 2.ÉèÖÃvnc serverµÄ·ÃÎÊÃÜÂëvncpasswd 3.linux°ævnc serverµÄ¸Ä½ø¡£Ê×ÏÈÖ´ÐÐvncserverÐÞ¸Ä/root/.vnc/xstartupÀïµÄ twm $ Ϊgnome-session & 4.Æô¶¯vnc server vncserver×¢ÒâNew 'X' desktop is KILl£º3 ¼Çס3ÊÇ¿Í»§¶ËÒªÓõ½µÄ¶Ë¿Ú5.¿Í»§¶ËÆô¶¯vncviewer£¬ÊäÈ룺Èç192.168.1.110£º3 OK£¬Äã¾Í¿´µ½ÁË¡­¡­¹þ¡­¡­

Èç¹ûÔÚWindows¿Í»§»úÖа²×°ÁËIE»òNETSCAPE£¬»¹¿ÉÒÔÆô¶¯IE»ònetscapeÈ»ºóÔÚµØÖ·À¸ÊäÈ루Èç¹ûÊÇ1µÄ»°£©

http://192.168.1.64£º5801

45. ¸Ä±ä»ò¹Ø±ÕOracle XDBµÄftpºÍhttp¶Ë¿ÚOracle 9i¿ªÊ¼£¬´´½¨Êý¾Ý¿âʱĬÈÏ°üº¬ÁËXDBÌØÐÔ¡£Ò»µ©Æô¶¯ÁËÊý¾Ý¿âºÍListener£¬Oracle XDBµÄhttp·þÎñ¾ÍÕ¼ÓÃ8080¶Ë¿Ú£¬¸ÕºÃºÍJBoss¡¢TomcatµÈĬÈ϶˿ڳåÍ»¡£Òò´Ë£¬±ØÐëÓÐÒ»¸ö×ö³ö¸ü¸Ä¡£¸ÄTomcatµÈÈÝÒ×£¬Ö»ÊÇһʱ²»ÖªµÀÔõô¸ÄXDBµÄÅäÖá£

ÔÚGoogleÉÏËÑË÷һϣ¬ÕÒµ½Á˴𰸡£Ô­À´Oracle XDBµÄ¶Ë¿ÚÉèÖò»ÔÚÅäÖÃÎļþÖУ¬¶øÊÇÔÚÊý¾Ý¿âÀï¡£ÐÞ¸ÄXDBµÄhttpºÍftp·þÎñ¶Ë¿ÚµÄ·½·¨ÓÐ3ÖÖ£º1.ʹÓÃsysµÇ¼Oracle£¬ÀûÓÃdbms_xdbÐ޸Ķ˿ÚÉèÖÃSQL> ---- Change the HTTP/WEBDAV port from 8080 to 8081 SQL> call dbms_xdb.cfg_update£¨updateXML£¨2 dbms_xdb.cfg_get£¨£©

3 £¬ '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text£¨£©' 4 £¬ 8081£©£©

5 / Call completed. SQL> ---- Change the FTP port from 2100 to 2111 SQL> call dbms_xdb.cfg_update£¨updateXML£¨2 dbms_xdb.cfg_get£¨£©

3 £¬ '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text£¨£©' 4 £¬ 2111£©£©

5 / Call completed. SQL> COMMIT£»Commit complete. SQL> EXEC dbms_xdb.cfg_refresh£»PL/SQL procedure successfully completed. 2.ʹÓÃOEM console£¬Ñ¡ÔñÊý¾Ý¿â£¬XML Database£¬Configuration.¸ü¸ÄXDBµÄÓйØÉèÖá£

3.È¥µôÊý¾Ý¿âµÄ³õʼ»¯²ÎÊý£º dispatchers='£¨PROTOCOL=TCP£© £¨SERVICE=XDB£©'£¬½«»á½ûÖ¹XDBµÄhttpºÍftp·þÎñ¡£

46.XML for linuxµÄ°²×°ÎÒÏÂÔØÁËÁ½¸öÎļþ£ºlibxml2-2.6.13.tar.gzºÍxml4c5_4_0-redhat_80-gcc_32.tar.gz¼ÓÈë»·¾³£ºexport XERCESCROOT=/home/lch/xml export PATH=$PATH£º/home/lch/xml/bin export XERCESC_NLS_HOME=$XERCESCROOT/msg export LD_LIBRARY_PATH=$XERCESCROOT/lib£º$LD_LIBRARY_PATH £¨on Solaris£¬ Linux£©

½øÈëxml4c5_4_0-redhat_80-gcc_32.tar.gz½âѹºóµÄĿ¼runConfigure -plinux -cgcc -xg++ -rpthread¡£/configure gmake

47.ace for linuxµÄ°²×°ÓÉÓÚ°²×°ËµÃ÷Îļþ¡°ACE-INSTALL.html¡±ÖÐÌá¼°µÄlinux°²×°¹ý³Ì¼«ÉÙ£¬ÆäÖ÷ÒªÕë¶ÔUnix¡¢Windows£¬ÊÖ¶¯ÅäÖý϶࣬¼ÓÉϱ¾ÈË°²×°ºó¸Ð¾õ¡°ACE-INSTALL.html¡±ÎļþÓÐЩӰÏìÊÓÌý£¬ÒòΪÖ÷ÒªµÄ¶¯×÷¶¼¿ÉÒÔÓÉACE°üÖеݲװ½Å±¾ACE-install.sh×Ô¶¯Íê³É£¬ÎÒÃÇÖ÷ÒªµÄ¹¤×÷¾Í¿ÉÒÔÖ±½Ó¶ÔÕâ¸ö°²×°½Å±¾À´´¦Àí¼´¿É¡£

1¡¢°²×°»·¾³£ºlRedHat 9.0 ACE°²×°°üACE+TAO+CIAO.tar.gz£¬http://deuce.doc.wustl.edu/Download.html £¬ "Latest Beta Kit"£¬beta°æ¼ÈÊÇACEµÄ×îа档

2¡¢°²×°¹ý³Ì£ºµÚÒ»²½ÏÈÉèÖÃACE_ROOT»·¾³£¬ÃüÁ¡°vi /etc/profile¡±

ÔÚÆäÖмÓÈë4ÐÐACE_ROOT=/opt/ACE export ACE_ROOT LD_LIBRARY_PATH=$ACE_ROOT/ace£º$LD_LIBRARY_PATH export LD_LIBRARY_PATHÎÒÊǼÓÔÚ¡°export PATH USER¡­¡£¡±ºóµÄ¡£Íê³Éºó½«/etc/profileÖ´ÐÐÒ»´Î£¬ÃüÁ¡°chmod 555 /etc/profile¡±

¡°/etc/profile¡±

ÕâÑùÎÒÃǵÄACE_ROOT¾ÍÉèÖúÃÁË£¬¿ÉÒÔÓÃÈçÏÂÃüÁî²é¿´ACE_ROOTÊÇ·ñÉèÖúÃÁË£º¡°echo $ACE_ROOT¡±

Õâ¸öʱºò×îºÃrebootÆô¶¯Ò»´Îlinux.µÚ¶þ²½²»Òª×Ô¼ºÊÖ¹¤½«ACE+TAO+CIAO.tar.gz°üÍêÈ«½â¿ª£¬ÌرðÇ¿µ÷²»ÒªÍêÈ«½â¿ª£¬ºóÃæ¿ÉÒÔ¿´µ½°²×°½Å±¾»á¸øÎÒÃǽ⿪ËüµÄ£»Èç¹ûÄãÊÖ¹¤½â¿ªÈ«²¿£¬°²×°½Å±¾½«»á½«ÄãµÄ½âѹËõĿ¼ɾ³ýµÄ£¡ÎÒÃÇÒª×öµÄʾÍÖ»Êǽ«ACE+TAO+CIAO.tar.gz°üÖеÄACE-install.sh°²×°½Å±¾µ¥¶À½â³öÀ´£¬²¢¶ÔÆäÐ޸ġ£ÎÒÃÇÖ»ÒªÕâÒ»¸öÎļþ¾Í¿ÉÒÔ¡£

ÓÃmkdir½¨Ä¿Â¼£¬Èç/home/my/ACE£¬È»ºó½«ÄãµÄACE+TAO+CIAO.tar.gz·ÅÔÚ´ËĿ¼Ï£¨ÓÃcpÃüÁ±´»òmvÃüÁîÒƶ¯µ½´ËĿ¼£©¡£×¢ÒâÕâ¸öĿ¼½«ÊÇÄãµÄÒ»¸ö´æ·ÅACE+TAO+CIAO.tar.gzµÄĿ¼£¬°²×°½Å±¾»áÀ´Õâ¸öĿ¼ÕÒÕâ¸öÎļþµÄ£¬Õâ¸öĿ¼ºÍACE_ROOTÊDz»Ò»ÑùµÄ£¬ÇÒACE-install.shÒ²Ìáʾ²»Òª½«ÕâÁ½¸öĿ¼ÉèÖóÉͬһ¸öĿ¼¡£ACE_ROOT½«ÊÇÎÒÃǵݲװĿ±êĿ¼¡£

´ÓACE+TAO+CIAO.tar.gz½âѹ³öµ¥¸öÎļþACE-install.sh£º¡°tar -zxvf ACE+TAO+CIAO.tar.gz ACE_wrappers/ACE-install.sh¡±

½âºÃºó£¬»á³öÀ´Ò»¸öеÄ×ÓĿ¼¡°ACE_wrappers¡±¡£´Ëʱ¿ÉÒÔÏȽ«ACE-install.shÒƵ½ÍâÃæµÄĿ¼À´£º¡°mv /ACE_wrappers/ACE-install.sh .¡±

¡°¡£¡±´ú±íµ±Ç°Ä¿Â¼¡£µ±È»ACE-install.shÔÚʲô·¾¶ÏÂÊÇûʲôӰÏìµÄ£¬ÒòΪÎÒÃÇÒª¶ÔACE-install.shµÄÄÚÈݽøÐÐÐ޸ĵģ¬ÀïÃæÓкܶà·¾¶ÒªÐ޸ġ£ºÃ£¬ÏÖÔÚÔÚ/home/my/ACE¾ÍÓÐÁËACE-install.sh£¬ÎÒÃÇÏÖÔÚÓÃvi¶ÔÆä½øÐÐÐ޸ģ¬ÐÞ¸ÄÇ°×Ô¼º¿ÉÒÔÏȱ¸·ÝÒ»¸ö¡£ÃüÁ¡°cp ACE-install.sh ACE-install.sh.bak¡±

¡°vi ACE-install.sh¡±

ÎÒÃÇ¿ÉÒÔ¿´µ½È±Ê¡µÄ£¬Õâ¸öÎļþÊÇÓÃÀ´ÔÚUNIXÏÂ×ö°²×°µÄ¡£ËùÒÔÎÒÃÇÒª½«ÆäÖеÄÓйØUNIXµÄ²¿·Ö»»³Élinux¼´¿É¡£

ÏÈÕÒµ½¡°MY_ACEDIR=${HOME}/aceconfig¡±£¬½«Æä¸Ä³É¡°MY_ACEDIR=/home/my/ACE¡±£¬¾ÍÊǸijÉÎÒÃÇ×Ô¼º½¨µÄ¡¢·ÅÓÐACE+TAO+CIAO.tar.gzÎļþµÄĿ¼£¬Ö®ºóÈ¥µôÇ°ÃæµÄ×¢ÊÍ¡°#¡±ºÅ¡£

½Ó×ÅÔÚÏÂÃæÒ»µã£¬ÕÒµ½¡°MY_ACE_CONFIG=config-sunos5.4-sunc++-4.x.h¡±£¬½«ÆäÐÞ¸Ä³É ¡°MY_ACE_CONFIG=config-linux.h¡±£¬¼´¸Ä³ÉlinuxϵÄÅäÖÃÎļþ¡£¼ÌÐø¸Ä£¬ÕÒµ½¡°MY_ACE_GNU_MACROS=platform_sunos5_sunc++.GNU¡±£¬½«Æä¸Ä³É ¡°MY_ACE_GNU_MACROS=platform_linux.GNU¡±¡£Õâ¸öÊǸ÷ÖÖ²Ù×÷ϵͳƽ̨ϵÄGNUºêÎļþÉèÖá£

ºÃÁË£¬ÎļþÐÞ¸ÄÍê±Ï£¬±£´æÍ˳ö¡°£ºwq¡±¡£

µÚÈý²½ÎÒÃǵÄÖص㵽ÁË£¬ÏÖÔھͿÉÒÔ°²×°ACEÁË¡£

´ËʱӦ¸ÃÊÇÔÚ/home/my/ACEĿ¼Ï£¬ÎÒÃÇÖ´ÐУº¡£/ACE-install.sh

49¿ªÆôºǫ́talk»á»°¹¦ÄÜ¿ªÆôtalk¹¦ÄÜ£º chkconfig talk on½»Ì¸ £º talk massky£¨Óû§£©

50.²»ÈÃÏÔʾÆ÷ÐÝÃßsetterm -blank 0

51.¶¨ÖÆÓû§µÇ¼ʱÏÔʾµÄÐÅÏ¢±à¼­ /etc/motd ¼ÓÈëµÇ¼ʱҪÏÔʾµÄÐÅÏ¢

52.²é¿´Â·ÓÉÐÅÏ¢netstat -rn route -n

54.ÏÔʾӲ¼þÐÅÏ¢lsdev 55. ÏÔʾµ±Ç°¼ÓÔصĺËÐÄÄ£¿élsmod

56.ÁгöϵͳÄÚºËËùÓпÉÓõÄÄ£¿émodprobe -l

57.¸ù¾Ý½ø³ÌÃûÏÔʾ½ø³ÌºÅpidof vsftpd

58. ½«ÄÚÈݵ¹Ðò¶Á³örev file.name

59.¶¨ÖÆÓû§µÇ¼ʱÏÔʾµÄÐÅÏ¢±à¼­/etc/motd ¼ÓÈëµÇ¼ʱҪÏÔʾµÄÐÅÏ¢

60.²é¿´ÃÜÂë¹ýÆÚÐÅÏ¢change -l longinname

61.ÏÔʾ×îºóÒ»¸öµÇ¼µ½ÏµÍ³µÄÓû§last

62.ÏÔʾ×îºóÒ»¸öµÇ¼²»³É¹¦µÄµÇ¼³¢ÊÔ£¨lastbÃüÁ

Èç¹ûÔÚϵͳÉϲ»Äܹ¤×÷£¬¾ÍÐèÒªÄ㽨Á¢Ò»¸öÎļþ£ºtouch /var/log/btmp£¬È»ºóÔÚÖ´ÐÐ lastbÃüÁî¾Í¿ÉÒԲ鿴µ½×îºóÒ»¸ö²»³É¹¦µÄµÇ¼³¢ÊÔ£¬

63.ÒÔ3ÃëÖÓÖ´ÐÐÒ»¸ölsÃüÁîwatch -n 3 ls
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. ly_chaojilong ÓÚ 2009-09-08 14:54:47·¢±í:

    ÊÕ²ØÁË

  2. xiazhouquan ÓÚ 2009-09-07 18:28:30·¢±í:

    лл·ÖÏí

  3. redapp ÓÚ 2006-07-13 21:02:06·¢±í:

    ºÃÎÄÕ£¬Ç¿ÁÒÖ§³Ö