node nodejs编译报错 错误信息 报错 [jenkins@5a3e26f51f28 kanche-taurus]$ npm run build > kanche-taurus@ build /home/jenkins/workspace/kanche-taurus > atool-build 📦 2659/2659 build modules # # Fatal error in , line 0 # API fatal error handler returned after process
git git回退到某版本 回退某个版本 git reset --hard commit-version 强推到远程服务器 git push -u origin master --force 将远程不存在的分支在本地删除 git remote update origin --prune 删除本地分支 git branch -D 删除多个分支 git branch |grep -v master|xargs git branch -D 将当前分支检出为另一分支
other kibana搜索异常之custom format isn't support 通过kibana搜索时,提示[unsupported_operation_exception]custom format isn't support 在kibana中重新添加该索引,发现无法选择默认时间 timeStamp 查看该索引的mapping,发现timeStamp的类型为text
git git标签操作 列出标签 git tag 根据条件搜索标签 列出v1.4.2.*的tag git tag -l 'v1.4.2.*' 新建标签 git tag -a v1.4 含附注的标签 git tag -a v1.4 -m 'my version 1.4' 轻量级标签就像是个不会变化的分支,
nginx nginx修改上传文件大小限制 上传文件时,nginx报413 Request Entity Too Large错误 需要修改nginx配置文件nginx.conf 在http{}段中添加或修改: client_max_body_size 20m; -s reload 重新加载nginx配置文件即可
keepalived keepalived 下载keepalived keepalived安装:yum install keepalived 配置文件 master配置文件 ! Configuration File for keepalived global_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } notification_email_from Alexandre.Cassen@firewall.loc smtp_server
jenkins jenkins之node jenkins环境 根据jenkins centos环境搭建 docker及nodejs步骤 docker run -d --name jenkinsbuild_slave-python_upgrade -v /root/workspace/jenkins_build/jenkins_slave_nodejs_upgrade:/home/jenkins -v /var/run/docker.sock:/var/run/docker.sock myasuda/jenkins-centos-slave -v
linux linux 路由介绍 路由操作 route:查看该节点的路由信息 route del -net 172.17.0.0 netmask 255.255.255.0:删除某路由 route add -net 172.17.0.0 netmask 255.255.255.0 gw 10.254.0.67:
consul consul集群搭建 安装consul二进制 参考 准备三个机器 下载 consul 0.7版本 wget https://releases.hashicorp.com/consul/0.7.2/consul_0.7.2_linux_amd64.zip 1.13.0版本 wget http://blog.liu-kevin.com/content/images/
ghost ghost搭建 ghost简介 dockerhub:https://hub.docker.com/_/ghost/ github:https://github.com/TryGhost/Ghost 安装docker root下yum install docker 给其它用户赋权 chmod o+r docker.sock chmod o+x docker.sock chmod o+w docker.sock
git gitlab ssh使用方式 SSH git有两种操作方式 http:通过账号密码操作托管项目 ssh:通过配置sshkey操作托管项目 通过ssh-keygen -t rsa -C "test@sina.com"生成sshkey 将id_rsa.pub配置到gitlab 配置ssh config文件 Host git.***.com HostName git.***.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa
etcd etcd之curl请求介绍 version [root@test-go etcd-v3.1.5-linux-amd64]# curl 127.0.0.1:2379/version {"etcdserver":"3.1.5","etcdcluster":"3.1.0"}[root@test-go etcd-v3.1.
etcd etcd基础介绍 etcd简介 etcd是一个高可用的分布式键值(key-value)数据库。etcd内部采用raft协议作为一致性算法,etcd基于Go语言实现。 etcd是一个服务发现系统,具备以下的特点: 简单:安装配置简单,而且提供了HTTP API进行交互,使用也很简单 安全:支持SSL证书验证 快速:根据官方提供的benchmark数据,单实例支持每秒2k+读操作 可靠:采用raft算法,实现分布式系统数据的可用性和一致性 etcd应用场景 用于服务发现,服务发现(ServiceDiscovery)要解决的是分布式系统中最常见的问题之一,即在同一个分布式集群中的进程或服务如何才能找到对方并建立连接。 要解决服务发现的问题,需要具备下面三种必备属性。 一个强一致性、高可用的服务存储目录。 基于Ralf算法的etcd天生就是这样一个强一致性、
es es-基础之增删改查及mapping介绍 es用途 略 ES与DB的关系 ES:indices --> types --> documents --> fields DB:databases --> tables --> rows --> columns es的端口介绍 es端口分别为9200,9300;以下均基于9200端口介绍 * 9200: http协议的RESTful接口 * 9300:tcp通讯端口,