上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 133 下一页

2017年11月30日

nomad 安装(单机)试用

摘要: 备注: nomad 可以实现基础设施的调度管理,类似kubernetes ,但是在多云以及多平台支持上比较好, 还是hashicrop 工具出品的,很不错,同时本地测试因为使用默认的job需要安装docker 1. 下载 备注: nomad 可以实现基础设施的调度管理,类似kubernetes ,但 阅读全文

posted @ 2017-11-30 15:52 荣锋亮 阅读(1437) 评论(0) 推荐(0)

Kanboard 看板工具配置使用

摘要: 备注: 类似的开源工具有wekan 界面还有功能和Trello 类似。比较方便 1. 安装(基于docker+ docker-compose) a. 安装docker && docker-compose 具体省略,参考相关文档,比较多 b. 安装Kanboard git clone https:// 阅读全文

posted @ 2017-11-30 10:04 荣锋亮 阅读(1201) 评论(0) 推荐(0)

2017年11月27日

cargo rust 包管理工具

摘要: 1. 安装 yum 或者官方提供的包,比较简单 curl -sSL https://static.rust-lang.org/rustup.sh | sh 2. 帮助命令 cargo --help Usage: cargo <command> [<args>...] cargo [options] 阅读全文

posted @ 2017-11-27 13:29 荣锋亮 阅读(471) 评论(0) 推荐(0)

container-diff 谷歌开源镜像分析工具使用

摘要: 1. 安装 curl -LO https://storage.googleapis.com/container-diff/latest/container-diff-linux-amd64 && chmod +x container-diff-linux-amd64 && sudo mv conta 阅读全文

posted @ 2017-11-27 13:22 荣锋亮 阅读(864) 评论(0) 推荐(0)

2017年11月24日

sysbench fileio 压力测试

摘要: 备注: 使用的是yum 安装 1. 安装 yum install -y sysbench 2. 命令 fileio options: --file-num=N number of files to create [128] --file-block-size=N block size to use 阅读全文

posted @ 2017-11-24 14:13 荣锋亮 阅读(334) 评论(0) 推荐(0)

sysbench 1.0.9 mysql 压测工具安装使用

摘要: 备注: 安装比较简单,可以使用源码或者使用yum 进行安装,本次测试使用yum 注意1.0 之后版本与老版本改动比较大,好多地方都有修改,本次测试使用 的mysql 使用docker 安装的。 1. 安装 yum install sysbench 2. 命令解析 --mysql-host IP -- 阅读全文

posted @ 2017-11-24 11:00 荣锋亮 阅读(860) 评论(0) 推荐(0)

2017年11月23日

systemtap 安装试用

摘要: 1. 安装 yum install -y systemtap systemtap-runtime 2. 环境准备 a. 自动安装依赖 stap-prep b. 手动安装依赖 kernel-debuginfo kernel-debuginfo-common kernel-devel 简单的方式使用yu 阅读全文

posted @ 2017-11-23 17:34 荣锋亮 阅读(277) 评论(0) 推荐(0)

2017年11月20日

Nchan 实时消息 安全配置

摘要: 备注: 即时消息的安全对于我们来说是比较重要的,作者在设计Nchan 的时候已经考虑了 a. nchan_authorize_request (Hooks and Callbacks)可以集成后端服务 配置如下: upstream my_app { server 127.0.0.1:8080; } 阅读全文

posted @ 2017-11-20 19:20 荣锋亮 阅读(480) 评论(0) 推荐(0)

Nchan 实时消息内置变量

摘要: 以下参考官方文档: $nchan_channel_idThe channel id extracted from a publisher or subscriber location request. For multiplexed locations, this is the first chan 阅读全文

posted @ 2017-11-20 19:20 荣锋亮 阅读(317) 评论(0) 推荐(0)

Nchan 实时消息ha 配置

摘要: 备注: Nchan 的数据持久化,以及ha 都是通过redis实现的,如果要做到无单点可以使用redis cluster 同对于Nchan server 进行多副本 1. 安装 下载nginx or openresty 源码同时下载Nchan 源码进行编译打包即可 2. 简单sub/pub 配置 l 阅读全文

posted @ 2017-11-20 19:19 荣锋亮 阅读(970) 评论(0) 推荐(1)

