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

java Óʼþ·þÎñÆ÷Ö®james°²×°ÅäÖÃ


James Óʼþ·þÎñÆ÷µÄ°²×°ºÍÅäÖÃ
»·¾³:
Óʼþ·þÎñÆ÷:
²Ù×÷ϵͳ:REDHAT LINUX AS 4
IP:192.168.1.108
×ÓÍøÑÚÂë:255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¿Í»§¶Ë:
²Ù×÷ϵͳ:windows 2003
IP :192.168.1.2
×ÓÍøÑÚÂë:255.255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¼òµ¥½éÉÜÒ»ÏÂÓʼþ·þÎñÆ÷µÄÅäÖû·¾³
ÒѾ­°²×°ºÃÁË,apache,php,mysql,tomcat
·¾¶·Ö±ðÊÇ
/usr/local/apache
/usr/local/php
/usr/local/mysql
/usr/local/tomcat
Jdk °²×°µÄÊÇ1.6
·¾¶ÊÇ/usr/java
ÏÂÃæ½éÉÜ°²×°µÄÕû¸ö¹ý³ÌºÍ×¢ÒâÊÂÏî
1. ÏÂÔØËùÐèÒªµÄÈí¼þ
[url]http://james.apache.org/[/url]
2. °²×°¹ý³Ì
ÎÒ°ÑJamesÉÏ´«µ½ÎҵķþÎñÆ÷µÄ·¾¶ÊÇ/usr/local/software
#cd /usr/local/software
#tar zxvf james-2.3.1
#mv james-2.3.1 /usr/local/james
#cd /usr/local/james
#cd bin
#chmod +x run.sh
#chmod +x phoenix
×¢Òâ²»Ð޸ĿÉÄܲ»ÄÜÔËÐÐ
#./run.sh
³öÏÖÒÔϽçÃæ:
 
±íʾ°²×°Õý³£½øÐÐ.,ÕâʱjamesÒѾ­ÔËÐÐ…
ÔËÐÐjames֮ǰҪÏÈÍ£µôϵͳ×Ô´øµÄsendmailÓʼþ·þÎñ,·ñÔòÒ²»á±¨´í....
Èç¹ûÏëÍ£µôµÄ»°,¿ªÒ»¸öSHELL,,,,,,,ÓÃKILLÃüÁî½áÊø½ø³Ì¾Í¿ÉÒÔÁË,»òÕßÖ±½Ócrtl+cµô,Ò²¿ÉÒÔµÄ,ºÇºÇ...
°²×°¹ý³ÌÖпÉÄܳöÏÖ´íÎó,Çë²é¿´ÊÇ·ñÊÇ·À»ðǽ×èµ²ÁËjamesÔËÐÐËùÐèÒªµÄ¶Ë¿Ú,25,110.4555
ͨ¹ý±à¼­iptablesÎļþ,´ò¿ªÏàÓ¦µÄ¶Ë¿Ú.,¼ÇµÃÖØÐÂÆô¶¯·À»ðǽ.ÃüÁî:service iptables restart
ÏÂÃæͨ¹ýÐÞ¸ÄCONFIG.XMLÅäÖÃÎļþʵÏÖÊÕ·¢Óʼþ.
ͨ¹ýkillÃüÁîɱËÀjamesµÄ½ø³Ì,»òÖ±½Óctl+c
#cd /usr/local/james/apps/SAR-INF
#vi config.xml
ÐÞ¸Ä/usr/local/james/apps/SAR-INF/config.xml
#
<postmaster>postmaster@redhat</postmaster>
... ...
<servername>redhat</servername>
… …
×¢Ê͵ôÒÔÏÂÄÚÈÝ
<mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
            <processor> relay-denied </processor>
            <notice>550 - Requested action not taken: relaying denied</notice>
         </mailet>
Ìí¼ÓDNS
       &n


Ïà¹ØÎĵµ£º

