tomcat实验

bash 复制代码
yum install java-1.8.0-openjdk.x86_64 -y
tar zxf apache-tomcat-9.0.93.tar.gz  -C /usr/local/
ln -s /usr/local/apache-tomcat-9.0.93/ /usr/local/tomcat #改名
/usr/local/tomcat/bin/startup.sh
netstat antlupe | grep java
vim /usr/local/tomcat/conf/tomcat.conf
useradd -s /sbin/nologin -M tomcat
chown -R tomcat.tomcat /usr/local/tomcat/
vim /lib/systemd/system/tomcat.service
systemctl daemon-reload
systemctl enable --now tomcat
curl 172.25.254.10
systemctl status httpd
yum install httpd -y
systemctl enable --now httpd
systemctl status httpd
curl www.timinglee.org
vim /etc/hosts
curl www.timinglee.org
yum install memcached -y
systemctl enable --now memcached
netstat -antlupe | grep memcache
vim test.jsp
cp test.jsp /usr/local/tomcat/
cp test.jsp /usr/local/tomcat/webapps/
cp test.jsp /usr/local/tomcat/webapps/ROOT/
scp test.jsp root@172.25.254.10:/usr/local/tomcat/webapps/ROOT/
vim /etc/sysconfig/memcached
systemctl start memcached
systemctl start memcached.service
netstat -antlupe |grep memcached
yum install telnet
ls
cd jar
ls
cp *.jar /usr/local/tomcat/lib/
cd /usr/local/tomcat/
cd /usr/local/tomcat/conf/
vim context.xml
systemctl restart tomcat.service

相关推荐
Bunny021213 分钟前
SpringMVC笔记
java·redis·笔记
feng_blog668841 分钟前
【docker-1】快速入门docker
java·docker·eureka
枫叶落雨2222 小时前
04JavaWeb——Maven-SpringBootWeb入门
java·maven
m0_748232392 小时前
SpringMVC新版本踩坑[已解决]
java
码农小灰2 小时前
Spring MVC中HandlerInterceptor和Filter的区别
java·spring·mvc
乔木剑衣3 小时前
Java集合学习:HashMap的原理
java·学习·哈希算法·集合
专职4 小时前
spring boot中实现手动分页
java·spring boot·后端
神探阿航4 小时前
第十五届蓝桥杯大赛软件赛省赛C/C++ 大学 B 组
java·算法·蓝桥杯
梓沂4 小时前
idea修改模块名导致程序编译出错
java·ide·intellij-idea
m0_748230445 小时前
创建一个Spring Boot项目
java·spring boot·后端