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
分类:电脑技术
标签:
评论已关闭!