安裝JDKhtml
jdk下載地址java
http://www.oracle.com/technetwork/java/javase/downloads/index.htmllinux
[root@7cest resin]# # wget http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.rpmweb
[root@7cest resin]# rpm -ivh jdk-8u111-linux-x64.rpmwindows
[root@7cest resin]# java -versionoracle
java version "1.8.0_111"app
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)webapp
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)tcp
2、安裝resin4.0ide
[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:
resinctl is the command-line interface.
Configuration properties are in /etc/resin/resin.properties
Deployed applications are put in /var/resin/webapps
Logs are in /var/log/resin
Licenses belong in /etc/resin/licenses
OpenSSL keys belong in /etc/resin/keys
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:
resin is the command-line interface.
Configuration properties are in conf/resin.properties
Deployed applications are in webapps
Logs are in log
Licenses belong in conf/licenses
OpenSSL keys belong in conf/keys
啓動設置:
[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
2、windows客戶端web網頁登陸