• 安装JDK

jdk下载地址

http://www.oracle.com/technetwork/java/javase/downloads/index.html

[root@7cest resin]# # wget http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.rpm

[root@7cest resin]# rpm -ivh jdk-8u111-linux-x64.rpm

[root@7cest resin]# java -version

java version "1.8.0_111"

Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

 

二、安装resin4.0

[root@7cest resin]# wget http://www.caucho.com/download/rpm-6.8/4.0.49/x86_64/resin-pro-4.0.49-1.x86_64.rpm

[root@7cest resin]# wget http://caucho.com/download/rpm/RPM-GPG-KEY-caucho

[root@7cest resin]# ls

jdk-8u111-linux-x64.rpm  resin-pro-4.0.49-1.x86_64.rpm  RPM-GPG-KEY-caucho

[root@7cest resin]# rpm --import RPM-GPG-KEY-caucho

[root@7cest resin]# yum install openssl-devel –y

[root@7cest resin]# rpm -Uvh resin-pro-4.0.49-1.x86_64.rpm

默认文件情况:

root@7cest ~]# cd /etc/resin/

[root@7cest resin]# ls         #网站配置文件

app-default.xml  cluster-default.xml  health.xmlkeys  licenses  resin.properties  resin.xml

[root@7cest resin]# ls /var/resin/        #resin应用程序文件

app-infdoc  endorsed  logproject-jars  resin-data  resin-infwatchdog-data  webapp-jars  webapps

[root@7cest resin]# ls /usr/local/share/resin       #resin库文件和bin文件

binlib  libexec64

 

 

官网说明:

http://www.caucho.com/resin-4.0/admin/starting-resin.xtp

When Resin is installed on a Unix system:

Unix Directories

/etc/resin/resin.properties  # configuration properties

/etc/resin/resin.xml         # configuration file

/etc/resin/licenses/         # license location

/etc/resin/keys/             # openssl keys

 

/var/resin/                  # resin.root (content)

/var/resin/webapps/          # default deployment directory

 

/var/log/resin/              # resin logs

 

/usr/local/share/resin/      # resin.home (binaries and libraries)

When Resin is installed on a Windows system:

启动设置:

[root@7cest ~]# resinctl start

[root@7cest ~]# /sbin/chkconfig resin on

[root@7cest ~]# /etc/init.d/resin restart

[root@7cest ~]# ss -tunlp | grep java

tcpLISTEN     0      128127.0.0.1:6800                  *:*users:(("java",pid=3923,fd=44))

tcpLISTEN     0      128127.0.0.1:6600                  *:*users:(("java",pid=3876,fd=31))

tcpLISTEN     0      128:::8080                 :::*users:(("java",pid=3923,fd=53))

 

 

配置网站登录:

1、防火墙配置:

[root@7cest resin]# firewall-cmd --zone=public --add-port=8080/tcp --permanent

success

[root@7cest resin]# firewall-cmd --zone=public --add-port=6600/tcp --permanent

success

[root@7cest resin]# firewall-cmd --zone=public --add-port=6800/tcp --permanent

success

[root@7cest resin]# firewall-cmd –reload

 

2windows客户端web网页登录

http://192.168.137.200:8080/