Windows远程桌面(mstsc)不能复制粘贴的解决办法

背景

原来通过mstsc远程连接Windows能够直接在本地和服务器之间复制、粘贴一些文字和文件,最近突然无法直接复制粘贴了,只能通过远程映射的本地磁盘方式交换文件;

已经确认远程桌面连接选项“本地资源-》本地设备和资源-》剪贴板”中勾选了剪贴板。

Tomcat8启动报there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

当用tomcat8启动工程的时候,日志报错

09-Dec-2016 10:57:49.150 WARNING [localhost-startStop-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/struts/PersonnelActio
n.xml] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
09-Dec-2016 10:57:51.729 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

解决jenkins自动杀掉衍生进程

背景

今天用jenkins来部署tomcat工程,没有使用tomcat-deploy插件,直接写了个shell脚本,用脚本来停止、换包、启动tomcat,但是当jenkins Pipeline job执行完成后,发现后台tomcat进程没有了;

记grep+wc取值在shell中的结果与手动执行结果不一致的坑

有一个shell脚本来备份mysql数据库,crontab每天凌晨2点启动,但是运行一段时间后发现有时候在备份数据库遇到锁表等情况,导致备份一直在等待,在下一次启动后,又在此处等待了;几天后,后台同时有多个备份脚本在执行;于是打算修改下脚本,在执行备份前判断是否有其他备份脚本在执行,有的话则报错退出并告警;