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