摘要: tomcat 虚拟目录1. \conf\Catalina\localhost 创建test.xml文件,经过测试xml文件名不能和项目名相同 添加内容 <?xml version="1.0" encoding="UTF-8"?><Context docBase="F:/test" debug="0" 阅读全文
posted @ 2018-02-04 15:31 newlangwen 阅读(199) 评论(0) 推荐(0) 编辑
摘要: nohup /test.sh 1>/dev/null 2>&1 & 1.$PATH2.ls -al ~ (~ 显示隐藏的文件) 3 cd ~ // 回到自己的主文件4.cp /var/log/wtmp . //复制到当前目录,最后的“.”不要忘 ls -l /var/log/wtmp wtmp cp 阅读全文
posted @ 2018-02-04 15:30 newlangwen 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: shell 变量1.设置值$name=test2. 输出变量的值 echo $echo $name3. 增加变量内容PATH=$PATH:/home/bin/testPATH="$PATH":/home/bin/testPATH=${PATH}:/home/bin/test4.若该变量需要在其他子进 阅读全文
posted @ 2018-02-04 15:29 newlangwen 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.分布式锁 https://www.cnblogs.com/liuyang0/p/6744076.html https://www.cnblogs.com/austinspark-jessylu/p/8043726.html 分布式锁一般用在分布式系统或者多个应用中,用来控制同一任务是否执行或者任 阅读全文
posted @ 2018-02-04 15:22 newlangwen 阅读(226) 评论(0) 推荐(0) 编辑