发表于: 2019-10-15 22:06:35

1 865


今天完成的事情:在服务器上安装jetty,tomcat,resin

resin

使用wget方法下载resin包到usr/local目录下并解压

进入安装包路径配置安装路径和JDK的路径

 ./configure --prefix=/usr/local/resin --with-java=/usr/local/jdk1.8.0_31

编译

make

安装

make install

进入配置文件conf目录修改端口为8090

vim resin.properties

resin关闭

/etc/init.d/resin stop

resin开启

/etc/init.d/resin start


tomacat

使用wget方法下载resin包到usr/local目录下并解压

配置环境变量编辑/etc/profile文件:

vi /etc/profile

在文件尾部添加如下配置:

export CATALINA_HOME=/usr/local/apache-tomcat-9.0.27

通过source命令重新加载/etc/profile文件

source /etc/profile

tomacat开启

./startup.sh

tomacat关闭

./shutdown.sh


jetty

使用wget方法下载resin包到usr/local目录下并解压

配置start.ini文件修改端口为8070

vi start.ini

jetty重启

sh jetty.sh restart

jetty开启

./jetty.sh start

jetty关闭

./jetty.sh stop


配置好后打开firewall防火墙

systemctl start firewalld


添加8080,8070,8090端口

firewall-cmd --zone=public --add-port=8080/tcp --permanent

firewall-cmd --zone=public --add-port=8070/tcp --permanent

firewall-cmd --zone=public --add-port=8090/tcp --permanent


更新防火墙规则

firewall-cmd --reload

查看已经打开的端口

firewall-cmd --zone=public --list-ports


在阿里云服务器添加以上三个端口的安全组规则



明天计划的事情:使用jetty,tomcat,resin部署项目
遇到的问题:使用resin部署项目时启动遇到505



返回列表 返回列表
评论

    分享到