测试环境搭建踩坑记录—Tomcat服务器访问拒绝
解压Tomcat,在bin目录下 ./startup 启动后,查看运行中的程序,发现不对
[root@localhost bin]# ps -ef | grep tomcat
root 58836 57633 0 19:06 pts/0 00:00:00 grep --color=auto tomcat
[root@localhost bin]# ps aux | grep tomcat
root 58857 0.0 0.0 112708 976 pts/0 R+ 19:09 0:00 grep --color=auto tomcat
再通过ip端口访问时,显示访问拒绝。
确认Tomcat的端口
[root@localhost logs]# cat ../conf/server.xml