һƪ²»´íµÄ½éÉÜJava Socket±à³ÌµÄÎÄÕÂ

 
ÊÂʵÉÏÍøÂç±à³Ì¼òµ¥µÄÀí½â¾ÍÊÇÁ½Ì¨¼ÆËã»úÏ໥ͨѶÊý¾Ý¶øÒÑ¡£¶ÔÓÚ³ÌÐòÔ±¶øÑÔ£¬È¥ÕÆÎÕÒ»ÖÖ±à³Ì½Ó¿Ú²¢Ê¹ÓÃÒ»ÖÖ±à³ÌÄ£ÐÍÏà¶Ô¾Í»áÏԵüòµ¥µÄ¶àÁË¡£Java SDKÌṩһЩÏà¶Ô¼òµ¥µÄApiÀ´Íê³ÉÕâЩ¹¤×÷£¬Socket¾ÍÊÇÆäÖÐÖ®Ò»¡£
¶ÔÓÚJava¶øÑÔ¡£ÕâЩApi´æÔÚÓëJava.netÕâ¸ö°üÀïÃæ¡£Òò´ËÖ»Òªµ¼ÈëÕâ¸ö°ü¾Í¿ÉÒÔ×¼±¸ÍøÂç±à³ÌÁË¡£ÍøÂç± ......

Java±à³Ì£ºÊµÀý·ÖÎöJ2MEÍøÂç±à³ÌµÄÁ½ÖÖ·½·¨


ºËÐÄÌáʾ£º±¾ÎÄÃèÊöÁËÔÚJ2meÖпª·¢Ö÷ҪʹÓõÄÍøÂçÁ¬½Ó·½·¨£¬·Ö±ðÏêϸ½éÉÜÁËʹÓÃhttpºÍsocketÁ½ÖÖ·½·¨¡£ HttpConnection Ê×ÏÈÎÒÃÇÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó°É£º Ö÷ÒªÓõ½µÄjava°ü£º javax.microedition.io.*; public String requestGET(String URLString,String URL) throws
±¾ÎÄÃèÊöÁËÔÚJ2meÖпª·¢Ö÷ҪʹÓõÄÍøÂçÁ¬½Ó·½·¨£¬ ......

java ¶ÁдÎļþ²Ù×÷


Java¶ÁÎļþдÎļþ²Ù×÷
By Aillo on March 27, 2008 7:56 PM | 0 Comments | Previous | Next | EDIT
    ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº ......

¶þ¡¢Ð½¨Ò»¸öjava´°¿Ú

1¡¢Ê×ÏÈ´ó¼Ò×îºÃÈ¥ÏÂÔØÒ»¸ödesigner µÄeclipse ²å¼þ
2¡¢È»ºó·ÅÈëeclipse °²×°Ä¿Â¼ÏµÄpluginĿ¼ÏÂ
3¡¢ÖØÐÂÆô¶¯eclipse
4  н¨Ò»¸öjava swing project
5, н¨Ò»¸öwindow£¬È»ºóµãÔËÐУ¬¾Í»á³öÏÖÒ»¸ö×î¼òµ¥µÄ´°¿Ú¡£
µ±È»£¬ÄãÒ²¿ÉÒÔн¨Ò»¸öclass Window£¬È»ºóÊäÈëÈçÏ´úÂë
import java.awt.Dimension;
import ......

°Ë Ò»¸öJAVA°¸Àý

   ¼ÙÉèÐèÇó(ÈçÓÐÀ×ͬ£¬´¿ÊôÇɺÏ)£º
     ÓÐÒ»¸öÈ«¹úÐԵĴóÆóÒµ£¬ÔÚÈ«¹ú¸÷µØÐèÒª²¿ÊðÉÏǧ̨¿Í»§»ú£¬ÕâЩ¿Í»§»úÐèҪʵʱÓë·þÎñÆ÷½»»¥£¬½øÐÐÊý¾Ý´¦Àí¡£ÊµÊ±ÐÔÒªÇó¸ß£¬°²È«ÐԸߣ¬ÒªÇóÖ§³ÖÊÂÎñ£¬ÒÔ¼°²»ÖжϷþÎñ¡£
   
Ó²¼þ²¿Êð£º
  1¡¢ 3000̨¿Í»§»ú
  2¡¢ 10̨· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