您的位置:新葡亰496net > 新葡亰496net > 新葡亰496net:Linux下什么搭建j2ee的周转条件,境

新葡亰496net:Linux下什么搭建j2ee的周转条件,境

发布时间:2019-12-01 00:11编辑:新葡亰496net浏览(106)

    自个儿01-06年走立即任于Alibaba,还算精晓电商网址的周转全经过,现在香岛成立好教练网,因项目扩展,特在那搜索技能权威参预,希望搭建起6-8人的技能团队。

    一.Tomact简介

    JEESZ遍布式构造1--CentOs下安装jdk7(境遇策动),1--centosjdk7

    宣称:因为运维条件是基于Linux系统的,在做此框架此前须要做一些早先时代的条件策动专业
    CentOs下安装jdk7网络多多实例,因为博客中期作为框架的原生教程,故那边做详细的装置记录

    首 先在CentOs下下载jdk7解压文件,tar包安装(近来Oracle官方上,对于文本的下载,加了库克ie验证机制,所以直接下载文件包,会出现找不到的失实,最老土的点子,本地下载,使用FTP上传服务器卡塔尔,小编那边已经下载好了,通过ssh已经上盛传钦定的目录,这里直接教学安装的长河。

    意气风发、计划职业 
    卸载OpenJDK
    1.查找需求卸载的OpenJDK
    [[email protected] /] rpm -qa |grep openjdk | grep -v grep 
    Java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64 
    java-1.6.0-openjdk-devel-1.6.0.34-1.13.6.1.el7_0.x86_64 
    java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.el7_0.x86_64 
    java-1.6.0-openjdk-1.6.0.34-1.13.6.1.el7_0.x86_64

    java-1.7.0-openjdk-devel-1.7.0.75-2.5.4.2.el7_0.x86_64

    2.生机勃勃风流浪漫卸载

    [[email protected] /] rpm -e --nodepsjava-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64 
    [[email protected] /] rpm -e–nodeps java-1.6.0-openjdk-devel-1.6.0.34-1.13.6.1.el7_0.x86_64 
    [[email protected] /] rpm -e–nodeps java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.el7_0.x86_64 
    [[email protected] /] rpm -e–nodeps java-1.6.0-openjdk-1.6.0.34-1.13.6.1.el7_0.x86_64 
    [[email protected] /] rpm -e –nodepsjava-1.7.0-openjdk-devel-1.7.0.75-2.5.4.2.el7_0.x86_64 
    注:权限不足,请使用su root权限

    二、安装配备JDK7

    1.解压安装jdk文件

    [[email protected] /] tar-zxvf jdk-7u75-linux-x64.tar.gz 
    ./jdk1.7.0_45/jre/lib/management/snmp.acl.template
    ./jdk1.7.0_45/jre/lib/logging.properties
    ...
    ...
    ...
    ./jdk1.7.0_45/db/LICENSE
    ./jdk1.7.0_45/db/NOTICE
    ./jdk1.7.0_45/db/3RDPARTY
    ./jdk1.7.0_45/db/README-JDK.html
    [[email protected] tools]# ls
    jdk1.7.0_45  jdk1.7.0_45.tar.gz
    [[email protected] tools]# mkdir /usr/java
    [[email protected] tools]# mv jdk1.7.0_45/ /home/java/jdk1.7
    [[email protected] tools]# rm -rf . jdk1.7.0_45

    2.配置JDK7
    编辑/etc/profile文件
    [[email protected] jdk1.7]# vi /etc/profile
    在/etc/profile文件尾巴部分加多
    export JAVA_HOME=/usr/java/1.7.0_45
    exportCLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    export PATH=$PATH:$JAVA_HOME/bin
    动用source /etc/profile命令重新加载/etc/profile文件,使改善的原委在近期shell窗口中生效

    三、测试
    [[email protected] ~]# java -version
    Java version "1.7.0_45"
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

    表示曾经安装成功~~~

     

    甘当领会越来越多的技能知识分享可参谋源码:

    有乐趣的爱侣们方可前往球球哦~一齐享受学习技巧:2042849237

    请大家持续关切搭建遍布式结构2--CentOs下安装汤姆cat7(意况策画)

    评释:因为运营条件是基于Linux系统的,在做此框架以前须求做一些最早的意况准...

    后天把windows下j2ee的运作情状搭建好了。因为集团服务器用的都以linux,所以前几天把在linux下j2ee的运营条件也搭建转眼。下面是自个儿总体测量试验ok的事必躬亲日记:

    Hadoop的Client搭建-即集群外主机访问Hadoop

    Hadoop的Client搭建-即集群外主机访谈Hadoop

    1、扩展主机映射(与namenode的照耀相像卡塔尔(قطر‎:

    日增最后生机勃勃行

    [[email protected] ~]# su - root

    [[email protected] ~]# vi /etc/hosts
    127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1        localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.48.129    hadoop-master
    [[email protected] ~]#

    2、新建客户hadoop

    建立hadoop用户组

    新建客户,useradd -d /usr/hadoop -g hadoop -m hadoop (新建顾客hadoop钦定顾客主目录/usr/hadoop 及所属组hadoop)

    passwd hadoop 设置hadoop密码(这里安装密码为hadoop)

    [[email protected] ~]# groupadd hadoop 
    [[email protected] ~]# useradd -d /usr/hadoop -g hadoop -m hadoop
    [[email protected] ~]# passwd hadoop

    3、配置jdk环境

    此次安装的是hadoop-2.7.5,必要JDK 7以上版本。若已设置可跳过。

    JDK安装可参谋: 或 CentOS7.2安装JDK1.7 

    照旧直接拷贝master上的JDK文件更利于保证版本的豆蔻梢头致性。

    [[email protected] java]# su - root
    [[email protected] java]# mkdir -p /usr/java
    [[email protected] java]# scp -r [email protected]:/usr/java/jdk1.7.0_79 /usr/java
    [[email protected] java]# ll
    total 12
    drwxr-xr-x. 8 root root 4096 Feb 13 01:34 default
    drwxr-xr-x. 8 root root 4096 Feb 13 01:34 jdk1.7.0_79
    drwxr-xr-x. 8 root root 4096 Feb 13 01:34 latest

    设置Java及hadoop境遇变量

    确保/usr/java/jdk1.7.0.79存在

    su - root

    vi /etc/profile

    确保/usr/java/jdk1.7.0.79存在

    unset i
    unset -f pathmunge
    JAVA_HOME=/usr/java/jdk1.7.0_79
    CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    PATH=/usr/hadoop/hadoop-2.7.5/bin:$JAVA_HOME/bin:$PATH

    安装生效(首要)

    [[email protected] ~]# source /etc/profile
    [[email protected] ~]#

    JDK安装后认同:

    [[email protected] ~]$ java -version
    java version "1.7.0_79"
    Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
    [[email protected] ~]$

    4、设置hadoop的环境变量

    拷贝namenode春日安排好的hadoop目录到前段时间主机

    [[email protected] ~]# su - hadoop
    Last login: Sat Feb 24 14:04:55 CST 2018 on pts/1
    [[email protected] ~]$ pwd
    /usr/hadoop
    [[email protected] ~]$ scp -r [email protected]:/usr/hadoop/hadoop-2.7.5 .
    The authenticity of host 'hadoop-master (192.168.48.129)' can't be established.
    ECDSA key fingerprint is 1e:cd:d1:3d:b0:5b:62:45:a3:63:df:c7:7a:0f:b8:7c.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'hadoop-master,192.168.48.129' (ECDSA) to the list of known hosts.
    [email protected]'s password:

    [[email protected] ~]$ ll
    total 0
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Desktop
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Documents
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Downloads
    drwxr-xr-x 10 hadoop hadoop 150 Feb 24 14:30 hadoop-2.7.5
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Music
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Pictures
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Public
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Templates
    drwxr-xr-x  2 hadoop hadoop  6 Feb 24 11:32 Videos
    [[email protected] ~]$

    到此,Hadoop的客商端安装纵然实现了,接下去就可以利用了。

    实施hadoop命令结果如下,

    [[email protected] ~]$ hadoop
    Usage: hadoop [--config confdir] [COMMAND | CLASSNAME]
      CLASSNAME            run the class named CLASSNAME
     or
      where COMMAND is one of:
      fs                  run a generic filesystem user client
      version              print the version
      jar <jar>            run a jar file
                          note: please use "yarn jar" to launch
                                YARN applications, not this command.
      checknative [-a|-h]  check native hadoop and compression libraries availability
      distcp <srcurl> <desturl> copy file or directories recursively
      archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
      classpath            prints the class path needed to get the
      credential          interact with credential providers
                          Hadoop jar and the required libraries
      daemonlog            get/set the log level for each daemon
      trace                view and modify Hadoop tracing settings

    Most commands print help when invoked w/o parameters.
    [[email protected] ~]$

    5、使用hadoop

    开创本和姑件

    [[email protected] ~]$ hdfs dfs -ls
    Found 1 items
    drwxr-xr-x  - hadoop supergroup          0 2018-02-22 23:41 output
    [[email protected] ~]$ vi my-local.txt
    hello boy!
    yehyeh

    上传当半夏件至集群

    [[email protected] ~]$ hdfs dfs -mkdir upload
    [[email protected] ~]$ hdfs dfs -ls upload
    [[email protected] ~]$ hdfs dfs -ls
    Found 2 items
    drwxr-xr-x  - hadoop supergroup          0 2018-02-22 23:41 output
    drwxr-xr-x  - hadoop supergroup          0 2018-02-23 22:38 upload
    [[email protected] ~]$ hdfs dfs -ls upload
    [[email protected] ~]$ hdfs dfs -put my-local.txt upload
    [[email protected] ~]$ hdfs dfs -ls upload
    Found 1 items
    -rw-r--r--  3 hadoop supergroup        18 2018-02-23 22:45 upload/my-local.txt
    [[email protected] ~]$ hdfs dfs -cat upload/my-local.txt
    hello boy!
    yehyeh
    [[email protected] ~]$

    ps:注意本地java版本与master拷贝过来的文书中/etc/hadoop-env.sh配置的JAVA_HOME是或不是要保持风度翩翩致未有证实过,本文是保持生龙活虎致的。

    Hadoop2.3-HA高可用集群蒙受搭建 

    Hadoop项目之基于CentOS7的Cloudera 5.10.1(CDH)的安装铺排 

    Hadoop2.7.2集群搭建精解(高可用) 

    行使Ambari来配置Hadoop集群(搭建内网HDP源) 

    Ubuntu 14.04下Hadoop集群安装 

    CentOS 6.7安装Hadoop 2.7.2 

    Ubuntu 16.04上创设遍及式Hadoop-2.7.3集群 

    CentOS 7 下 Hadoop 2.6.4 分布式集群意况搭建 

    Hadoop2.7.3 斯Parker2.1.0一心布满式集群搭建进程 

    Hadoop的Client搭建-即集群外主机访谈Hadoop 1、扩充主机映射(与namenode的投射同样卡塔尔(英语:State of Qatar): 增添最终风姿洒脱行 [...

    有效期:截止到2011年年底!

    1.tomact是apache软件基金会的多少个骨干项目。由apache、SUN和其他的黄金时代对商厦及个体一同研究开发的;tomact是贰个盛放源代码,运转servlet和JSP Web应用程式的基于Java的WebAPP容器;;tomact是微型的轻量级应用服务器,适用于小型和中等系统或许是拜望顾客不是特意多的景况。

    一、JDK安装(安装在/usr/java目录下)

    信用合作社创办已3年了,目前已过了初创期,步向成长时间了。我们属于“教育及培养可以业”,公司主营“生活教练、集团教练和体育操练”行当,近些日子主营业务为学车教练。新加盟的同被害者要精力在于开垦新的行业。公司的品类前途没不不荒谬商家愿与同事一齐享受劳动成果!热爱代码,能实际创作崇高的源码,合意将复杂的专门的学业轻松化合意数学,向往数据库,逻辑思量强语言不限量,不管你用net如故php照旧java皆可(但网址的前台暂且不会接收java,自个儿有从此以后遗症)懂点构造设计、会煎熬服务器配置、懂点项目管理、懂点技士管理。在电商网址呆过优先思索,懂寻觅配置及排名的事情发生从前思量

    @1.servelet:server applet 服务器端的小程序

    1、下载:jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin
    地址:
    windows下将zip格式的解压出jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin
    再传到linux服务器的/usr/java目录下

    首先年的现钞及期货合作选择权的百分比需面谈,同仁一视,

    @2.servelet容器:管理和平运动作servelet的。

    2、给文件加上可进行权限
    [[email protected] java]# chmod x jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin

    企业地址:8号线江月路大巴站旁QQ:56740701msn:[email protected]gtalk: [email protected]简历投递:[email protected]本人和讯:www.weibo.com/caohanmin好教练网创办人:大曹

    优势:能够很好的管理动态页面,跨平台也合情合理。JSP

    3.执行jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin
    [[email protected] java]# ./jdk-7-ea-bin-b26-linux-i586-24_apr_2008.bin
    机关安装生成目录jdk1.7.0

    破绽:管理静态页面缓慢,配置文件的可配置性不强。

    4.陈设情况变量
    景况变量配置有三种艺术分别是:改良/etc/profile文件,校正客商目录下的.bashrc文件,直接在shell下修改)笔者修正了/etc/profile文件:
    [[email protected] java]# vi /etc/profile
    开垦文件后,按i 键,在文书后增多:

    2.JSP:是生龙活虎种以java作为脚本语言些的两个劳动于http的应用程序

    JAVA_HOME=/usr/java/jdk1.7.0
    PATH=$JAVA_HOME/bin:$PATH
    CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
    export JAVA_HOME PATH CLASSPATH

    3.装置tomcat需要的软件包

    按esc 键
    输入:wq 保存退出。
    双重起动服务器

    apache-tomcat-6.0.16.tar.gz

    6.测验配置际遇
    写个简易的HelloWorld来测量试验一下
    [[email protected] java]# vi HelloWorld.java
    文本中输入:

    jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz

    public class HelloWorld{
    public static void main(String args[]){
    System.out.println(”Hello World in Linux!!”);
    }
    }

    jdk-1_5_0_16-linux-i586.bin

    :wq 保存退出
    [[email protected] java]# javac HelloWorld.java
    平素不不当,接下去:
    [[email protected] java]# java HelloWorld
    shell下输出:

    JiveForumsPro4_crack.tar.gz

    Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorld/java
    Caused by: java.lang.ClassNotFoundException: HelloWorld.java
    at java.net.URLClassLoader$1.run(URLClassLoader.java:220)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:209)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:208)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:338)
    Error: Could not find the main class.
    Error: A JNI error has occurred, please check your installation and try again

    mysql-connector-java-3.1.14.tar.gz

    (下边难点是何原因,可是好像不影响上边jsp的运作 ^_^ 姑且算作jdk安装成功吗。)

    二.现实配置

    二、tomcat安装:(相像设置在/usr/java目录下)
    下载地址:

    1.部署java环境

    1、解压到/usr/java目录:
    [[email protected] java]# tar -zxvf jakarta-tomcat-5.0.28.tar.gz
    /usr/java目录下将应时而生一个新的目录jakarta-tomcat-5.0.28

    1.安装

    2、创立贰个文件链接:
    [[email protected] java]# ln -s jakarta-tomcat-5.0.28 tomcat

    [[email protected] ~]# chmod x jdk-1_5_0_16-linux-i586.bin

    3、配置CATALINA_HOME:
    [[email protected] java]# vi /etc/profile
    在文书尾增添
    CATALINA_HOME=/usr/java/tomcat
    export CATALINA_HOME
    :wq 保存退出

    [[email protected] ~]# cp -ajdk1.5.0_16/ /usr/local/java

    4、启动tomcat:
    [[email protected] tomcat]# bin/startup.sh
    shell下输出:

    2.配备java情状变量

    Using CATALINA_BASE: /usr/java/tomcat
    Using CATALINA_HOME: /usr/java/tomcat
    Using CATALINA_TMPDIR: /usr/java/tomcat/temp
    Using JAVA_HOME: /usr/java/jdk1.7.0

    [[email protected] ~]# vim /etc/profile//设置一些path路线

    5、浏览器中输入: 将应际而生tomcat接待页面 ^_^

    JAVA_HOME=/usr/local/java

    6、管理tomcat:
    [[email protected] tomcat]# vi conf/tomcat-users.xml
    在和之间踏入:

    PATH=$JAVA_HOME/bin:$PATH

    7、重启系统:
    浏览器中输入: 登录后就足以来管理了
    输入 来管理你的工程项目了

    CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

    1. Linux中应用系统库文件来减弱职业量
    2. 检查测量试验在Linux系统下U盘是不是已连接的不二秘诀
    3. Linux EXT3下删除MySQL数据库的数据复苏

    export JAVA_HOME PATH CLASSPATH

    ...

    [[email protected] ~]# . /etc/profile//重启配置文件

    [[email protected] ~]# java -version//查看java版本

    java version "1.5.0_16"

    [[email protected] tmp]# vim hello.java

    public class hello {

    public static void main(String[] args){

    System.out.println("hello all");

    }

    }

    [[email protected] tmp]# javac hello.java

    [[email protected] tmp]# java hello

    hello all

    2.安装tomact

    (1)解压

    [[email protected] ~]# tar zxvf apache-tomcat-6.0.16.tar.gz

    [[email protected] ~]# cp -aapache-tomcat-6.0.16 /usr/local/tomcat

    (2)定义tomcat的境况变量:

    [[email protected]新葡亰496net:Linux下什么搭建j2ee的周转条件,境遇希图。 ~]# vim /etc/profile

    CATALINA_BASE=/usr/local/tomcat

    CATALINA_HOME=/usr/local/tomcat

    新葡亰496net,PATH=$CATALINA_HOME/bin:$PATH

    export CATALINA_BASE CATALINA_HOME PATH

    [[email protected] ~]# . /etc/profile

    [[email protected] bin]# pwd

    /usr/local/tomcat/bin

    [[email protected] bin]# startup.sh//运维服务

    Using CATALINA_BASE: /usr/local/tomcat

    Using CATALINA_HOME: /usr/local/tomcat

    Using CATALINA_TMPDIR: /usr/local/tomcat/temp

    Using JRE_HOME: /usr/local/java

    测试

    新葡亰496net 1

    3.安装java论坛

    [[email protected] ]# tar zxvf JiveForumsPro4_crack.tar.gz

    [[email protected] ~]# cp -ajive/ /usr/local/tomcat/webapps/

    4.安装mysql

    [[email protected] ~]# yum install -y mysql-server

    [[email protected] ~]# /etc/init.d/mysqld restart

    [[email protected] ~]# mysqladmin -u root password 123

    [[email protected] ~]# mysql -u root -p

    Enter password:

    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    [[email protected] ~]# mysql -u root -p

    Enter password:

    Welcome to the MySQL monitor. Commands end with ; or g.

    Your MySQL connection id is 4

    Server version: 5.0.77 Source distribution

    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

    mysql> create database jivedb; //创造数据库

    Query OK, 1 row affected (0.00 sec)

    mysql> grant all on jivedb.* to [email protected] identified by "123456";

    Query OK, 0 rows affected (0.00 sec)

    mysql> flush privileges;//更新权限

    Query OK, 0 rows affected (0.00 sec)

    mysql> quit

    Bye

    [[email protected] ~]# cd /usr/local/tomcat/webapps/jive/database

    [[email protected] database]# mysql -u root -p jivedb < jive_forums_mysql.sql

    Enter password:

    [[email protected] database]#

    安装mysql驱动

    [[email protected] ~]# tar zxvf mysql-connector-java-3.1.14.tar.gz

    [[email protected] ~]# cd mysql-connector-java-3.1.14

    [[email protected] mysql-connector-java-3.1.14]# cp mysql-connector-java-3.1.14-bin.jar /usr/local/tomcat/lib/

    亟需重启tomcat:

    [[email protected] ~]# . /etc/profile

    [[email protected] ~]# shutdown.sh

    Using CATALINA_BASE: /usr/local/tomcat

    Using CATALINA_HOME: /usr/local/tomcat

    Using CATALINA_TMPDIR: /usr/local/tomcat/temp

    Using JRE_HOME: /usr/local/java

    [[email protected] ~]# startup.sh

    Using CATALINA_BASE: /usr/local/tomcat

    Using CATALINA_HOME: /usr/local/tomcat

    Using CATALINA_TMPDIR: /usr/local/tomcat/temp

    Using JRE_HOME: /usr/local/java

    三.apache与tomcat连接

    [[email protected] ~]# tar zxvf jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz

    [[email protected] ~]# cp -r jakarta-tomcat-connectors-jk2-2.0.4-src /usr/local/tomcat-connect

    [[email protected] ~]# cd /usr/local/tomcat-connect/jk/native2

    编写翻译模块是有供给的:apxs

    httpd-devel --> apxs

    [[email protected] ~]# yum install -y httpd httpd-devel

    [[email protected] native2]# which apxs

    /usr/sbin/apxs

    [[email protected] native2]pwd

    /usr/local/tomcat-connect/jk/native2

    [[email protected] native2]# ./configure --with-apxs2=/usr/sbin/apxs

    configure: error: C preprocessor "/lib/cpp" fails sanity check

    See `config.log' for more details.//错误!!!

    化解方法

    [[email protected] ~]# yum install gcc* -y

    [[email protected] native2]# ./configure --with-apxs2=/usr/sbin/apxs

    [[email protected] native2]# make

    [[email protected] native2]# make install

    make: *** No rule to make target `install'. Stop.//错误!!!

    化解格局

    [[email protected] native2]# cd /usr/local/tomcat-connect/jk/build/jk2/apache2

    [[email protected] apache2]# cp mod_jk2.so /etc/httpd/modules/

    校订apache的布署文件,把新编写翻译的模块增添进去:

    [[email protected] apache2]# vim /etc/httpd/conf/httpd.conf

    200 LoadModule jk2_module modules/mod_jk2.so

    [[email protected] apache2]# cp /usr/local/tomcat-connect/jk/conf/workers2.properties /etc/httpd/conf/

    [[email protected] apache2]# vim /etc/httpd/conf/workers2.properties

    [uri:/jive/*]

    info=map the tomcat

    [uri:/manager/*]

    info=map the tomcat

    [uri:/*.jsp]

    info=map the tomcat

    [[email protected] apache2]# /etc/init.d/httpd restart

    Stopping httpd: [OK ]

    Starting httpd: [ OK ]

    [[email protected] apache2]# shutdown.sh

    Using CATALINA_BASE: /usr/local/tomcat

    Using CATALINA_HOME: /usr/local/tomcat

    Using CATALINA_TMPDIR: /usr/local/tomcat/temp

    Using JRE_HOME: /usr/local/java

    [[email protected] apache2]# startup.sh

    Using CATALINA_BASE: /usr/local/tomcat

    Using CATALINA_HOME: /usr/local/tomcat

    Using CATALINA_TMPDIR: /usr/local/tomcat/temp

    Using JRE_HOME: /usr/local/java

    测验:即便您利用80端口能够访谈jive论坛,那么成功。

    新葡亰496net 2

    1.tomact是apache软件基金会的二个宗旨项目。由apache、SUN和别的的有的集团及民用合营研究开发的;tomact是贰个盛开源代码,运转...

    本文由新葡亰496net发布于新葡亰496net,转载请注明出处:新葡亰496net:Linux下什么搭建j2ee的周转条件,境

    关键词: