文章列表
- 博客分类:
jenkins 是已经搭建好的,本次主要是后面脚本的事情
公司项目需要部署多台服务器 避免每次打包上传,想弄个自动构建。
步骤如下:
1 jenkins构建完之后会可以执行本机脚本
2 安装expcet
3 写脚本:
#!/usr/bin/expect -f
set password test
set ipone 10.2.0.1
set username test
spawn scp /root/.jenkins/workspace/test/product/test.war $username@$ipone:/home/work/test.war
set time ...
- 2016-09-26 17:47
- 浏览 1005
- 分类:操作系统
tomcat 报错不明显的时候 可以在 web-inf/classes 添加 logging.properties
handlers = org.apache.juli.filehandler, java.util.logging.consolehandler
#######################################################
# handler specific properties.
# describes specific configuration info for handlers.
############## ...
- 2016-09-26 17:45
- 浏览 444
- 分类:企业架构
- 博客分类:
在windows里写的shell脚本放到linux系统里运行就可以会提示如下错误syntax error near unexpected token `...这是因为两个平台下面的换行符不一样导致的。所以需要转换下格式,notepad 就有这个功能。
视图->显示字符->显示所有字符
编辑 -》文档格式转化 -》 unix 即可
- 2016-09-26 08:26
- 浏览 356
- 分类:操作系统
http://www.ttlsa.com/nginx/use-nginx-proxy/
这个地方配置是我看到比较详细和 好用的。记录下...
公司有些坑,例如外网 映射到内网地址的时候,可能会映射不成功,
- 2016-09-22 15:20
- 浏览 279
- 分类:开源软件
- 博客分类:
package cn.bidlink.wsmp.commons.security;
import junit.framework.testcase;
import org.springframework.util.antpathmatcher;
import org.springframework.util.pathmatcher;
public class antpathmatchertest extends testcase {
public void testmatch() {
pathmatcher ma ...
- 2016-09-08 14:51
- 浏览 1070
- 分类:编程语言
- 博客分类:
最近需要查看源码 但是myeclipse 创建的工程无法下载源码,不知道啥原因!
使用下面命令 创建工程 并在pom.xml 里面加入需要下载的依赖就可以下载了。
mvn -x archetype:generate -dgroupid=ce.demo.mvn -dartifactid=app
mvn -x dependency:sources
- 2016-09-08 14:47
- 浏览 393
- 分类:编程语言
- 博客分类:
返回多参数:
blog http://blog.csdn.net/u012410733/article/details/51729791
开始使用的这里面的方法,但是死活获取不到参数, 看源码发现 客户端验证竟然:
cas10 而 获取 参数必须的是cas20的验证器才行,
碰到这个坑 主要是没有去理解 cas 交互流程, 从服务端返回 ticket 到客户端的后,客户端会带着这个ticket 去验证是否有效才会继续执行。 早点看客户端源码就不会走弯路了。。
过滤掉某些url 不走cas
blog: http://wangyangqq2008.iteye.com/blog/2043 ...
- 2016-09-08 11:47
- 浏览 922
- 分类:编程语言
- 博客分类:
alter table tt drop constraint pk__bs_cas_u__3213e83f612ad0eb ;
alter table tt drop column id ;
alter table tt add id int primary key identity(1,1)
- 2016-09-08 11:40
- 浏览 1946
- 分类:非技术