发表于: 2021-11-14 23:23:46
1 898
centos8 resin部署
Wget https://caucho.com/download/resin-pro-4.0.65.tar.gz
tar zxvf resin-pro-4.0.65.tar.gz
进入resin文件夹
cd resin-pro-4.0.65/
添加执行权限
chmod +x configure
创建文件夹
mkdir /usr/local/resin
./configure --prefix=/usr/local/resin #--with-java-home=/usr/local/java/jdk-17.0.1 —enable-64bit
系统报错
fatal error: openssl/ssl.h: No such file or directory
安装 OpenSSL 开发包,执行以下命令进行安装,然后重新编译即可解决
sudo yum install openssl-level
#启动、重启
#/usr/local/resion/bin/resin.sh start
#service resin start
/etc/init.d/resin restart
tail -f t/usr/local/resin/log/access.log #查看日志
##配置
#---------------------------------
#配置/resin-admin
cd cd /usr/local/resion/conf/
vim resin.properties
web_admin_external : true #开启远程访问
/etc/init.d/resin restart
http://120.78.219.91:8080/resin-admin #访问,创建用户admin@admin
cp admin-users.xml.generated admin-users.xml
vim /usr/local/resin/conf/resin.xml
<web-app id="/" root-directory="webapps/ROOT"/>
<web-app id="/api" root-directory="webapps/api"/> #增加行
#地址绝对路径/usr/local/resin/webapps/api
http://120.78.219.91:8080/api/ #访问web
评论