当前位置:网站首页>Detailed record of steps to configure web server (many references)
Detailed record of steps to configure web server (many references)
2022-07-28 16:39:00 【saddlesad】
Alibaba cloud JAVAWEB Deployment environment configuration
The configuration document
1. java and tomcat Environment configuration of
Pay special attention here (1) Set the security group rules of Alibaba cloud server 8080/8080, There is a delay of several minutes after restart .(2) stay linux Chinese envoy 、 use firewall-cmd --state View firewall status , Make sure you are running, And use firewall-cmd --permanent --add-port=8080/tcp open 8080 port
This article Finally, it introduces the deployed web page tomcat route , If you don't want to see it, I excerpted the main steps as follows :
modify xxx/tomcat/apache-tomcat-9.0.33/conf/ Under the server.xml:
- modify host Node name For your cloud server domain name , Such as www.example.com
- stay host Add a node under the node
<Context path="" docBase="webhelloworld_war" reloadable="true"/>
among webhelloworld_war This is yours war Package name of the package , That's the name of your project- Well, after modifying the configuration file, there's another important thing to remember , It's just a restart Tomcat use xshell Get into /usr/java/tomcat/apache-tomcat-8.5.20/bin/ perform ./shutdown.sh
And then execute ./startup.sh
If you stop Tomcat Stop failure occurs when , Tips java.net.ConnectException: Connection refused SEVERE: Could not contact localhost:8005. Tomcat may not be running. Report errors , as a result of Tomcat The memory of is too small , You need to set up virtual memory ,
Below are modify /opt/tomcat/bin/catalina.sh This file , stay
# OS specific support. $var _must_ be set to either true or false.cygwin=false
Insert a line between these two lines :JAVA_OPTS="-Xms512m -Xmx1024m -Xss2048K -XX:PermSize=256m -XX:MaxPermSize=512m"
preservation , restart tomcat that will do .
2.java Project war pack
The path to visit the website is http://( Host number ) or ( domain name .com):8080/ Package name / In the package path html File path
边栏推荐
- ANSA二次开发 - Apps和ANSA插件管理
- Abaqus GUI界面解决中文乱码问题(插件中文乱码也适用)
- 在vs code上配置Hypermesh二次开发环境
- Wake up after being repeatedly upset by MQ! Hate code out this MQ manual to help the journey of autumn recruitment
- The little red book of accelerating investment, "rush to medical treatment"?
- IM即时通讯开发优化提升连接成功率、速度等
- Qt学习之Qt Designer(设计师)
- 微信公众号获取素材列表
- 百度编辑器ueditor,编辑内容过多时,工具栏不可见,不方便编辑或上传问题
- Early in the morning, pay Bora SMS to say that you won the "prize"? Dealing with server mining virus - kthreaddi
猜你喜欢
随机推荐
疫情红利消失,「居家健身」泡沫消散
每一个账号对应所有密码,再每一个密码对应所有账号暴力破解代码怎么写?...
C language exception handling mechanism: jump function jump function setjmp/sigsetjmp and longjmp/siglongjmp
Sort 1-insert sort and Hill sort
QT QString详解
500million users, four years earlier than wechat... This app, which has been in operation for 15 years, will be permanently discontinued
LeetCode每日一练 —— 剑指Offer 56 数组中数字出现的次数
“蔚来杯“2022牛客暑期多校训练营3 ACFHJ
2021-04-02
资本「断供」两年,我只能把公司卖了
About the web docking pin printer, lodop uses
Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
Thoughts on solving the pop-up of malicious computer advertisements
"Wei Lai Cup" 2022 Niuke summer multi school training camp 3 j.journey 0-1 shortest path
Sort 2 bubble sort and quick sort (recursive and non recursive explanation)
大地坐标系转换火星坐标系
I can only sell the company after the capital has been "cut off" for two years
MySQL view event status statements and modification methods
ANSA二次开发 - 抽中面的两种方法
PHP about problems such as memory overflow timeout caused by large amount of data exporting or traversing data







