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

相关推荐
xlsw_3 小时前
java全栈day20--Web后端实战(Mybatis基础2)
java·开发语言·mybatis
神仙别闹4 小时前
基于java的改良版超级玛丽小游戏
java
黄油饼卷咖喱鸡就味增汤拌孜然羊肉炒饭4 小时前
SpringBoot如何实现缓存预热?
java·spring boot·spring·缓存·程序员
暮湫4 小时前
泛型(2)
java
超爱吃士力架5 小时前
邀请逻辑
java·linux·后端
南宫生5 小时前
力扣-图论-17【算法学习day.67】
java·学习·算法·leetcode·图论
转码的小石5 小时前
12/21java基础
java
李小白665 小时前
Spring MVC(上)
java·spring·mvc
GoodStudyAndDayDayUp5 小时前
IDEA能够从mapper跳转到xml的插件
xml·java·intellij-idea
装不满的克莱因瓶6 小时前
【Redis经典面试题六】Redis的持久化机制是怎样的?
java·数据库·redis·持久化·aof·rdb