1. Install Tomcat (the installed Tomcat is best placed under the same path)
A. Get the installation package and unzip it (get the installation package: Upload and download using Rz\sz, file sharing via mount, samba service)
The method used this time is file sharing:
[root
@localhost
虚拟机共享]# unzip apache-tomcat-
8.0
.
26
.zip -d/var (将共享文件夹中的安装包解压到/var目录下)
B. Start Tomcat and execute the following command
[root
@localhost
/]# /var/apache-tomcat-
8.0
.
26
/bin/startup.sh (绝对路径)
[root
@localhost
bin]# ./startup.sh(当前路径)
C. Problems with insufficient permissions when executing./startup.sh commands
[root
@localhost
bin]# ./startup.sh
-bash: ./startup.sh: 权限不够
D. Modifying permissions for. sh files
[root
@localhost
bin]# chmod u+x *.sh
修改成功后再次执行./starup.sh命令启动tomcat
F. Verify that Tomcat can connect to the network
Access Address: http:ip:8080 (port default is 8080)
Multiple Tomcat runs under CentOS (this installation of Tomcat is used to install the debugger)