In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Resin, a product of CAUCHO, is a very popular application server, which provides good support for servlet and JSP and has good performance. Resin itself is also developed using JAVA syntax and its function is similar to that of tomcat.
Resin version is divided into ordinary version and pro version; it is mainly different from pro version, which supports caching and load balancing, and this version has powerful cache features; Resin itself includes a WEB server that supports HTTP/1.1. It can not only display dynamic content, but also has strong ability to display static content.
Resin can also work with other WEB servers, such as nginx\ apache\ IIS, etc. Resin supports servlets2.3 and jsp1.2 standards. Users who are familiar with ASP and PHP can find it convenient to program JSP with Resin. Resin adds php parsing execution function, which can execute php programs, but it is not as good as the native version of php.
Prerequisite resin program requires JDK support, but JDK requires version 6.0 or later
JDK can download the relevant version of JDK from the official website of oracle. It is recommended to use a stable version of JDK program.
Install resinCentos/RedHat rpm install load public key [root@jia /] # rpm-- import http://caucho.com/download/rpm/RPM-GPG-KEY-caucho installation package (pro version) [root@jia /] # yum-y install http://caucho.com/download/rpm/4.0.30/x86_64/resin-pro-4.0.30-1.x86_64.rpm [root@jia /] # yum-y install http : / / caucho.com/download/rpm-6.8/4.0.63/x86_64/resin-4.0.63-1.x86_64.rpmUbuntu/Debian deb install add repository [root@jia /] # add-apt-repository http://caucho.com/download/debian update local repository [root@jia /] # apt-get update installation package (pro version) [root@jia /] # apt- y install resin- Pro installation package (normal version) [root@jia /] # apt-y install resin compilation and installation based on Linux
Install dependent softwar
Install dependency Software (redhat/centos) [root@jia /] # yum-y install wget gcc make gcc-c++ install dependency Software (ubuntu/Debian) [root@jia /] # apt-y install wget gcc make
Download the JDK package and extract it
To download the software package, please move to the JAVA official website. After download, upload the software package to the linux server.
Extract the JDK package [root@jia /] # tar zxf jdk-8u231-linux-x64.tar.gz-C / usr/local
Configure environment variables
[root@jia /] # cp / etc/profile / etc/profile.bak [root@jia /] # cat > > / etc/profile export PATH=$JAVA_HOME/bin:$PATH > export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar > EOF [root@jia /] # java-version / / View the java version and list the version number to prove the success
Download the resin package and extract it
General Standard Edition [root@jia /] # wget-c http://caucho.com/download/resin-4.0.63.tar.gz [root@jia /] # tar zxf resin-4.0.63.tar.gzpro version [root@jia /] # wget-c http://caucho.com/download/resin-pro-4.0.63.tar.gz [root@jia /] # tar zxf resin-pro-4.0.63.tar.gz
Compilation and installation
[root@jia /] # cd resin-4.0.63 [root@jia /] #. / configure-- prefix=/usr/local/resin-- with-resin-log=/data/logs/resin/-- with-java-home=/usr/local/jdk-8u231 [root@jia /] # make & & make install
. / configure parameter description:
Parameter explanation-- help help, you can check. / configure all parameters-- prefix specifies installation directory-- enable-64bit uses 64 compilation JNI--enable-ssl to enable OpenSSL--with-apxs=PATH to enable apache integration and generate mod_caucho--enable-debug to enable extended logging for mod_caucho\ isapi_dll and resin_jni-- with-resin-log=PATH specifies the with-resin-log=PATH log storage directory-- with-java-home=PATH specifies the home directory windows installation of the java program.
Download the JDK package
To download the software package, please go to the JAVA official website and upload the software package to the server after download.
Install JDK softwar
Configure environment variables
On the desktop, right-click my computer (computer)-- > Properties, and select Advanced system Settings.
Select Advanced-- > Environment variables in system Properties.
Locate system variables in the Environment variables panel and select New.
In the 'New system variable' dialog box, enter "JAVA_HOME" in the variable name column, and fill in the variable value to find the installation path of jdk.
Then find the "CLASSPATH" variable in the "system variable", and when selected, click "Edit". Some computers do not have this variable, and those who do not have it can just create a new variable.
Finally, find the "path" variable in the "system variable". After it is selected, click "Edit".
Click New and enter: ";% JAVA_HOME%\ bin" at the end of the variable value line must be in English. And then make sure. At this point, the environment variables have been configured.
Verify that the installation is successful
Use the WIN+R shortcut key to open the run input cmd instruction and enter the doc command window
Enter "java-version", the following interface appears, and jdk is installed successfully.
Download resin and extract it
To download the software package, please go to the resin official website and upload the software package to the server after download.
Extract the resin software package
The contents of the decompressed file:
By setting environment variables, you can execute the setup.exe file directly
Then click Install/Chang to complete the installation.
Start the resinLinux operating system and start resin
Resin installed with yum or apt can be started using the following command
Resin installed with yum or apt can be started (pro version) [root@jia /] # systemctl start resin-pro / / start [root@jia /] # systemctl stop resin-pro / / stop [root@jia /] # systemctl restart resin-pro / / restart resin installed with yum or apt using the following command to start (normal version) [ Root@jia /] # systemctl start resin [root@jia /] # systemctl stop resin [root@jia /] # systemctl restart resin need to note that operating systems below centos/redhat 7 need to start [root@jia /] # server resin start / / start [root@jia /] # server resin stop / / stop [root@jia /] # server resin restart / / restart using the following method
To use a compiled installation of resin, you need to start using the following method
[root@jia /] # / usr/local/resin/bin/resin.sh start / / start [root@jia /] # / usr/local/resin/bin/resin.sh stop / / stop windowns and start resin
It is relatively easy to start windowns. Just go to the resin home directory and execute the resin.exe program directly.
After implementation
When you close resin, you only need to select stop after that, and it will be closed directly.
test
You can access it directly by using the link below. Note that the default port is 8080. If it has been modified, please change the port.
Access address: http:// server IP:8080. The following indicates that the deployment is successful
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.