1.安装tomcat和jdk
[root@server2 ~]# ls
apache-tomcat-8.5.24.tar.gz jdk-8u121-linux-x64.rpm zabbix-agent-4.0.5-1.el7.x86_64.rpm
[root@server2 ~]# rpm -ivh jdk-8u121-linux-x64.rpm
[root@server2 ~]# tar zxf apache-tomcat-8.5.24.tar.gz -C /usr/local
[root@server2 ~]# cd /usr/local
[root@server2 local]# ls
apache-tomcat-8.5.24 bin etc games include lib lib64 libexec sbin share src
2.制作软连接
[root@server2 local]# ln -s apache-tomcat-8.5.24/ tomcat
[root@server2 local]# ls
apache-tomcat-8.5.24 etc include lib64 sbin src
bin games lib libexec share tomcat
[root@server2 local]# cd tomcat/
[root@server2 tomcat]# ls
bin conf lib LICENSE logs