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
Ïà¹ØÎĵµ£º
(±¾ÎÄ×ªÔØ)
ÔÎÄ£ºhttp://blog.csdn.net/thinkghoster/archive/2008/04/19/2307001.aspx
class
A
...
{
public
String show(D obj)
...
{
&nbs ......
´«ÖDz¥¿ÍJAVAÅàѵ2010-4-29Lucene×ܽá
½ñÌìÐÄÇé²»´í£¬±±¾©µÄÌìÖÕÓÚ¶³öÁËÌ«ÑôÄÇ»¨¶ùÒ»°ãµÄÁ³µ°¶ù£¬ÐÄÇéÒ²²»ÓÉÒò´Ë¶øÉú³öϲÔã¬ÈË×ÜÊÇ»áÊÜ»·¾³µÄÓ°Ï죬ÏÂÎç»ØÀ´ÐÂÎÅÖÐÎÒ¿´µ½¹ã¶«ÄDZ߷¢ÉúµÄÊ£¬ÎÒÐÄÇé˵²»³öÀ´µÄ³ÁÖØ£¬ÎªÊ²Ã´ÕâЩÈ˲»ºÃºÃÕäϧÉú»îÄØ£¿ÎªÊ²Ã´ÒªÄÃÄÇЩÎÞ¹¼µÄСº¢×Ó³öÆø£¬°¦£¡
Éú»îÒÀȻҪ¼ÌÐø£¬Ñ§Ï°ÒÀ¾ÉÒª¼ÌÐ ......
JDK
Sun JDK
http://java.sun.com/javase/downloads/index.jsp
IBM JDK
http://www.ibm.com/developerworks/java/
http://www.ibm.com/developerworks/cn/java/
IDE:
Eclipse
http://www.eclipse.org/
Container:
Apache HTTP server
http://www.apache.org/
Tomcat: JSP,Servlet,JavaBean container.
http:// ......
1¡¢Ñ§»áÔõôÉèÖû·¾³±äÁ¿
´ð°¸£ºÔÚÎҵĵçÄÔÀïÉèÖÃ
2¡¢Ñ§»áÔõôÉèÖÃjava ³ÌÐòÊäÈë²ÎÊý
´ð°¸£ºmain ²ÎÊýÊý×é
3 ѧ»áÔõôÉèÖà classpath·¾¶£¬ÒÔ¼°classpathÊǸÉôµÄ
´ð°¸£ºÒýÓõÄÀàµÄ·¾¶
4 ÖªµÀjarÎÄ ......
Ã²ËÆ±È½Ï¶à£¬²»¹ý¶à¶®µã£¬Ò²Ã»Ê²Ã´²»ºÃ¡£
1¡¢ÊìϤjdbc£¬»áÓÃjdbc¡£
2 »áдsqlºÍ´æ´¢¹ý³Ì¡£
3¡¢ÊìϤswing¿Ø¼þ¡¢²»¹ý²»½¨ÒéÓÃswing¿ª·¢¿Í»§¶Ë
4 ÊìϤ swt£¬rcp ¿Í»§¶Ë£¬½¨ÒéÓÃrcp¿ª·¢¿Í»§¶Ë
5 ÊìϤjsp servlet
6 ÊìϤtomcat£¬ÖÁÉÙÖªµÀweb¡£x ......