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

LinuxÓ¦Óü¼ÇÉÖ®ÓÐÎÊÓдð

·¢²¼Ê±¼ä:2006-10-22 09:18:15À´Ô´:ºìÁª×÷Õß:snqyss
ÎÊ£ºÇëÎÊLinuxÏÂÓÐûÓжϵãÐø´«µÄÈí¼þ£¿
ÎÊ£ºÎÒÒÔÇ°ÊÇ×öWindowsϵͳ¹ÜÀíµÄ£¬ÏÖÔÚתµ½LinuxÏÂÓÐЩ²»Ï°¹ßÈ«×Ö·û½çÃ棬µ«Êǹ«Ë¾²»ÔÊÐíÔÚ·þÎñÆ÷ÉÏ×°X-Windowϵͳ£¬ÇëÎÊÓÐûÓпÉÒÔÔ¶³Ì¹ÜÀíµÄͼÐι¤¾ß£¿
ÎÊ£ºÊ¹ÓÃApache¼ÜÉèWebÕ¾µãºó£¬ÎÒ°ÑÎĵµÂ·¾¶ÓÉ/var/www/html/ÐÞ¸ÄΪ/home/myweb£¬ÖØÐÂÆô¶¯Apacheºó£¬ÊäÈë¸úÔ­À´Ò»ÑùµÄURLºóÏÔʾÈçÏ´íÎó£º
Forbidden
You don't have permission to access / on this server.
ÕâÊÇÔõô»ØÊ£¿
´ð£ºÇëÈ·ÈÏ/home/mywebÓë/var/html/wwwµÄȨÏÞÊôÐÔÊÇ·ñÏàͬ£¬Web·ÃÎÊÐèÒª¡°drwxr-xr-x¡±È¨ÏÞ¡£Èç¹ûÎļþµÄȨÏÞÏàͬ£¬¾ÍÊÇÒòΪ/homeĿ¼µÄȨÏÞºÍ/var/htmlĿ¼µÄ²»Í¬¡£
ÎÊ£ºÎÒÔÚ°²×°Fedora Core 1.0ʱѡÔñÆôÓ÷À»ðǽ£¬ÏÖÔÚа²×°ÁËÒ»¸öÈí¼þ£¬ÐèÒªÆôÓÃTCPЭÒéµÄ1521¶Ë¿Ú¡£ÈçºÎ²Ù×÷iptablesʹÆäÄܹ»Ë³Àûͨ¹ý1521¶Ë¿Ú£¿¾ÍÏñWWW¡¢telnetºÍFTPµÈÄÜ˳Àûͨ¹ý·À»ðǽһÑù¡£
´ð£º¿ÉÒÔÊÔÊÔÒÔÏÂÃüÁ
#iptables -A INPUT -p tcp --dport 1521 -j ACCEPT
#/etc/rc.d/init.d/iptables save
ÎÊ£ºÇëÎÊLinuxÏÂÓÐûÓжϵãÐø´«µÄÈí¼þ£¿
ÎÊ£ºÎÒÒÔÇ°ÊÇ×öWindowsϵͳ¹ÜÀíµÄ£¬ÏÖÔÚתµ½LinuxÏÂÓÐЩ²»Ï°¹ßÈ«×Ö·û½çÃ棬µ«Êǹ«Ë¾²»ÔÊÐíÔÚ·þÎñÆ÷ÉÏ×°X-Windowϵͳ£¬ÇëÎÊÓÐûÓпÉÒÔÔ¶³Ì¹ÜÀíµÄͼÐι¤¾ß£¿
ÎÊ£ºÊ¹ÓÃApache¼ÜÉèWebÕ¾µãºó£¬ÎÒ°ÑÎĵµÂ·¾¶ÓÉ/var/www/html/ÐÞ¸ÄΪ/home/myweb£¬ÖØÐÂÆô¶¯Apacheºó£¬ÊäÈë¸úÔ­À´Ò»ÑùµÄURLºóÏÔʾÈçÏ´íÎó£º
Forbidden
You don't have permission to access / on this server.
ÕâÊÇÔõô»ØÊ£¿
´ð£ºÇëÈ·ÈÏ/home/mywebÓë/var/html/wwwµÄȨÏÞÊôÐÔÊÇ·ñÏàͬ£¬Web·ÃÎÊÐèÒª¡°drwxr-xr-x¡±È¨ÏÞ¡£Èç¹ûÎļþµÄȨÏÞÏàͬ£¬¾ÍÊÇÒòΪ/homeĿ¼µÄȨÏÞºÍ/var/htmlĿ¼µÄ²»Í¬¡£
ÎÊ£ºÎÒÔÚ°²×°Fedora Core 1.0ʱѡÔñÆôÓ÷À»ðǽ£¬ÏÖÔÚа²×°ÁËÒ»¸öÈí¼þ£¬ÐèÒªÆôÓÃTCPЭÒéµÄ1521¶Ë¿Ú¡£ÈçºÎ²Ù×÷iptablesʹÆäÄܹ»Ë³Àûͨ¹ý1521¶Ë¿Ú£¿¾ÍÏñWWW¡¢telnetºÍFTPµÈÄÜ˳Àûͨ¹ý·À»ðǽһÑù¡£
´ð£º¿ÉÒÔÊÔÊÔÒÔÏÂÃüÁ
#iptables -A INPUT -p tcp --dport 1521 -j ACCEPT
#/etc/rc.d/init.d/iptables save
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 5 ÌõÆÀÂÛ

  1. suker ÓÚ 2006-10-28 09:37:12·¢±í:

    Ö§³Öһϡ£ÐÁ¿àÄúÁË

  2. 1111sbb ÓÚ 2006-10-26 23:16:38·¢±í:

    :0L :0L

  3. xkx ÓÚ 2006-10-26 14:31:40·¢±í:

    :time:1 :0L

  4. lancy_lancy ÓÚ 2006-10-25 15:06:50·¢±í:

    ѧϰ!!

  5. shian ÓÚ 2006-10-23 09:24:49·¢±í:

    ........²»´í,Ö§³ÖÒ»ÏÂ....