zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/logs# netstat -nap | grep 8082 tcp 0 0 :::8082 :::* LISTEN 14642/java zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/logs# zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/logs# ps -ef | grep java root 14642 1 91 14:15 pts/0 00:00:10 /usr/java/jdk1.8.0_20/bin/java -Djava.util.logging.config.file=/usr/local/apache-tomcat-7.0.55_8082/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms215m -Xmx215m -Djava.rmi.server.hostname=192.168.32.73 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=10054 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/usr/local/apache-tomcat-7.0.55_8082/endorsed -classpath /usr/local/apache-tomcat-7.0.55_8082/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.55_8082/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/apache-tomcat-7.0.55_8082 -Dcatalina.home=/usr/local/apache-tomcat-7.0.55_8082 -Djava.io.tmpdir=/usr/local/apache-tomcat-7.0.55_8082/temp org.apache.catalina.startup.Bootstrap start root 14668 14486 0 14:15 pts/0 00:00:00 grep java zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/logs# zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/conf# tail -20 server.xml <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> <Context docBase="/t/deploy/zjtest7/deployedApps/zjzc-web-api" path="/api" reloadable="false"/> </Host> </Engine> </Service> </Server> 测试: zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# curl http://192.168.32.73:8082/api/ <!DOCTYPE html><!--STATUS OK--> <html><head> <title>用户管理</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="/common/js/jquery/jquery-1.11.1.min.js"></script> </head> <body> <h2>Welcome</h2> </body> </html> zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# curl http://192.168.32.73:8082 zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# curl http://192.168.32.73:8082 zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# 修改server.xml: zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# curl http://192.168.32.73:8082/api zjtest7-app:/t/deploy/zjtest7/deployedApps/zjzc-web-api# curl http://192.168.32.73:8082 <!DOCTYPE html><!--STATUS OK--> <html><head> <title>用户管理</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="/common/js/jquery/jquery-1.11.1.min.js"></script> </head> <body> <h2>Welcome</h2> </body> </html> path 决定了你访问方式
tomcat path设置
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Ubuntu PATH设置
export命令是临时工,关闭窗口即丢失普通的系统常量就放到.bashrcPATH特有设定地方.profile
ubuntu PATH Ubuntu -
tomcat path设置
zjtest7-app:/usr/local/apache-tomcat-7.0.55_8082/logs# netstat -nap | grep 8082tcp 0 0 :::8082...
apache tomcat html java jquery -
sudo path变量设置 sub path
目录一、概述:二、subpath总结三、实操验证四、挂载configMap文件例子一、概述: 官方文档:https://kubernetes.io/zh-cn/docs/concepts/storage/volumes/ 在kube
sudo path变量设置 kubernetes 运维 docker txt文件