tomcat项目部署
[root@host ~]
[root@host ~]
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
上官网下载tomcat
[root@host ~]
[root@host ~]
[root@host local]
[root@host local]
总用量 4
drwxr-xr-x. 9 root root 220 6月 15 06:04 apache-tomcat-9.0.46
drwxr-xr-x. 2 root root 6 5月 18 2020 bin
drwxr-xr-x. 2 root root 6 5月 18 2020 etc
drwxr-xr-x. 2 root root 6 5月 18 2020 games
drwxr-xr-x. 2 root root 6 5月 18 2020 include
-rw-r--r--. 1 root root 139 6月 15 06:00 index.jsp
drwxr-xr-x. 2 root root 6 5月 18 2020 lib
drwxr-xr-x. 3 root root 17 5月 19 06:35 lib64
drwxr-xr-x. 2 root root 6 5月 18 2020 libexec
drwxr-xr-x. 2 root root 6 5月 18 2020 sbin
drwxr-xr-x. 5 root root 49 5月 19 06:35 share
drwxr-xr-x. 2 root root 6 5月 18 2020 src
lrwxrwxrwx. 1 root root 21 6月 15 06:04 tomcat -> apache-tomcat-9.0.46/
[root@host local]
[root@host local]
<html>
<head>
<title>test page</title>
</head>
<body>
<%
out.println("Hellow World");
%>
</body>
</html>
[root@host ~]
[root@host ~]
[root@host local]
apache-tomcat-9.0.46 bin etc games include index.jsp lib lib64 libexec sbin share src tomcat
[root@host local]
[root@host local]
总用量 4
-rw-r--r--. 1 root root 139 6月 15 06:07 index.jsp
[root@host ~]
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
[root@host ~]
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 [::]:22 [::]:*
LISTEN 0 1 [::ffff:127.0.0.1]:8005 *:*
LISTEN 0 100 *:8080 *:*
关闭防火墙
[root@host ~]
[root@host ~]
去官网下载jenkins包
[root@host ~]
anaconda-ks.cfg apache-tomcat-9.0.46.tar.gz jenkins.war
[root@host ~]
[root@host ~]
docs examples host-manager jenkins jenkins.war manager ROOT test
apache配置
用的源码安装
[root@host ~]
将下面三行取消注释
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Include /etc/httpd24/extra/httpd-vhosts.conf
mysql配置中
用的源码
配置虚拟主机
[root@host ~]
<VirtualHost *:80>
DocumentRoot "/usr/local/apache/htdocs"
ProxyPass / http://192.168.149.140:8080/
ProxyPassReverse / http://192.168.149.140:8080/
<Directory "/usr/local/apache/htdocs">
Options none
AllowOverride none
Require all granted
</Directory>
</VirtualHost>
[root@host ~]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)