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

相关推荐
pshdhx_albert1 天前
AI agent实现打字机效果
java·http·ai编程
沉鱼.441 天前
第十二届题目
java·前端·算法
赫瑞1 天前
数据结构中的排列组合 —— Java实现
java·开发语言·数据结构
周末也要写八哥1 天前
多进程和多线程的特点和区别
java·开发语言·jvm
惜茶1 天前
vue+SpringBoot(前后端交互)
java·vue.js·spring boot
杰克尼1 天前
springCloud_day07(MQ高级)
java·spring·spring cloud
NHuan^_^1 天前
SpringBoot3 整合 SpringAI 实现ai助手(记忆)
java·人工智能·spring boot
Mr_Xuhhh1 天前
从ArrayList到LinkedList:理解链表,掌握Java集合的另一种选择
java·数据结构·链表
错把套路当深情1 天前
Java 全方向开发技术栈指南
java·开发语言
han_hanker1 天前
springboot 一个请求的顺序解释
java·spring boot·后端