Nchan 安装试用(openresty 同时支持)

摘要: 备注: 使用nginx最新的源码包(nginx-1.13.6),以及源码安装 1. 下载源码包(nginx+ Nchan) https://nginx.org/download/nginx-1.13.6.tar.gz wget https://github.com/slact/nchan/archi 阅读全文

posted @ 2017-11-20 14:28 荣锋亮 阅读(1099) 评论(0) 推荐(0)

Nchan nginx 支持的开源消息推送模块

摘要: 1. 介绍 // 官方说明 Nchan is a scalable, flexible pub/sub server for the modern web, built as a module for the Nginx web server. It can be configured as a s 阅读全文

posted @ 2017-11-20 13:13 荣锋亮 阅读(808) 评论(0) 推荐(0)

toxiproxy 安装试用

摘要: 备注: 实际上是一个代理工具,但是又不是简单的进行代理(tcp,可以配置策略,toxics 实现延迟,模拟故障, 对于这个大家可能了解的就是netflix 公司的chaos monkey,实际的使用大家可以参考相关文章,本次只是 对于toxiproxy 的简单安装试用,同时这个工具可以放到大家持续集 阅读全文

posted @ 2017-11-20 09:53 荣锋亮 阅读(1590) 评论(0) 推荐(0)

2017年11月19日

Toxiproxy 网络情况模式代理

摘要: 1. 介绍 1. 介绍 Toxiproxy is a framework for simulating network conditions. It's made specifically to work in testing, CI and development environments, su 阅读全文

posted @ 2017-11-19 19:19 荣锋亮 阅读(477) 评论(0) 推荐(0)

2017年11月18日

luvit 被忽视的lua 高性能框架(仿nodejs)

摘要: 备注: luvit 开放模式和nodejs 一样,但是因为生态以及小众语言的问题,使用的人比较少,但是从目前 来看更新速度还是比较快的,但是从现有lua 开发框架来说一般倾向于使用nginx+lua 的模式,尽管 有人说luvit 性能比nodejs 还高,还是没有比较广泛的普及 1. 安装 cur 阅读全文

posted @ 2017-11-18 12:00 荣锋亮 阅读(3160) 评论(0) 推荐(0)

lapis 处理接收到的json 数据

摘要: 备注: 在restful api 开发过程中,大家一般使用的都是json 格式的数据lapis 在处理json 数据上也是比较方便的 1. 使用的api 说明 local json_params = require("lapis.application").json_params 2. 参考代码 / 阅读全文

posted @ 2017-11-18 11:35 荣锋亮 阅读(272) 评论(0) 推荐(0)

luarocks yum 安装引起的lapis lua 包查找问题(centos7版本)

摘要: 备注: 大家在进行lapis 开发的时候有些人比较懒直接使用yum 按照luarocks,之后 使用luarocks 安装lapis 一般来说对于linux 64位的环境都会有些问题(包找不到) 1. 错误提示信息 2017/11/18 09:54:09 [error] 21876#0: *1 lu 阅读全文

posted @ 2017-11-18 10:40 荣锋亮 阅读(1052) 评论(0) 推荐(0)

2017年11月17日

kong nginx 配置文件说明&&借鉴

摘要: 备注: 只是简单的进行说明配置文件,不会牵扯到源码 1. 配置文件位置 // 通过ps 查找 ps -ef |grep nginx /usr/local/openresty/nginx/sbin/nginx -p /usr/local/kong -c nginx.conf 可以看到kong 不是直接 阅读全文

posted @ 2017-11-17 21:14 荣锋亮 阅读(5093) 评论(0) 推荐(0)

kong 安装

摘要: 1. yum 参考信息 https://bintray.com/kong/kong-community-edition-rpm $ sudo yum install epel-release $ sudo yum install kong-community-edition-0.11.1.*.noa 阅读全文

posted @ 2017-11-17 20:02 荣锋亮 阅读(1843) 评论(0) 推荐(0)

2017年11月16日

lapis 集成openresty最新版本cjson 问题的解决

摘要: 备注: 为了解决安装了lapis、同时又希望使用新版nginx 以及openresty 的特性(stream 。。。) 1. 解决方法 参考: https://github.com/leafo/lapis/issues/539 luarocks install lua-cjson2 2. openr 阅读全文

posted @ 2017-11-16 23:39 荣锋亮 阅读(1061) 评论(0) 推荐(0)

2017年11月15日

lapis cockroachdb 数据访问试用

摘要: 备注: cockroachdb 的安装可以参考官方文档,以下实例代码使用的是官方的参考例子 1. 数据库配置 // config.lua 参考: local config = require("lapis.config") config("development", { postgres = { h 阅读全文

posted @ 2017-11-15 22:35 荣锋亮 阅读(483) 评论(0) 推荐(0)

cockroachdb 安装试用(单机伪分布式)

摘要: 1. 下载 以下地址,选择对应的操作系统版本即可 https://www.cockroachlabs.com/docs/stable/install-cockroachdb.html 2. 启动 // 启动命令 cockroach start --insecure \ --host=xxxxx // 阅读全文

posted @ 2017-11-15 22:08 荣锋亮 阅读(2507) 评论(0) 推荐(0)

lapis 数据库配置

摘要: 备注: 目前支持 postgresql 、mysql (实际使用大家可以尝试用下tidb、CockroachDB) 1. pg数据库配置 // config.lua local config = require("lapis.config") config("development", { post 阅读全文

posted @ 2017-11-15 20:52 荣锋亮 阅读(323) 评论(0) 推荐(0)

lapis 路由

摘要: 1. 路由以及url 模式 参考如下: local lapis = require("lapis") local app = lapis.Application() app:match("/", function(self) end) // 必须的 app:match("/hello", funct 阅读全文

posted @ 2017-11-15 20:40 荣锋亮 阅读(290) 评论(0) 推荐(0)

lapis http verb 处理

摘要: 1. 同一个url 包含不同的请求(respond_to 进行解决) // 路由格式 match ,通过respond_to 进行实际的http verb 处理 local lapis = require("lapis") local respond_to = require("lapis.appl 阅读全文

posted @ 2017-11-15 20:37 荣锋亮 阅读(457) 评论(0) 推荐(0)

lapis 基本开发

摘要: 1. 生成项目代码 // 支持lua 以及 moonscript, 默认是moonscript 通过--lua 可以生成lua 的代码 lapis new --lua ├── app.lua ├── mime.types ├── models.lua ├── nginx.conf 2. 启动项目 / 阅读全文

posted @ 2017-11-15 20:16 荣锋亮 阅读(450) 评论(0) 推荐(0)

lapis 框架安装试用

摘要: 备注: 此次安装使用的是openresty 的openresty-1.11.2.1(openresty-1.11.2.1.tar.gz,最新版本存在cjson 包的问题 ) 同时对于luarocks 使用源码安装(使用yum 会有包的问题,解决起来少为费事点,实际上通过配置环境变量 也可以解决,就是 阅读全文

posted @ 2017-11-15 15:59 荣锋亮 阅读(1153) 评论(0) 推荐(0)

openresty luarocks 安装以及openssl 问题处理

摘要: 1. 安装方式 wget https://luarocks.github.io/luarocks/releases/luarocks-2.4.3.tar.gz tar -xzvf luarocks-2.4.3.tar.gz cd luarocks-2.4.3 ./configure --prefix 阅读全文

posted @ 2017-11-15 15:35 荣锋亮 阅读(1043) 评论(0) 推荐(0)

2017年11月13日

Jitsi 开源视频会议远程桌面共享&&文档共享工具

摘要: 1. 特点 主要功能特点: 支持网络视频会议,使用SFU模式实现视频路由器功能。 支持SIP帐号注册电话呼叫。 支持安卓苹果终端。 支持文档共享功能,即时消息功能。 支持中文界面。 支持会议邀请,密码设置。 支持单机本地安装方式,支持云平台安装。 2. 几个参考界面 文档编辑共享 中文配置 3. 便 阅读全文

posted @ 2017-11-13 23:41 荣锋亮 阅读(3011) 评论(0) 推荐(0)

gradle build scan 插件使用

摘要: 1. 添加插件 build.gradle plugins { id 'com.gradle.build-scan' version '1.10.2' } buildScan { // Uncomment the lines below to agree to the Terms of Service 阅读全文

posted @ 2017-11-13 14:16 荣锋亮 阅读(1514) 评论(0) 推荐(0)

2017年11月12日

gradle 配置java 项目maven 依赖

摘要: 1. 内置的 repositories { mavenCentral() } 2. maven 私服 repositories { maven { url "http://maven.aliyun.com/" } } 3. 依赖私有jar 包 // 指定几个文件的 dependencies { co 阅读全文

posted @ 2017-11-12 23:53 荣锋亮 阅读(346) 评论(0) 推荐(0)

gradle 插件

摘要: 1. 系统内置插件的应用 a. 二进制 apply plugin :"pluginname" 比如: java b. 脚本插件 apply from : "version.gradle" task demo << { println "the script info $version.code && 阅读全文

posted @ 2017-11-12 23:42 荣锋亮 阅读(257) 评论(0) 推荐(0)

gradle java 简单项目使用

摘要: 预备环境 gradle 配置好变量,方便生成项目 1. 环境配置 gradle wrapper 生成项目结构 ├── build.gradle ├── gradle │ └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.propert 阅读全文

posted @ 2017-11-12 23:06 荣锋亮 阅读(412) 评论(0) 推荐(0)

gradle 命令行

摘要: 1. 帮助 ./gradlew -h 2. gradle 可执行tasks gradle tasks or ./gradlew tasks 3. gradle help 任务 帮助了解每个task 的使用帮助 ./gradlew help --task 比如查看 tasks 的帮助 ./gradle 阅读全文

posted @ 2017-11-12 21:31 荣锋亮 阅读(778) 评论(0) 推荐(0)

gradle wrapper 简单使用

摘要: 其实就是对于gradle 的一个包装,保证了项目版本的一致,同时减少配置 1. 生成wrapper // 使用gradle wrapper 命令 gradle wrapper 输出效果如下: [root@iZ2zeg7uro1snhd9wqmp2oZ first]# gradle wrapper S 阅读全文

posted @ 2017-11-12 21:07 荣锋亮 阅读(588) 评论(0) 推荐(0)

gradle 安装试用

摘要: 1. java 环境(jdk 6 以上,最好使用8以及以上) yum install -y java-1.8.0-openjdk-devel 2. 基本配置 // path 路径 export PATH=$PATH:/opt/gradle/gradle-4.3.1/bin; source /etc/ 阅读全文

posted @ 2017-11-12 15:57 荣锋亮 阅读(223) 评论(0) 推荐(0)

linux 使用asciinema 进行命令行屏幕录制共享

摘要: 1. 安装 yum install asciinema 2. 使用 录制 asciinema rec filename(可选,方便进行后期的回放play) 同时生成一个url 地址方便传递 https://asciinema.org/a/xxxxxxx 同时绑定账户之后,可以存储历史的信息 asci 阅读全文

posted @ 2017-11-12 15:30 荣锋亮 阅读(423) 评论(0) 推荐(0)

ansible playbook 使用

摘要: ansible playbook 格式是json yaml 1. 执行方法 ansible-playbook deply.yml 2. playbook 格式 关键字 hosts 主机ip 主机组名 remote_user 用户身份 vars 变量 tasks 定义顺序执行的action 每个act 阅读全文

posted @ 2017-11-12 14:28 荣锋亮 阅读(212) 评论(0) 推荐(0)

ansible安装基本使用

摘要: 备注使用yum (centos7) 1. 安装 yum install -y ansible 2. 免密登录(ssh,最好使用dns 解析) // create ssh key ssh-keygen // copy ssh key to remote host ssh-copy-id -i /roo 阅读全文

posted @ 2017-11-12 14:28 荣锋亮 阅读(234) 评论(0) 推荐(0)

2017年11月11日

gulp 集成其他基于流的工具

摘要: 1. 流、缓冲、vinyl 文件对象 gulp 的流是虚拟文件对象 包含的属性有 base 文件名 path 文件路径 content 缓冲、nodejs 流 2. gulp 集成 browserify browserify 基于文本流,缺少的是base 以及path,可以使用的工具 vinyl-s 阅读全文

posted @ 2017-11-11 18:18 荣锋亮 阅读(434) 评论(0) 推荐(0)

上一页 1 ··· 110 111 112 113 114 115 116 117 118 ··· 133 下一页

导航