Tomcat 安装
到官网下载压缩包,解压压缩包到C盘
Tomcat的运行需要用到JDK,配置JDK参考 JDK1.8 安装与配置
验证是否安装成功:
启动tomcat:双击bin目录下startup.bat
浏览器地址栏输入http://localhost:8080
进入tomcat页面表示安装成功。
配置端口号
打开安装目录下conf/server.xml文件,找到以下位置,port:8080就是端口号
配置用户名和密码
打开conf/tomcat-users.xml
tomcat默认没有配置任何用户 ,可以按照注释样例增加用户
举例: