Linux安装resin4.0.40
1
安装jdk,具体目录是/usr/local/jdk1.7.0_45,并设好环境变量
2
解压resin-4.0.40.tar.gz(位于/home/software/下)
cd
/home/software
tar
–zxvf resin-4.0.40.tar.gz
3
拷贝到/opt下
cp
-r resin-4.0.40 /opt
4
进入/opt/resin-4.0.40并执行以下命令来安装
./configure
--prefix=/opt/resin-4.0.40/
--with-jav
a-home=/usr/local/jdk1.7.0_45
--enable-64bit
5
执行make
显示错误提示:
CDPATH="${ZSH_VERSION+.}:"
&& cd . && aclocal -I m4
aclocal:
couldn't open directory `m4': No such file or directory
make:
*** [aclocal.m4] Error 1
解决方案是在/opt/resin-4.0.40目录下建立m4目录:mkdir m4
再次执行make
显示错误提示:
CDPATH="${ZSH_VERSION+.}:"
&& cd . && aclocal -I m4
cd . && automake --foreign
--ignore-deps
configure.ac:1570:
required file `../pro/modules/c/src/Makefile.in' not found
configure.ac:1570:
required file `../pro/modules/c/src/resin/Makefile.in' not found
configure.ac:1570:
required file `../pro/modules/c/src/resinssl/Makefile.in' not found
make:
*** [Makefile.in] Error 1
解决方案是在/opt下建立pro目录:mkdir ../pro
并把/opt/resin-4.0.40下的modules目录拷贝到/opt/pro下:cp –r modules ../pro
第三次执行make,顺利执行
6
执行make install
7
启动resin:./bin/resin.sh start,若看到显示以下信息则表示安装成功:
Resin/4.0.40
launching watchdog at 127.0.0.1:6600
Resin/4.0.40
started -server 'app-0' with watchdog at 127.0.0.1:6600
8
若要在浏览器中进入resin后台,默认的端口号是8080,若要修改此端口号(比如改为8999),需要把/opt/resin-4.0.40/conf/resin.properties中的app.http:8080和web.http:8080分别改为app.http:8999和web.http:8999
改完后先执行./bin/resin.sh stop,再执行./bin/resin.sh start,最后在浏览器中输入
http://{Linux机器的IP}:8999
若看见以下信息则表示成功:
Resin?
Default Home Page
This
is the default page for the Resin web server.
Documentation
is available at .
Administration
is available at .