阿里云服务器ESC使用配置tomcat和nginx

该文讲解以操作系统为Windows Server 2012 R2 为例


1.首先进入服务器ESC。

在阿里云官网购买云服务器ESC并选择操作系统

阿里云服务器ESC使用配置tomcat和nginx

点击远程链接之后设置windows凭据可以让电脑进入mstcs进行远程链接并输入凭证后链接。

阿里云服务器ESC使用配置tomcat和nginx

之后你可以选择页面远程操作或者mstcs远程操作。相比mstcs下远程操作可以直接复制粘贴。

阿里云服务器ESC使用配置tomcat和nginx

进入后可以在服务器中打开本地硬盘。

将端口80和8080打开配置安全组

阿里云服务器ESC使用配置tomcat和nginx


阿里云服务器ESC使用配置tomcat和nginx

打开端口可以让tomcat和nginx使用并将公网防火墙关闭。

2.安装jdk并配置

3.下载tomcat 并配置

在tomcat下servler.xml中修改Engine下defaultHost 和Host下 name 为公网ip  把端口改为80后启动tomcat

可以尝试访问tomcat默认页面

阿里云服务器ESC使用配置tomcat和nginx

访问公网ip成功

阿里云服务器ESC使用配置tomcat和nginx

4.配置nginx

将ngin.conf下端口改为8080

阿里云服务器ESC使用配置tomcat和nginx

启动nginx服务器

访问http://公网ip:8080/ 后成功

阿里云服务器ESC使用配置tomcat和nginx