摘要: create.controller('CreateCtrl', ['$scope', '$http', '$element', '$compile', function ($scope, $http, $element, $compile) { $scope.setFormHtml = functi 阅读全文
posted @ 2016-12-15 10:16 chi++ 阅读(2866) 评论(0) 推荐(0) 编辑
摘要: 因为低版本的safari浏览器不支持svg下的innerHTML方法 而我们的移动端h5页面引用了d3.js插件,而d3中使用了innerHTML 我们的解决方案是不修改d3的任何原代码,去重写innerHTML方法 从gitHub上找到了一个小插件,简单修改即可实现 https://github. 阅读全文
posted @ 2016-10-28 09:12 chi++ 阅读(2119) 评论(0) 推荐(0) 编辑
摘要: 1.首先创建函数 BEGIN DECLARE sTemp VARCHAR(4000);DECLARE sTempChd VARCHAR(4000);SET sTemp = '$';SET sTempChd = cast(pID as char); WHILE sTempChd is not NULL 阅读全文
posted @ 2016-10-25 11:43 chi++ 阅读(3469) 评论(0) 推荐(0) 编辑
摘要: 柱状图的双y轴 yAxis: [{ min: 0, title: { text: '' }, gridLineWidth: 0, labels: { enabled: false }}, { title: { text: '' }, opposite: true, gridLineWidth: 0, 阅读全文
posted @ 2016-10-18 14:21 chi++ 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.做一个auto_ssh.exp #!/usr/bin/expect set timeout 30 spawn ssh [lindex $argv 0]@[lindex $argv 1] expect { "(yes/no)?" {send "yes\n";exp_continue} "passw 阅读全文
posted @ 2016-07-22 17:35 chi++ 阅读(2232) 评论(0) 推荐(0) 编辑
摘要: 1、安装fsftpd yum install -y vsftpd systemctl start vsftpd 默认情况下是允许匿名登录的,目录是:/var/ftp 2、安装yum源制作命令 yum install -y createrepo 下面是一个yum优先级插件,可以不用安装,如果安装了,就 阅读全文
posted @ 2016-06-03 15:25 chi++ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: cen7之后mysql改名了,改为mariadb 1. 安装mysql 服务器端: yum install mariadb-server yum install mariadb-devel 2. 安装mysql客户端: yum install mariadb 3. 启动mysql服务: servic 阅读全文
posted @ 2016-06-03 15:23 chi++ 阅读(359) 评论(0) 推荐(0) 编辑
摘要: DaemonSet是一种新的kind值 若要创建此类型需要apiversion为extensions/v1beta1 若要支持此apiversion需要在kube-apiserver服务起动时增加一个类数: --runtime-config=api/all 这个参数是控制kube-apiserver 阅读全文
posted @ 2016-06-03 15:20 chi++ 阅读(2083) 评论(0) 推荐(0) 编辑
摘要: 1.生成证书,进入到/var/run/kubernetes目录,执行如下 openssl genrsa -out ca.key 2048 openssl req -x509 -new -nodes -key ca.key -subj "/CN=abc.com" -days 5000 -out ca. 阅读全文
posted @ 2016-06-03 15:10 chi++ 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: 第一步,起动elasticsearch服务 到elasticsearch官网下载tar包 在普通用户的目录上进行操作,上传到准备安装的机器上解压 修改ES_HOME/config/elasticsearch.yml 打开注释并修改为本机的真实IP network.host: 10.0.93.205 阅读全文
posted @ 2016-06-03 15:09 chi++ 阅读(2072) 评论(0) 推荐(0) 编辑