下面我们来介绍一下tomcat几种实际应用: (1) LB tomcat nginx tomcats apache tomcats (2) LB tomcat cluster (3) LB tomcat session server memcached 前面我们还了解了会话保持有三种方式: sess ...
分类:
其他好文 时间:
2021-02-23 14:36:20
阅读次数:
0
常用的命令: npm config set prefix "node-global路径" npm config set cache "node-cache路径" npm config set registry http://registry.npm.taobao.org/ npm config ls ...
分类:
Web程序 时间:
2021-02-23 14:25:07
阅读次数:
0
1、 客户端访问了某个能开启会话功能的资源, web服务器就会创建一个与该客户端对应的HttpSession对象,每个HttpSession对象都要占用一定的内存空间。 如果在某一时间段内访问站点的用户很多,web服务器内存中就会积累大量的HttpSession对象,消耗大量的服务器内存,即使用户已 ...
分类:
其他好文 时间:
2021-02-23 14:08:38
阅读次数:
0
zookeeper实现分布式锁 Zookeeper是一种提供配置管理、分布式协同以及命名的中心化服务。 zk的模型是这样的:zk包含一系列的节点,叫做znode,就好像文件系统一样每个znode表示一个目录,然后znode有一些特性: 有序节点:假如当前有一个父节点为 /lock ,我们可以在这个父 ...
分类:
其他好文 时间:
2021-02-22 12:35:38
阅读次数:
0
pyinstaller适应python2和python3环境 ...
分类:
编程语言 时间:
2021-02-22 12:00:08
阅读次数:
0
一、慢查询日志 -- 是否记录查询日志 show variables like 'slow_query_log'; -- 是否记录未使用索引的查询 show variables like 'log_queries_not_using_indexes'; -- 开启 set GLOBAL log_qu ...
分类:
数据库 时间:
2021-02-20 12:13:00
阅读次数:
0
命令行指令 Git 全局设置 git config --global user.name "Administrator" git config --global user.email "admin@example.com" 创建新版本库 git clone http://f86ec4dd880f/r ...
分类:
其他好文 时间:
2021-02-20 12:12:27
阅读次数:
0
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>正则表达式测试</title> <link rel="stylesheet" href="b ...
分类:
其他好文 时间:
2021-02-20 12:01:53
阅读次数:
0
@RequestMapping("/getCookie") public String getCookie(@CookieValue("name")String name, HttpServletRequest request) { // 方式一: 通过request获取Cookie数组,然后循环 ...
分类:
其他好文 时间:
2021-02-19 13:51:17
阅读次数:
0
1.设置权限 show global variables like "secure_file_priv"//不为NULL 如果显示为NULL,在my.ini中添加secure_file_priv= //不加任何值 2.写文件 写在的磁盘根目录D盘 写在了D:\phpStudy\MySQL\data ...
分类:
数据库 时间:
2021-02-19 13:11:02
阅读次数:
0