prefix

Tomcat日志系统详解

血红的双手。 提交于 2020-01-25 03:36:43
综合:Tomcat下相关的日志文件 Cataline引擎的日志文件,文件名catalina.日期.log Tomcat下内部代码丢出的日志,文件名localhost.日期.log(jsp页面内部错误的异常,org.apache.jasper.runtime.HttpJspBase.service类丢出的,日志信息就在该文件!) Tomcat下默认manager应用日志,文件名manager.日期.log 控制台输出的日志,Linux下默认重定向到catalina.out Access日志(Servlet.xml配置) 应用程序通过log4j.properties:${catalina.base}/logs/probe.log重定向过来的日志 JULI:org.apache.juli.FileHandler对应的日志文件名:{prefix}.{date}.{suffix} 默认juli.日期.log Tomcat下Web应用程序可以使用如下3种日志: 使用JDK提供的日志java.util.logging. 使用Java Servlets规范中定义的日志javax.servlet.ServletContext.log(...) 使用其他日志框架,如log4j 不同Web应用程序下使用的Servlet日志(或者日志框架提供的日志)是相互独立的(这与Tomcat的class

Use domain as “prefix” on CakePHP

不羁岁月 提交于 2020-01-23 02:46:06
问题 Let's say that I have a site running CakePHP and I have the prefix "product". I have lots of pages with URL like: http://mysite.com/produt/blue-shirt/details http://mysite.com/produt/blue-shirt/order http://mysite.com/produt/skate/details http://mysite.com/produt/sun-glasses/vendors Now I need to use a domain like http://mysite-blue-shirt.com/ as "shortcut" to the blue-shirt product, and my URLs will become: http://mysite-blue-shirt.com/details http://mysite-blue-shirt.com/order What I need

DHCPV6 on linux

蹲街弑〆低调 提交于 2020-01-22 19:25:43
主要有两种技术 一种是传统的有状态(stateful),典型代表就是与IPv4时代相对应的DHCPv6, 一种是IPv6的无状态(stateless)自动配置,典型代表是Radvd。这是IPv6协议的一个突出特点:支持网络节点的地址自动配置. ipv6基础知识补充(看看这位大佬的):https://cshihong.github.io/2018/01/29/IPv6%E5%9F%BA%E7%A1%80/ 先看无状态是如何配置的 1.先安装我们需要的软件Radvd apt install radvd 2.配置config文件 nano /etc/radvd.confg 这里具体配置还是老样子我们根据自身需求配置就可以了 注意一点接口别配错就行 而且我这里安装完出配置文件并未主动生成,但是没关系我们可以自己创建一个。 interface eth0{ AdvSendAdvert on; #启用路由器公告(RA)功能 MinRtrAdvInterval 30; #每隔30-100秒间隔发送公告消息 MaxRtrAdvInterval 100; #spf AdvManagedFlag on; # M值 AdvOtherConfigFlag on; # O 值#spf prefix 2001:db8:1:0::/64 #发送的前缀信息 { AdvOnLink on; AdvAutonomous

js把树形数据转成扁平数据

a 夏天 提交于 2020-01-22 18:18:02
我就直接上代码了都是实际项目里面用到的 1.假设这个json就已经是树型结构数据了(如果不知道怎么实现树型结构数据请看我另一篇博客) var compressedArr=afcommon.treeDataToCompressed(json);/*******************************JS封装好的方法*********************************************/ var afcommon=(function ($) { var prefix="|—"; let compressedData=[];// 用于存储递归结果(扁平数据) return { /** * 把扁平数据转成树型结构数据(可以实现无限层级树形数据结构,只适用于单个表的数据) * @param source * @param id * @param parentId * @param children */ treeDataformat : function(source, id, parentId, children){ let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 return cloneData.filter(father=>{ // 循环所有项,并添加children属性 let

异常This application has no explicit mapping for /error

被刻印的时光 ゝ 提交于 2020-01-22 08:22:46
Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. 出现这个异常说明了跳转页面的url无对应的值. 原因1: Application 启动类的位置不对.要将Application类放在最外侧,即包含所有子包 原因:spring-boot会自动加载启动类所在包下及其子包下的所有组件. 原因2: 在springboot的配置文件:application.yml或application.properties中关于视图解析器的配置问题: 当pom文件下的spring-boot-starter-paren版本高时使用: spring.mvc.view.prefix/spring.mvc.view.suffix 当pom文件下的spring-boot-starter-paren版本低时使用: spring.view.prefix/spring.view.suffix 原因3: 控制器的URL路径书写问题 @RequestMapping(“xxxxxxxxxxxxxx”) 实际访问的路径与”xxx”不符合. 转自:https://www.cnblogs.com/lilinzhiyu/p/7921890.html

[LeetCode]208. 实现 Trie (前缀树)

假装没事ソ 提交于 2020-01-20 21:13:21
题目 实现一个 Trie (前缀树),包含 insert, search, 和 startsWith 这三个操作。 示例: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // 返回 true trie.search("app"); // 返回 false trie.startsWith("app"); // 返回 true trie.insert("app"); trie.search("app"); // 返回 true 说明: 你可以假设所有的输入都是由小写字母 a-z 构成的。 保证所有输入均为非空字符串。 来源:力扣(LeetCode) 链接: https://leetcode-cn.com/problems/implement-trie-prefix-tree 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 题解 Trie树:字典树、前缀树。重点在于理解Trie树的结构。 字母可以看做对应树的边。 区别TrieNode和Trie的构造函数。 代码 class TrieNode{ TrieNode[] child; boolean endFlag; public TrieNode(){ child=new TrieNode[26]; endFlag=false;

CentOS7 安装git

旧时模样 提交于 2020-01-18 19:48:43
一、查看是否安装过git git --version 执行以上命令若出现版本号,则代表已经安装了git,不需要再次安装了。 安装的话,分为用yum安装和下载git源码编译安装。但是cetos 5以及以下版本中的yum都没有git,无法使用yum安装,而cetos6可以使用yum安装git,但是安装的git是1.7.1版本的,而github需要的git版本最低都不能低于1.7.2。所以如果是cetos7以及以上版本的,推荐使用yum安装,方便,如果是cetos7以下的,请使用git源码编译安装git。 二、使用yum安装git 命令如下: yum -y install git 三、使用源码安装 3.1 安装依赖的包 yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker 3.2 下载git源码并解压 wget https://github.com/git/git/archive/master.zip unzip master.zip 3.3 创建/usr/local/git目录,用于安装git mkdir -p /usr/local/git 3.4 进入解压后的目录,进行安装,其中prefix指定安装目录 make prefix=

那些躺过的坑:Ubuntu16.04安装httpd

随声附和 提交于 2020-01-17 18:28:25
安装环境: Linux ubuntu 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux httpd的版本: httpd-2.4.41 下载: http://httpd.apache.org/download.cgi .解压编译: tar -jxvf httpd-2.4.41.tar.bz2 cd httpd-2.4.41 ./configure --prefix=/usr/local/httpd 很可惜编译报错 error: APR not found,则需要安装下面的依赖库 安装依赖库 (1) apr-1.7.0 下载:http://archive.apache.org/dist/apr/apr-1.7.0.tar.bz2 tar -jxvf apr-1.7.0.tar.bz2 cd apr-1.7.0 ./configure --prefix=/usr/local/apr make && make install (2) apr-util-1.5.4 (不建议安装最新版本apr-util-1.6.1,编译会报错) 下载:http://archive.apache.org/dist/apr/apr-util-1.5.4.tar

PHP 编译安装

喜夏-厌秋 提交于 2020-01-13 15:01:17
安装依赖 yum -y install wget vim git texinfo patch make cmake gcc gcc-c++ gcc-g77 flex bison file libtool libtool-libs autoconf kernel-devel libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glib2 glib2-devel bzip2 bzip2-devel libevent libevent-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel vim-minimal nano fonts-chinese gettext gettext-devel ncurses-devel gmp-devel pspell-devel unzip libcap diffutils 安装libmcrypt wget http:/

centos上普通用户安装nginx过程

落爺英雄遲暮 提交于 2020-01-13 14:10:47
[dongzw@localhost nginx-1.4.7]$ ./configure --prefix=/home/dongzw/nginx checking for OS + Linux 2.6.32-754.el6.x86_64 x86_64 checking for C compiler ... not found ./configure: error: C compiler cc is not found root用户安装: yum -y install gcc gcc-c++ autoconf automake make ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=<path> option. root用户安装: yum -y install zlib