Tomcat

JSP-Runoob:JSP开发环境搭建

旧时模样 提交于 2021-01-23 07:23:32
ylbtech-JSP-Runoob:JSP开发环境搭建 1. 返回顶部 1、 JSP 开发环境搭建 JSP开发环境是您用来开发、测试和运行JSP程序的地方。 本节将会带您搭建JSP开发环境,具体包括以下几个步骤。 如果你使用的是 Eclipse 环境 ,可以直接参阅: Eclipse JSP/Servlet 环境搭建 。 配置Java开发工具(JDK) 这一步 涉及Java SDK的下载和PATH环境变量 的 配置 。 您可以从Oracle公司的Java页面中下载SDK: Java SE Downloads Java SDK下载完后,请按照给定的指示来安装和配置SDK。最后,通过设置PATH和JAVA_HOME环境变量来指明包括java和javac的文件夹路径,通常是java_install_dir/bin和java_install_dir。 假如您用的是Windows系统并且SDK的安装目录为C::\jdk1.5.0_20,那么您就需要在 C:\autoexec.bat 文件中添加以下两行: set PATH = C : \jdk1 . 5.0 _20\b in ;% PATH % set JAVA_HOME = C : \jdk1 . 5.0 _20 或者,在Windows NT/2000/XP下,您可以直接右击我的电脑图标,选择属性,然后高级,然后环境变量

docker学习——05发布镜像到DockerHub和阿里云容器服务

早过忘川 提交于 2021-01-22 21:10:42
发布自己的镜像 DockerHub 1、地址 https://hub.docker.com/ 注册自己的账号! 2、确定这个账号可以登录 3、在我们服务器上提交自己的镜像 [root@dockertest tomcat]# docker login --help Usage: docker login [OPTIONS] [SERVER] Log in to a Docker registry. If no server is specified, the default is defined by the daemon. Options: -p, --password string Password --password-stdin Take the password from stdin -u, --username string Username # 登录dockerhub [root @localhost tomcat]# docker login -u 账号 Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https:/

简单谈谈apache与nginx区别

﹥>﹥吖頭↗ 提交于 2021-01-22 17:39:04
简单的说apache是计算密集型,nginx是io密集型,各有优势,不存在谁取代谁 一、关于Apache与Nginx的优势比较 不断有人跟我说Nginx比Apache好、比Apache快之类。Nginx更主要是作为反向代理,而非Web服务器使用。我翻译过一本关于反向代理的技术书籍,同时精通ApacheAPI开发,对Nginx和Apache的工作原理都略有了解,粗谈一下看法。 不管是Nginx还是Squid这种反向代理,其网络模式都是事件驱动。事件驱动其实是很老的技术,早期的select、poll都是如此。后来基于内核通知的更高级事件机制出现,如libevent里的epoll,使事件驱动性能得以提高。事件驱动的本质还是IO事件,应用程序在多个IO句柄间快速切换,实现所谓的异步IO。事件驱动服务器,最适合做的就是这种IO密集型工作,如反向代理,它在客户端与WEB服务器之间起一个数据中转作用,纯粹是IO操作,自身并不涉及到复杂计算。反向代理用事件驱动来做,显然更好,一个工作进程就可以run了,没有进程、线程管理的开销,CPU、内存消耗都小。 所以Nginx、Squid都是这样做的。当然,Nginx也可以是多进程+事件驱动的模式,几个进程跑libevent,不需要Apache那样动辄数百的进程数。Nginx处理静态文件效果也很好,那是因为静态文件本身也是磁盘IO操作,处理过程一样

docker安装使用以及tomcat部署超级详解

青春壹個敷衍的年華 提交于 2021-01-22 12:08:41
一,准备阶段 docker官网: https://docs.docker.com/get-started/ docker hub: https://www.docker.com/products/docker-hub 一台云服务器: https://swas.console.aliyun.com/#/servers ,尽量选centos版本安装。由于贫穷,本人只能使用一台学生机,还是最低配置1核2G,不过完全够用了 二,安装docker 1,打开xshell连接服务器 2,下载安装包 sudo yum install - y yum - utils 3,设置仓库镜像 yum - config - manager \ -- add - repo \ http : / / mirrors . aliyun . com / docker - ce / linux / centos / docker - ce . repo 4,更新yum软件包索引 yum makecache fast 5,安装相关的docker docker-ce为社区版 docker-ee 为企业版 yum install docker - ce docker - ce - cli containerd . io 6,启动docker systemctl start docker 7,查看是否安装成功,如若出现安装成功

