ÔÚUnix/LinuxÉÏÁî(java)JVMÖ§³ÖÖÐÎÄÊä³ö
Ò»¡¢ÔÚUnix/LinuxÉÏÁîJVMÖ§³ÖÖÐÎÄÊä³ö
Èç¹ûÓû§Ê¹ÓõÄÊÇUNIXµÄÔ¶³Ì·þÎñÆ÷£¬¾Í»áÓöµ½ÖÐÎÄ×ÖÌåÔÚͼÏñÖÐÊä³öµÄÎÊÌ⣬ÌرðÊÇÓÉÓÚÐí¶à¹ÜÀíÔ±²¢²»Ï²»¶°ÑÖ÷»úµÄlocale¶¨Îªzh(ÒòΪÒâζ×Å¿ÉÄܳöÂÒÂë»ò±ØÐëװ΢ÐÎͼÐÎÖÕ¶ËÏózhcon£¬µ«ºÜ¶àÇé¿öÏÂÕâÑùµÄÌõ¼þ²¢²»¾ß±¸)¡£´ó²¿·Ö³ÌÐòÔ±µÄJAVA¾Ñ鹶ÏÞÓÚJSP½Å±¾³ÌÐò£¬²¿·ÖÊìÁ·µÄ³ÌÐòÔ±´ó¸Å¿ª·¢¹ýÖмä¼þ¡¢servlet¡¢applet»òÔÚWINDOWSÉÏÔËÐеÄGUI³ÌÐò¡£Èç¹û¿ª·¢µÄjfreechartÊÇʹÓÃWINDOWS×÷ΪÖ÷»úÔËÐеĻ°£¬¿ÉÒÔÂÔ¹ýÕâÒ»¶Î£¬µ«Èç¹ûʹÓõÄÊÇUNIXÀàÐ͵ķþÎñÆ÷µÄ»°£¬¾Í³£³£Óöµ½ÒâÏë²»µ½µÄÖÐÎÄÏÔʾÀ§ÄÑ£¬ÉõÖÁ»¹Î´µ½Êä³öÖÐÎÄ×ÖÌåµÄ½×¶Î£¬³ÌÐò¾Í±¨¸æ displayÒì³£´íÎó¡£ÔÒò¾ÍÔÚÓÚ£¬JAVA awtÔÀ´ÊÇÕë¶Ô(X)windows GUI±àдµÄ³ÌÐò£¬Ëü³£³£ÐèҪʹÓÃdisplay 1:0µÄÉèÖÃÉ趨ÏÔʾ·½Ê½£¬ÔÚ·þÎñÆ÷ģʽÏÂ(Ïójsp»òservlet)£¬¸ù±¾¾Í²»»áÓÐXWindownsÔËÐУ¬Õâʱ¾Í»áÔÚÐí¶à³ÌÐòÖÐÒýÆðcan not got display setting to 0:0µÄ´íÎ󣬰üÀ¨jfreechart¡£½â¾ö°ì·¨ÊÇÔÚJVMÆô¶¯ÖÐÔö¼Ó-Djava.awt.headless=trueµÄÉèÖᣵ«ÕâÑùÓÖ´øÀ´ÁíÒ»¸öÎÊÌ⣬»áÁîʹÓÃÏóframe.getImage()·½·¨µÄ´úÂëÖÐÒýÆðheadless Exception£¬µ¼Ö³ÌÐòÖÐÖ¹,¶øʹÓÃImageBufferµÄ³ÌÐò¾Í²»»áÊܵ½Ó°Ïì¡£
ÏójfreechartÕâÑù»ùÓÚjava awt£¬java Swing, java 2D APIºÍ³ÌÐòÓ¦Óõ½Linux/UNIXÉÏ£¬ÖÐÎÄ×ÖÌåµÄÊä³öÊÇÒ»¸ö±ØÐë½â¾öµÄÎÊÌ⣬·ñÔòÁ¬jfreereport¶¼²»ÄÜʹÓÃÁË¡£servletÒ²»áÅöµ½ÀàËƵÄÎÊÌ⣬µ«½â¾ö·½Ê½ÏÔµÃÏà¶Ô¼òµ¥£¬servlet packageÒѾÄÚÖÃÁ˽â¾ö°ì·¨£¬Ò»°ãÇé¿öÏ£¬ÔÚ servleţͷÉèÁ½¾ä£º
response.setContentType("text/html;charset=UTF-8");request.setCharacterEncoding("UTF-8");
ÖÐÎÄÂÒÂë¾Í²»µÃ´æÔÚ¡£Óë¼òµ¥µÄjsp/servlet×Ö·û¼¯×ª»»Ïà±È£¬Õâ¸öÎÊÌâÒª¸´Ôӵö࣬ÉõÖÁ±ÈÒ»°ãµÄlinuxÖÐÎÄ»¯»¹Òª¸´ÔÓ¡£ÔÚÕý³£Çé¿öÏ£¬ jreÖ»°üº¬ÉÙÊý¼¸ÖÖ×ÖÌ壨Font£©£¬µ«¿ÉÒÔ´ÓX ϵͳ£¬Ïówindows»ñµÃϲ»¶µÄ×ÖÌåÖ§³Ö£»Òò´Ë£¬Èç¹û¿ª·¢ÕߺÍʹÓÃÕßÊÇÔÚÖÐÎÄWINDOWSϵͳÉÏ¿ª·¢£¬´ó¸Å²»»á·¢¾õÎÊÌâµÄ´æÔÚ¡£µ«Ò»µ©µ±³ÌÐò·¢²¼µ½ UNIX/LinuxϵͳÉϺ󣬾ͻᷢÏÖͼÐÎÖеÄÖÐÎÄ×Ö·û³ÉΪһ¸ö¸öµÄÎʺŻòÕßС·½¿ò¡£¶ø´Ëʱ£¬Ïójsp/servletÕâÑùµÄ³ÌÐòÔÚ¿Í»§¶ËµÄÏÔʾȴÊÇÍêÈ«Õý³£µÄ¡£Ò»°ãÇé¿öÏ£¬JAVAĬÈÏÇé¿öÏÂÊÇʹÓÃen_OTF-8,»òÕßISO_8859_1¶ÁÈë×Ö·û´®£¬Òò´Ë£¬ÏóJSPͨ³£Ê¹ÓôÓ8859_1Ç¿ÖÆתÐÍΪgb3312/GBK,¾Í¿ÉÒÔÕý³£ÏÔʾÖÐÎÄ£¬µ«ÊÇÔÚÉÏÊöµÄÇéÐÎÏ£¬ÕâÖÖÇ¿ÖÆתÐ͵ØÊÇÍêÈ«ÎÞЧµÄ¡£ÎªÊ²Ã´ÄØ£¿Èç¹û³ÌÐòÔ±µÄϵͳ¸ÅÄîÊÇÇåÎúµÄ»°£
Ïà¹ØÎĵµ£º
1¡¢LINUXϵͳÆô¶¯¼¶±ð
²é¿´/etc/inittabÎļþ£¬ÆäÖ÷ÒªÄÚÈÝÈçÏ£º
#
0
-
halt (Do NOT set initdefault to
this
)
#
1
-
Single user mode
#
2
-
Multiuser, without NFS ......
±¾È˲Ù×÷ϵͳ»·¾³ÊÇUBUNTU 8.04 ÔÚ³¬¼¶È¨ÏÞÏ°²×°³É¹¦,½ö¹©²Î¿¼(Ç°ÌáµÃ°²×°Linux °æ±¾JDK)
»ù±¾½éÉÜ:
Tomcat
ÊÇÒ»¸öÃâ·ÑµÄ¿ªÔ´µÄSerlvetÈÝÆ÷£¬ËüÊÇApache»ù½ð»áµÄJakartaÏîÄ¿ÖеÄÒ»¸öºËÐÄÏîÄ¿£¬ÓÉApache£¬SunºÍÆäËüһЩ¹«Ë¾¼°¸öÈ˹²Í¬¿ª·¢¶ø³É¡£ÓÉÓÚÓÐÁËSunµÄ²ÎÓëºÍÖ§³Ö£¬×îеÄServletºÍJsp¹æ·¶×ÜÄÜÔÚTomcatÖ ......
1. cd -> ·µ»Ø½øÈë´ËĿ¼֮ǰËùÔÚµÄĿ¼£ºcd -
2. ÉÏÒ»ÌõÃüÁî ->
!! È«²¿µÄÉÏÒ»ÌõÃüÁî
!* ÉÏÒ»ÌõÃüÁîµÄÈ«²¿²ÎÊý
& ......
ת×Ô:http://blog.163.com/haizai219@126/blog/static/44412555200962751636461/
inuxÏÂJDKºÍTomcatµÄ°²×°
Tomcat
2009-07-27 17:16:36
ÔĶÁ503
ÆÀÂÛ0
×ֺţº´ó
ÖÐ
С
1.
²Î¿¼£º
l   ......