centos安装tomcat,支持jsp java

2019-01-13 08:58 阅读 2,739 views 次 centos安装tomcat,支持jsp java已关闭评论

yum install tomcat

yum install tomcat-webapps

yum install tomcat-admin-webapps

cd /etc/tomcat

war文件放到这里

/var/lib/tomcat/webapps/

ip:8081

查看8080端口是否被占用

netstat -anp |grep 8080

如果被占用,则修改server.xml  端口号

<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="admin" password="password" roles="manager-script"/>
<user username="root" password="password" roles="manager-gui"/>
<user username="rootadmin" password="mima" roles="admin-gui"/>
tail -f /var/log/tomcat/catalina.out

server.xml
打开tomcatThreadPool的注释。

<Connector executor="tomcatThreadPool"

protocol="org.apache.coyote.http11.Http11NioProtocol"

URIEncoding="UTF-8" acceptCount="1000"

port="8081"

connectionTimeout="20000"

redirectPort="8443" />

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"

maxThreads="150" SSLEnabled="true" scheme="https" secure="true"

keystoreFile="/etc/ssl/private/dd.yuming.com.jks"

keystorePass="mima"

 

tomcat stop; tomcat start

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:centos安装tomcat,支持jsp java | 文档
分类:电脑技术 标签:

评论已关闭!