docker —宝塔面板

一曲冷凌霜 提交于 2021-01-22 04:58:26
下载个单独的系统镜像 [root@git opt] # docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io /nginx-tomcat latest 484c03c00ff8 3 days ago 461 MB docker /nginx latest 8408aabf1fb6 3 days ago 302 MB docker.io /tomcat8 latest 37e6b19c14e0 5 days ago 517 MB docker.io /jumpserver/jumpserver latest 055f42f305f5 5 days ago 1.41 GB gitalb -zh latest dd61a1ec3cdc 6 days ago 1.72 GB docker.io /twang2218/gitlab-ce-zh latest 1f71f185271a 2 weeks ago 1.63 GB docker.io /centos latest 2d194b392dd1 2 weeks ago 195 MB 启动容器之端口开放 [root@git opt] # docker run -itd -p 20:20 -p 21:21 -p 80:80 -p 443:443 -p 888:888 -p

Tomcat 6 and TLSv1.2 In Java

半城伤御伤魂 提交于 2021-01-21 14:42:37
问题 I have a Java app deployed in tomcat 6. The app sends messages to another service via socket and it needs to use ONLY TLSv1.2 protocol. In my tomcat6.conf file I put this configuration: JAVA_HOME=/usr/lib/jvm/jre1.7.0_75 JAVA_OPTS="${JAVA_OPTS} -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Dhttps.protocols=TLSv1.2" But stll use the older tls version. It there any configuration to apply in java or tomcat to force use TLSv1.2? Edit 1: The answer provided by

Java后端部署以及与Android通信注意事项

空扰寡人 提交于 2021-01-21 13:00:19
1 概述 本文列举了一些 Android +后端 Java 通信/部署时的问题以及注意事项,覆盖的问题包括但不限于安全组、数据库、路径等,如果各位读者的 Android 端不能正常访问 Java 后端,希望这里的解决方案能帮助到您。 2 分类 这里将问题分为三类: Java 端问题 Android 端问题 其他杂项问题 先来看一下 Java 端可能出现的问题。 3 Java 端 包括: 数据库 安全组/防火墙 404 3.1 数据库 3.1.1 驱动 注意 MySQL5.7 与 MySQL8 注册驱动时是不一样的, MySQL5.7 是: Class.forName("com.mysql.jdbc.Driver"); MySQL8 以上是: Class.forName("com.mysql.cj.jdbc.Driver"); 另外要注意 JAR 包版本正确。 3.1.2 用户名/密码/权限 首先需要确保配置文件中的访问数据库的用户名以及密码要正确,不然的话可能会出现各种空指针错误,另外需要确保该用户对目标数据库或表具有对应的权限。 3.1.3 Spring Boot 中的加密配置 在 application.yaml / application.yml / application.properties 中配置对应的用户名以及密码,一般明文是没问题的,这里是针对使用了 Jasypt

Can i deploy my .war on an nginx server

让人想犯罪 __ 提交于 2021-01-20 16:29:20
问题 I really love nginx for the stability and way requests are handled. And i really love tomcat for the java and the user friendliness Is there a way to deploy my .war on a nginx server ? 回答1: I don't believe this is possible as nginx is not a servlet container, so it has no understanding of what a .war file is. You can configure nginx to act as a reverse proxy in front of a Tomcat server so this might get you the best of both worlds. A quick Google search came up with this http://wiki.nginx.org

Can i deploy my .war on an nginx server

不问归期 提交于 2021-01-20 16:27:59
问题 I really love nginx for the stability and way requests are handled. And i really love tomcat for the java and the user friendliness Is there a way to deploy my .war on a nginx server ? 回答1: I don't believe this is possible as nginx is not a servlet container, so it has no understanding of what a .war file is. You can configure nginx to act as a reverse proxy in front of a Tomcat server so this might get you the best of both worlds. A quick Google search came up with this http://wiki.nginx.org