fantaxy025025 发表于 2013-1-30 02:08:56

linux下jdk和tomcat安装

数据库informix
 
<!-- ><style>v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><!--><!-- ><xml> <w:WordDocument><w:View>Normal</w:View><w:Zoom>0</w:Zoom><w:PunctuationKerning/><w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><w:ValidateAgainstSchemas/><w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid><w:IgnoreMixedContent>false</w:IgnoreMixedContent><w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText><w:Compatibility>   <w:SpaceForUL/>   <w:BalanceSingleByteDoubleByteWidth/>   <w:DoNotLeaveBackslashAlone/>   <w:ULTrailSpace/>   <w:DoNotExpandShiftReturn/>   <w:AdjustLineHeightInTable/>   <w:BreakWrappedTables/>   <w:SnapToGridInCell/>   <w:WrapTextWithPunct/>   <w:UseAsianBreakRules/>   <w:DontGrowAutofit/>   <w:UseFELayout/></w:Compatibility><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument></xml><!--><!-- ><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles></xml><!--><!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;mso-font-charset:0;mso-generic-font-family:swiss;mso-font-pitch:variable;mso-font-signature:536871559 0 0 0 415 0;}@font-face{font-family:楷体;panose-1:0 0 0 0 0 0 0 0 0 0;mso-font-alt:宋体;mso-font-charset:134;mso-generic-font-family:swiss;mso-font-format:other;mso-font-pitch:variable;mso-font-signature:1 135135232 16 0 262144 0;}@font-face{font-family:"\@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"\@楷体";panose-1:0 0 0 0 0 0 0 0 0 0;mso-font-charset:134;mso-generic-font-family:swiss;mso-font-format:other;mso-font-pitch:variable;mso-font-signature:1 135135232 16 0 262144 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;line-height:150%;mso-pagination:none;tab-stops:355.6pt;font-size:12.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-hansi-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman";mso-font-kerning:1.0pt;}h1{mso-style-name:"标题 1\,H1\,PIM 1\,h1\,l1\,Head1\,Heading apps\,1st level\,Section Head\,Heading 11\,level 1\,Level 1 Head\,heading 1\,Heading 0\,1\.\,123321\,Head 1\,Head 11\,Head 12\,Head 111\,Head 13\,Head 112\,Head 14\,Head 113\,Head 15\,Head 114\,Head 16\,Head 115\,Head 17\,Head 116\,Head 18\,H11";mso-style-parent:"";mso-style-next:正文;margin-top:18.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:1.6pt;text-align:center;text-indent:-21.6pt;page-break-before:always;mso-pagination:widow-orphan lines-together;page-break-after:avoid;mso-outline-level:1;mso-list:l0 level1 lfo1;tab-stops:list 34.0pt;font-size:18.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-hansi-font-family:"Times New Roman";mso-font-kerning:1.0pt;mso-bidi-font-weight:normal;mso-no-proof:yes;}h2{mso-style-name:"标题 2\,第一章 标题 2\,Heading 2 Hidden\,Heading 2 CCBS\,heading 2\,H2\,h2\,PIM2\,Titre3\,HD2\,sect 1\.2\,H21\,sect 1\.21\,H22\,sect 1\.22\,H211\,sect 1\.211\,H23\,sect 1\.23\,H212\,sect 1\.212\,DO\,ISO1\,Underrubrik1\,prop2\,UNDERRUBRIK 1-2\,2\,Level 2 Head\,L2\,2nd level\,Header 2\,l2\,Titr\,标题词";mso-style-update:auto;mso-style-parent:"";mso-style-next:正文;margin-top:12.0pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:14.2pt;text-indent:-14.2pt;line-height:150%;mso-pagination:widow-orphan lines-together;page-break-after:avoid;mso-outline-level:2;mso-list:l0 level2 lfo1;tab-stops:list 36.0pt;font-size:16.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-hansi-font-family:Arial;mso-bidi-font-weight:normal;mso-no-proof:yes;}h3{mso-style-name:"标题 3\,Heading 3 - old\,h3\,3rd level\,H3\,level_3\,PIM 3\,Level 3 Head\,sect1\.2\.3\,sect1\.2\.31\,sect1\.2\.32\,sect1\.2\.311\,sect1\.2\.33\,sect1\.2\.312\,Bold Head\,bh\,3\,3heading\,heading 3\,prop3\,Underrubrik2\,Heading 31\,Arial 12 Fett\,l3\,CT\,Heading 3\,Heading 3 hidden\,2h\,h31\,h32";mso-style-update:auto;mso-style-parent:"";mso-style-next:正文;margin-top:6.0pt;margin-right:0cm;margin-bottom:6.0pt;margin-left:16.0pt;text-indent:-36.0pt;line-height:150%;mso-pagination:widow-orphan lines-together;page-break-after:avoid;mso-outline-level:3;mso-list:l0 level3 lfo1;tab-stops:list 34.0pt;font-size:15.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-hansi-font-family:Arial;mso-bidi-font-weight:normal;mso-bidi-font-style:italic;mso-no-proof:yes;}p.MsoHeader, li.MsoHeader, div.MsoHeader{mso-style-update:auto;mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:widow-orphan;tab-stops:center 207.65pt right 415.3pt;layout-grid-mode:char;border:none;mso-border-bottom-alt:solid windowtext .75pt;padding:0cm;mso-padding-alt:0cm 0cm 0cm 0cm;font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:宋体;mso-hansi-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman";mso-no-proof:yes;}a:link, span.MsoHyperlink{color:blue;font-style:italic;mso-bidi-font-style:normal;text-decoration:underline;text-underline:single;}a:visited, span.MsoHyperlinkFollowed{color:purple;text-decoration:underline;text-underline:single;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:21.0cm 842.0pt;margin:70.9pt 2.0cm 42.55pt 2.0cm;mso-header-margin:42.55pt;mso-footer-margin:39.7pt;mso-paper-source:0;layout-grid:16.3pt;}div.Section1{page:Section1;} /* List Definitions */ @list l0{mso-list-id:9182403;mso-list-template-ids:-2095156254;}@list l0:level1{mso-level-number-format:chinese-counting-thousand;mso-level-style-link:"标题 1";mso-level-text:第%1章;mso-level-tab-stop:34.0pt;mso-level-number-position:left;margin-left:1.6pt;text-indent:-21.6pt;}@list l0:level2{mso-level-style-link:"标题 2";mso-level-legal-format:yes;mso-level-text:"%1\.%2";mso-level-tab-stop:36.0pt;mso-level-number-position:left;margin-left:14.2pt;text-indent:-14.2pt;}@list l0:level3{mso-level-style-link:"标题 3";mso-level-legal-format:yes;mso-level-text:"%1\.%2\.%3";mso-level-tab-stop:34.0pt;mso-level-number-position:left;margin-left:16.0pt;text-indent:-36.0pt;}@list l0:level4{mso-level-legal-format:yes;mso-level-text:"%1\.%2\.%3\.%4";mso-level-tab-stop:34.0pt;mso-level-number-position:left;margin-left:23.2pt;text-indent:-43.2pt;}@list l0:level5{mso-level-legal-format:yes;mso-level-text:"%1\.%2\.%3\.%4\.%5";mso-level-tab-stop:70.0pt;mso-level-number-position:left;margin-left:30.4pt;text-indent:-50.4pt;}@list l0:level6{mso-level-legal-format:yes;mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";mso-level-tab-stop:88.0pt;mso-level-number-position:left;margin-left:37.6pt;text-indent:-57.6pt;}@list l0:level7{mso-level-legal-format:yes;mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";mso-level-tab-stop:106.0pt;mso-level-number-position:left;margin-left:44.8pt;text-indent:-64.8pt;}@list l0:level8{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";mso-level-tab-stop:52.0pt;mso-level-number-position:left;margin-left:52.0pt;text-indent:-72.0pt;}@list l0:level9{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";mso-level-tab-stop:59.2pt;mso-level-number-position:left;margin-left:59.2pt;text-indent:-79.2pt;}@list l1{mso-list-id:886260595;mso-list-type:hybrid;mso-list-template-ids:-10291970 -987702026 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l1:level1{mso-level-number-format:japanese-counting;mso-level-text:%1.;mso-level-tab-stop:25.0pt;mso-level-number-position:left;margin-left:25.0pt;text-indent:-24.0pt;mso-ansi-font-size:12.0pt;font-family:楷体;}@list l2{mso-list-id:2141485357;mso-list-type:hybrid;mso-list-template-ids:1089124336 -713017280 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l2:level1{mso-level-number-format:japanese-counting;mso-level-text:%1.;mso-level-tab-stop:24.0pt;mso-level-number-position:left;margin-left:24.0pt;text-indent:-24.0pt;}ol{margin-bottom:0cm;}ul{margin-bottom:0cm;}--><!-- ><style> /* Style Definitions */ table.MsoNormalTable{mso-style-name:普通表格;mso-tstyle-rowband-size:0;mso-tstyle-colband-size:0;mso-style-noshow:yes;mso-style-parent:"";mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-para-margin:0cm;mso-para-margin-bottom:.0001pt;mso-pagination:widow-orphan;font-size:10.0pt;font-family:"Times New Roman";mso-ansi-language:#0400;mso-fareast-language:#0400;mso-bidi-language:#0400;}</style><!-->
 javac test.java
                             java test
输出结果:Hello World!
OK,jdk安装成功。</p><a name="_Toc111435897"><!-- -->1.2     <!-- -->Tomcat服务器配置

<!-- -->一.<!-- -->安装Tomcat之前,你要保证你的系统上已经安装了jdk
<!-- -->二.<!-- -->将下载的tomcat版本apache-tomcat-5.5.23.tar.gz 上传到/home/user下。
  gunzip apache-tomcat-5.5.23.tar.gz
      tar -xvf apache-tomcat-5.5.23.tar
设置路径
编辑文件.bashrc
加入环境变量export TOMCAT_HOME=/home/user/apache-tomcat-5.5.23
激活ROOT
ROOT的缺省设置是没有激活(disabled).为了激活ROOT,打开文件
      apache-tomcat-5.5.23/conf/server.xml
然后把
    <!--
    <Contextpath="" docBase="ROOT" debug="0"/>
    -->
的注释去掉,即去掉<!--和-->.
<!-- -->三.<!-- -->上传ifxjdbc.jar和ifxjdbcx.jar到apache-tomcat-5.5.23/common/lib下
<!-- -->四.<!-- -->配置好环境变量以后你试试在浏览器中敲入: http://ip:8080/(ip为tomcat服务器的ip地址)出现Tomcat的主页面,则tomcat安装成功。
应用程序的安装:
修改配置文件tomcat/conf/server.xml
加入应用程序的项目名称    
把context_informix_tomcat5.xml中的内容加入到server.xml
注意把docBase="D:\crm\web"的路径改为docBase="crm"
 
在/apache-tomcat-5.5.23/webapps/目录下建立目录crm,将文件crm.war解压到该目录下。
jarxvf crm.war
<!-- -->五.<!-- -->在浏览器中敲入: http://ip:8080/crm
 
tomcat的启动
一.用root用户登录
二.cd /home/apache-tomcat-5.5.23/bin/
三.执行 ./startup.sh,正常情况可以看到   
 Using CATALINA_BASE:   /home/user/apache-tomcat-5.5.23
UsingCATALINA_HOME:  /home/user/apache-tomcat-5.5.23
UsingCATALINA_TMPDIR: /home/user/apache-tomcat-5.5.23/temp
UsingJRE_HOME:       /usr/java/jdk1.5.0_11
四.执行 ./shutdown.sh,即停掉tomcat。
 
补充:设置Tomcat内存,在$TOMCAT/bin/Catalina.sh文件中的加入
JAVA_OPTS='-Xms400m –Xmx800m'就可以了。
 
页: [1]
查看完整版本: linux下jdk和tomcat安装