tomcat实验

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值