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

linux java/jsp »ñȡϵͳµ±Ç°Ê±¼äÎÊÌâ

JSPÔ´´úÂë
 <%
   //»ñȡϵͳʱ¼ä
   //String ddate=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime());
   TimeZone tz = TimeZone.getTimeZone("ETC/GMT-8"); 
    TimeZone.setDefault(tz);
    java.util.Date date = new java.util.Date();//»ñµÃϵͳʱ¼ä.
          String nowTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);//½«Ê±¼ä¸ñʽת»»³É·ûºÏTimestampÒªÇóµÄ¸ñʽ.
          //Timestamp goodsC_date = Timestamp.valueOf(nowTime);//°Ñʱ¼äת»»
   %>
ÔÚwindowsÏÂÔËÐпÉÒÔ
µ«ÍøÒ³´«µ½linux:CentOS5.3ϳöÎÊÌâ
²î°ËСʱ£¬ºóÀ´²é×ÊÁÏ£¬
¸ÄÓÃÒÔÏ´úÂ룺
 <%
   //»ñȡϵͳʱ¼ä
   //String ddate=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime()); 
   //TimeZone tz = TimeZone.getTimeZone("ETC/GMT-8"); 
   TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai");
    TimeZone.setDefault(tz);
    java.util.Date date = new java.util.Date();//»ñµÃϵͳʱ¼ä.
          String nowTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);//½«Ê±¼ä¸ñʽת»»³É·ûºÏTimestampÒªÇóµÄ¸ñʽ.
          //Timestamp goodsC_date = Timestamp.valueOf(nowTime);//°Ñʱ¼äת»»
   %>
¾ÍÕý³£ÁË¡£
¸ù¾Ý×ÊÁÏ£¬²é¿´
/usr/share/zoneinfo
·¢ÏÖ£¬²»ÊÇETC¶øÊÇEtc£¬¹ÊÐÞÕý´úÂ룺
 <%
   //»ñȡϵͳʱ¼ä
   //String ddate=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime());
   TimeZone tz = TimeZone.getTimeZone("Etc/GMT-8");
 //  TimeZone tz = TimeZone.getTimeZone("Asia/Shanghai");
    TimeZone.setDefault(tz);
    java.util.Date date = new java.util.Date();//


Ïà¹ØÎĵµ£º

Linux²Ù×÷ϵͳÏÂÈýÖÖÅäÖû·¾³±äÁ¿µÄ·½·¨


ÏÖÔÚʹÓÃlinuxµÄÅóÓÑÔ½À´Ô½¶àÁË£¬ÔÚlinuxÏÂ×ö¿ª·¢Ê×ÏȾÍÊÇÐèÒªÅäÖû·¾³±äÁ¿£¬ÏÂÃæÒÔÅäÖÃjava»·¾³±äÁ¿ÎªÀý½éÉÜÈýÖÖÅäÖû·¾³±äÁ¿µÄ·½·¨¡£
 
1.ÐÞ¸Ä/etc/profileÎļþ
Èç¹ûÄãµÄ¼ÆËã»ú½ö½ö×÷Ϊ¿ª·¢Ê¹ÓÃÊ±ÍÆ¼öʹÓÃÕâÖÖ·½·¨£¬ÒòΪËùÓÐÓû§µÄshell¶¼ÓÐȨʹÓÃÕâЩ»·¾³±äÁ¿£¬¿ÉÄÜ»á¸øÏµÍ³´øÀ´°²È«ÐÔÎÊÌâ¡£
 
(1)Ó ......

ÔÚÐéÄâ»úÖеÄlinuxϰ²×°tomcatºÍ²¿ÊðÏîÄ¿

×î½üѧϰÁËÔÚlinuxϲ¿ÊðÏîÄ¿£¬Ð´Ð´Ðĵá£
1.°²×°ÐéÄâ»úºó£¬ÅäºÃÍøÂ磬ÇŽÓ×îÈÝÒ×Å䣬ֱ½ÓÔÚlinuxÏÂʹÓÃͬһ¸öÍø¶ÎµÄÈÎÒâipµØÖ·¼´¿É¡£Ë³±ã°ÑvmµÄ¼¸¸öÍøÂçµÄ·þÎñ¸øÍ£ÁË¡£
2.ºÜÖØÒªµÄÒ»µã£¬°ÑlinuxµÄ°²È«ÅäÖÃÉèÖúᣲ¢¿ªÆôsshd·þÎñ
3.ÏÂÔØwindowsÖÐÐèÒªÁ½¸ö¹¤¾ß£ºputtyfile_0.60cn.zip winscp403setupintl.exe
ǰÕßΪԶ³ ......

AdeosÔÚLinuxÖеÄʵÏÖ·ÖÎö

Ô­ÎÄ£ºhttp://linux.chinaunix.net/bbs/thread-793613-1-1.html
±¾ÎÄÀ´×ÔÓÚÔ­ÎÄÄÚÈÝ£¬µ«ÊǶÔÎÄÕµÄÄÚÈÝÓë½á¹¹×öÁ˼òµ¥µ÷Õû¡£
1  ½éÉÜ
¿¼Âǵ½´ÓÓ²¼þ²ã¿ªÊ¼¹¹½¨Ò»¸ö²Ù×÷ϵͳµÄÄѶȣ¬Adeos²¢Ã»Óв¢Ã»ÓдÓÁ㿪ʼ¹¹½¨Ò»¸öÓ²¼þ³éÏó²ã£»Ä¿Ç°£¬AdeosÊÇ»ùÓÚLinuxÄÚºËʵÏֵģ¬ÕâÑùµÄ»°£¬¾Í¿ÉÒÔ½«ÏµÍ³µÄÆô¶¯ºÍ³õʼ»¯¹¤×÷¶¼ÓÉLi ......

ÓÃJSPÀ´ÊµÏÖÎļþÏÂÔØ¹¦Äܵļ¸ÖÖ·½Ê½

1.×îÖ±½Ó×î¼òµ¥µÄ£¬·½Ê½ÊǰÑÎļþµØÖ·Ö±½Ó·Åµ½htmlÒ³ÃæµÄÒ»¸öÁ´½ÓÖС£ÕâÑù×öµÄȱµãÊǰÑÎļþÔÚ·þÎñÆ÷ÉϵÄ·¾¶±©Â¶ÁË£¬²¢ÇÒ»¹ÎÞ·¨¶ÔÎļþÏÂÔØ½øÐÐÆäËüµÄ¿ØÖÆ£¨ÈçȨÏÞ£©¡£Õâ¸ö¾Í²»Ð´Ê¾ÀýÁË¡£
2.ÔÚ·þÎñÆ÷¶Ë°ÑÎļþת»»³ÉÊä³öÁ÷£¬Ð´Èëµ½response£¬ÒÔresponse°ÑÎļþ´øµ½ä¯ÀÀÆ÷£¬ÓÉä¯ÀÀÆ÷À´ÌáʾÓû§ÊÇ·ñÔ¸Òâ±£´æÎļþµ½±¾µØ¡£
3.¼ÈÈ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