Freebsd + Resin is successfully created to support the jsp platform

Source: Internet
Author: User

Environment: FreeBsd 4.9 apache (the most popular WEB server platform on the Unix platform) 1.3.29 + php4.3.4 + MySQL (the best combination with PHP) 4 + ports Installation

First, synchronize ports with cvsup,

/Usr/local/bin/cvsup-g-L 2/usr/local/etc/ports-supfile

/Usr/local/bin/cvsup-g-L 2/usr/local/etc/stable-supfile

Then go to http://www.freebsd.org/ports/java.html

Go to the official website of bsd on java and collect all the software required by the jdk-1.4.2p5. Put it in/usr/ports/distfiles.


Then enter/usr/ports/java/jdk14

Preferred download j2sdk-1_4_2_02-linux-i586.bin

Then # sh./j2sdk-1_4_2_02-linux-i586.bin ----- undo. In this example, copy

/Usr/local/linux-sun-jdk1.4.2/

Use setenv ALT_BOOTDIR/usr/local/linux-sun-jdk1.4.2/(point to the directory you extracted)


# Make is common during this time. Break ~~~

# Make install

Note: errors may occur during installation.

Environment variables can be used in make ..

(You should modify this sentence as prompted by the error. In this example, add

Freebsd # unsetenv LANG
Freebsd # unsetenv JAVA_HOME
Freebsd # unsetenv CLASSPATH
Freebsd # setenv ALT_JAVAWS_BOOTDIR/usr/local/jdk1.4.2
Freebsd # setenv ALT_BOOTDIR/usr/local/linux-sun-jdk1.4.2/

If no error occurs.

You can see it under/usr/local.

/Usr/local/jdk1.4.2 directory.

Then test/usr/local/jdk1.4.2/bin/java-version.

Freebsd #./java-version
Java version "1.4.2-p5"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-fuweb_11_dec_2003_16_38)
Java HotSpot (TM) Client VM (build 1.4.2-p5-fuweb_11_dec_2003_16_38, mixed mode)


The following is displayed. Indicates that jdk is successfully installed.

 

Install resin below (a free JSP running platform)

Resin(a free jspruntime platform running -3.0.4.tar.gz is under this package, the latest cp to/usr/local

# Tar zxvf resin(a free jspruntime platform running -3.0.4.tar.gz
Set setenv JAVA_HOME/usr/local/jdk1.4.2
#./Configure -- with-apxs =/usr/local/sbin/apxs
# Make
# Make install

Then enter/usr/local/resin (a free JSP running platform)-3.0.4/bin
Modify the httpd. sh file.

# You can predefine JAVA_HOME and resin (a free JSP running platform) _ HOME
#
JAVA_HOME =/usr/local/jdk1.4.2
Export JAVA_HOME
#
Resin (a free JSP running platform) _ HOME =/usr/local/resin (a free JSP running platform)-3.0.4
Export resin (a free JSP running platform) _ HOME

Wq!


Note: apache (the most popular WEB server platform on the Unix platform) is at/usr/local/etc/apache (the most popular WEB server platform on the Unix platform)/httpd. conf will add the following modules,

#
# Mod_caucho resin (a free JSP running platform) Configuration
#

LoadModule caucho_module/usr/local/libexec/apache (the most popular WEB server platform on Unix)/mod_caucho.so
Resin (a free JSP running platform) ConfigServer localhost 6802

If so. Integration successful

Start resin (a free JSP running platform)
Http: // 218.24.233.13: 8080 successful

Then configure resin (a free JSP running platform). conf

Go to/usr/local/resin (a free JSP running platform)-3.0.4/conf

Vi resin (a free JSP running platform). conf

.

Edit the following.

My server is a virtual host. Make one of the domain names support jsp (preferred for SUN Enterprise applications)


The configuration is as follows.

Freebsd # pwd
<! --
-Resin (a free JSP running platform) 3.0 configuration file.
-->
<Resin (a free JSP running platform) xml (standardization is getting closer and closer) ns = "http://caucho.com/ns/resin (a free JSP running platform)">
<! --
-Logging configuration for the JDK logging API.
-->
<Log name = level = info path = stdout: timestamp = [% H: % M: % S. % s]/>
<Log name = com. caucho. java level = fine path = stdout:
Timestamp = [% H: % M: % S. % s]/>
<Log name = com. caucho. loader level = config path = stdout:
Timestamp = [% H: % M: % S. % s]/>

<! --
-For production sites, change dependency-check-interval to something
-Like 600 s, so it only checks for updates every 10 minutes.
-->
<Dependency-check-interval> 10 s </dependency-check-interval>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.