您好,登錄后才能下訂單哦!
官網(wǎng)http://caucho.com/
resin需要jdk支持
jdk官網(wǎng)http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
沒有jdk,無法編譯java程序
cd /usr/local/src
wget'http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-i586.tar.gz?AuthParam=1466748694_4fba144996aad848aa5ee7344c94ad2e'
tar -zxvf jdk-8u77-linux-i586.gz //文件名字可能不一樣
mv jdk1.8.0_77 /usr/local/
vim /etc/profile.d/java.sh
添加內(nèi)容:
JAVA_HOME=/usr/local/jdk1.8.0_77
JAVA_BIN=/usr/local/jdk1.8.0_77/bin
JRE_HOME=/usr/local/jdk1.8.0_77/jre
CLASSPATH=/usr/local/jdk1.8.0_77/jre/lib:/usr/local/jdk1.8.0_77/lib:/usr/local/jdk1.8.0_77/jre/lib/charsets.jar
PATH=/usr/local/jdk1.8.0_77/bin:/usr/local/jdk1.8.0_77/jre/bin:$PATH
//把$PATH 放到該行的末尾,保證第一個搜索到的java 是自己裝的
source /etc/profile.d/java.sh
java -version
//顯示自己裝的版本就OK
cd /usr/local/src/
wget'http://caucho.com/download/resin-4.0.44.tar.gz'
tar zxvf resin-4.0.44.tar.gz
cd resin-4.0.44
./configure --prefix=/usr/local/resin--with-java-home=/usr/local/jdk1.8.0_91
make
make install
cd /usr/local/resin/
/etc/init.d/resin start //啟動腳本自動生成
vim /usr/local/resin/conf/resin.properties //修改端口號
找到app.http : 8080
改為app.http : 80
/etc/init.d/resin stop
/etc/init.d/resin start
netstat –lnp //80端口啟動比較慢
vim /usr/local/resin/conf/resin.xml //配置虛擬主機(jī)
在<cluster id="app"> </cluster>結(jié)構(gòu)添加虛擬主機(jī)
<host id="www.111.com" root-directory=".">
<web-appid="/" root-directory="/tmp/resin"/>
</host>
mkdir /tmp/resin
/etc/init.d/resi stop
/etc/init.d/resin start
vim /tmp/resin/1.jsp
添加內(nèi)容:
<html><body><center>
Now time is: <%=new java.util.Date()%>
</center></body></html>
curl -x192.168.134.137:80 www.111.com/1.jsp
//正常解析表示配置成功
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。