Installation and Configuration resin
Installation and Configuration resin
1. Download and extract the resin
[root@daixuan src]# pwd
/usr/local/src
http://caucho.com/products/resin/download
[root@daixuan src]# wget http://caucho.com/download/resin-4.0.45.tar.gz
[root@daixuan src]# tar zxvf resin-4.0.45.tar.gz
[root@daixuan src]# ls
resin-4.0.45
sin-4.0.45]# cd resin-4.0.45
2, compiled configuration parameters
[root@daixuan src]# ./configure --prefix=/usr/local/resin --with-java=/usr/local/jdk1.8.0_65/
Here will complain: configure: error: Can't find valid JAVA_HOME
[root@daixuan resin-4.0.45]# ./configure --prefix=/usr/local/resin --with-java-home =/usr/local/jdk1.8.0_65//add here --with- the Java -home, the error will not
[root@daixuan resin-4.0.45]# make
[root@daixuan resin-4.0.45]# make install
[root@daixuan resin-4.0.45]# ls/usr/local/resin/
app-inf conf endorsed libexec project-jars webapp-jars
bin doc lib log resin-inf webapps
[root@daixuan resin-4.0.45]# ls/etc/init.d/resin
/etc/init.d/resin
3, start the resin
[Root @ daixuan resin-4.0.45] #/etc/init.d/tomcat stop//first stopped tomcat, since they are using java
[root@daixuan resin-4.0.45]#/etc/init.d/resin start
Starting resin: .
[root@daixuan resin-4.0.45]# ps aux | grep resin
root 14270 0.0 0.0 6048 784 pts/0 S+ 00:02 0:00 grep resin
[root@daixuan resin-4.0.45]# netstat -lnp | grep java
tcp 0 0 127.0.0.1:6600 0.0.0.0:* LISTEN 14162/java
tcp 0 0 127.0.0.1:6800 0.0.0.0:* LISTEN 14210/java
tcp 0 0 :::8080 :::* LISTEN 14210/java
In the browser, enter: 192.168.101.230: 8080
4, Configuration resin, the default listening port changed to 80
[root@daixuan resin-4.0.45]# cd/usr/local/resin/conf/
[root@daixuan conf]# ls
app-default.xml cluster-default.xml health.xml keys licenses resin.properti
[root@daixuan conf]# vim resin.properties
app.http : 80
[root@daixuan conf]#/etc/init.d/resin restart
Stopping resin: .
Starting resin: .
[Root @ daixuan conf] # netstat -lnp | grep java//successfully modify the default port, use a browser to access port 80
tcp 0 0 :::80 :::* LISTEN 14548/java
5, resin how to modify the virtual host
[root@daixuan conf]# mkdir/tmp/resin
[Root @ daixuan conf] # vim resin.xml//add a virtual host configuration
<cluster id="app">
<host id="www.123.com" root-directory='.'>
<web-app id="/" root-directory="/tmp/resin"/>
</host>
</cluster>
6, resin analytical test
[root@daixuan conf]# cp/data/tomcatweb/111.jsp/tmp/resin/
[root@daixuan conf]# curl -x127.0.0.1:80 www.123.com/111.jsp
<html>
<body>
<center>
NOW time is: Thu Dec 31 00:40:21 CST 2015
</html>
Enter in your browser www.123.com/111.jsp , you can see it can be resolved properly
Related Articles
====================
Operating system: linux
Server: resin
Reporting Application: FineReport
Procedure
1. Install jdk
2. Installing the server,Case in resin
3. Configure Report Project
NO.1 Install jdk
1.First, the official website to download jdk example jdkjdk1.6, name jdk-6u2-linux-i586-rpm.bin
2.Via ftp upload jdk-6u2-linux-i586-rpm.bin
3. Command to all users to add executable permissions
chmod a+x jdk-6u2-linux-i586-rpm.bin
a:All,that is, all users, including the owner, owning group, and other users
x:Execution or switch rights, numeric code-named ”1″。
4. ./jdk-6u2-linux-i586-rpm.bin
Will generate the file jdk-6u2-linux-i586-rpm
Add execution to all users
Setup rpm -ivh jdk-6u2-linux-i586-rpm
accept the agreement, then press enter
5. Finally, set the path and classpath
export JAVA_HOME=/usr/java/jdk1.6.0_02
6.Run java -version
If java version “1.6.0_02″indicates the installation was successful
NO.2 install resin server
Preparations: resin installation files in resin official website to download linux environment
1) install jdk The previous step has been performed
2) JAVA_HOME environment variable is set correctly identified The previous step has been performed
3) Installation
Separate operation:
# tar zxvf resin-3.0.4.tar.gz
# mv resin03.0.6 /usr/local/resin
#cd /usr/local/resin
# ./configure
# make
# make install
#cd bin
#./httpd.sh start
NO.3 Configure Report Project
After installing the resin server
•The WebReport file FineReport statements installation directory packaged into a zip folder and then upload to ftp
•Under linux by visiting ftp
Cd to the resin webapps directory file folder
ftp ip address
Go to the directory where the zip package
get WebReport.zip to the current directory
exit to the current directory ftp
Webapps folder in the file
unzip WebReport.zip WebReport unzip the file to a folder under webapps
•Start resin server
Cd to the resin in the bin folder
./httpd.sh
Enter http://localhost:8080 to test whether the server starts successfully
The welcome screen appears resin explanation starts successfully
Enter http://localhost:8080/WebReport/ReportServer?op=test est environment is configured reports success
Tidak ada komentar:
Posting Komentar