上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 132 下一页

2018年4月18日

phoenix elixir 框架简单试用

摘要: 备注: 官方提供的脚手架工具,我们可以直接使用,生成代码,同时需要nodejs 环境配置(比较简单,参考 相关资料即可) 1. 安装脚手架 mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_ 阅读全文

posted @ 2018-04-18 11:54 荣锋亮 阅读(2463) 评论(0) 推荐(1)

2018年4月17日

k8s helm 私服chartmuseum minio s3 存储配置

摘要: 1. 安装minio 使用docker 安装 参考项目 https://github.com/rongfengliang/mino-thumbor-openresty 备注: 因为是一个集成项目可能会有点复杂使用了docker-compsoe 以及图片缩略图 2. 配置 a. 配置s3 mkdir 阅读全文

posted @ 2018-04-17 11:41 荣锋亮 阅读(1094) 评论(0) 推荐(0)

k8s helm 包管理私服chartmuseum 安装

摘要: 备注: 预备环境需要安装helm 1. 安装chartmuseum 参考 # on Linux curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum # on macOS cu 阅读全文

posted @ 2018-04-17 10:21 荣锋亮 阅读(1116) 评论(0) 推荐(0)

2018年4月14日

osquery简单试用

摘要: 备注: osquery facebook 开源的将操作系统指标转换为sql 查询,方便好用,很适合devops 性能分析,系统监控 1. 安装 参考 https://osquery.io/downloads/official/2.11.2 我使用的是centos 使用rpm 包安装 wget htt 阅读全文

posted @ 2018-04-14 20:50 荣锋亮 阅读(4130) 评论(0) 推荐(1)

2018年4月13日

使用gopherjs 进行web 应用开发

摘要: 1. 安装 go get -u github.com/gopherjs/gopherjs 2. 基本代码使用 备注: 这个只是一个简单的demo,进行pi 运算,结果还真是快 a. code golang package main import ( "fmt" "math" "time" ) fun 阅读全文

posted @ 2018-04-13 11:02 荣锋亮 阅读(1255) 评论(0) 推荐(0)

2018年4月12日

elixir grpc 试用

摘要: 备注: elixir grpc 封装测试 1. 安装 a. 安装 protoc 参考相关文档,比较简单 b. 安装elixir grpc 插件 protoc-gen-elixir 同时配置环境变量 2. 基本项目使用 a. 创建项目 mix new appdemo cd appdemo touch 阅读全文

posted @ 2018-04-12 21:32 荣锋亮 阅读(681) 评论(0) 推荐(0)

elixir 调用erlang 代码

摘要: 备注: 项目比较简单,主要是elixir 混合erlang 代码,elixir 调用erlang 模块方法 1. 初始化项目 mix new erlangelixirdemo 项目结构如下: ├── README.md ├── config │ └── config.exs ├── lib │ └─ 阅读全文

posted @ 2018-04-12 15:48 荣锋亮 阅读(513) 评论(0) 推荐(0)

Elixir's keyword lists as option parameters

摘要: 备注: 文章转自:https://www.djm.org.uk/posts/writing-extensible-elixir-with-behaviours-adapters-pluggable-backends/ This article also offers an intro to the 阅读全文

posted @ 2018-04-12 15:13 荣锋亮 阅读(250) 评论(0) 推荐(0)

2018年4月11日

ffmpeg && nginx hls

摘要: 备注: 使用ffmpeg 将视频转换为hls,并使用nginx 提供服务,实现点播功能,没有使用rtmp 插件 1. ffmpeg 命令生成文件 a. ts ffmpeg -y -i mydemo.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannex 阅读全文

posted @ 2018-04-11 13:22 荣锋亮 阅读(501) 评论(0) 推荐(0)

2018年4月10日

elixir 几种安装方式

摘要: 1. yum yum 源(直接放弃,版本太老) 2. 使用预编译包 wget https://github.com/elixir-lang/elixir/releases/download/v1.6.4/Precompiled.zip 配置环境变量 export PATH="$PATH:/path/ 阅读全文

posted @ 2018-04-10 17:16 荣锋亮 阅读(496) 评论(0) 推荐(0)

一张elixir生产环境部署的图

摘要: 阅读全文

posted @ 2018-04-10 15:37 荣锋亮 阅读(392) 评论(0) 推荐(0)

2018年4月8日

elixir 使用mix umbrella 模块化项目

摘要: 备注: 项目比较大, 模块比较多,一般使用mix 的方式是大家进行文件夹的划分,但是使用mix 的umbrella 可能会更方便 1. 安装 默认安装elixir 的时候已经包含了这个功能 2. 基本使用 a. 创建根项目 mix new <projectname> --umbrella 生成的项目 阅读全文

posted @ 2018-04-08 11:21 荣锋亮 阅读(483) 评论(0) 推荐(0)

2018年4月7日

nginx unit 安装试用

摘要: 1. yum 源 nano /etc/yum.repos.d/unit.repo 内容 [unit] name=unit repo baseurl=https://packages.nginx.org/unit/centos/$releasever/$basearch/ gpgcheck=0 ena 阅读全文

posted @ 2018-04-07 13:06 荣锋亮 阅读(604) 评论(0) 推荐(0)

nginx ngscript 简单使用

摘要: 备注: 默认没有集成到nginx包里,需要单独安装(推荐使用动态模块的方式进行安装) 1. 安装 wget https://nginx.org/download/nginx-1.13.11.tar.gz hg clone http://hg.nginx.org/njs // njs 模块克隆 ./c 阅读全文

posted @ 2018-04-07 12:22 荣锋亮 阅读(532) 评论(0) 推荐(0)

2018年4月5日

elixir mix开发入门

摘要: 备注: 简单使用mix 进行项目的生成,同时添加docker 构建支持 1. 生成项目 mix new mydemoproject 输出信息如下: * creating README.md * creating .formatter.exs * creating .gitignore * creat 阅读全文

posted @ 2018-04-05 20:32 荣锋亮 阅读(484) 评论(0) 推荐(0)

memsql 基本安装试用

摘要: 备注:使用docker 进行安装 1. 基本准备 a. 环境检查(必须,不然会有服务启动异常的问题) docker run --rm memsql/quickstart check-system b. 启动 docker run -d -p 3306:3306 -p 9000:9000 --name 阅读全文

posted @ 2018-04-05 19:27 荣锋亮 阅读(4515) 评论(0) 推荐(0)

2018年3月30日

使用vigil 监控微服务系统包含可视化界面

摘要: 1. 安装 a. rust cargo cargo install vigil-server b. docker docker pull valeriansaliou/vigil:v1.3.0 2. 配置说明 使用起来需要的就是配置文件 config.cfg,配置还是比较简单的,从字面意思可以看明白 阅读全文

posted @ 2018-03-30 14:51 荣锋亮 阅读(329) 评论(0) 推荐(0)

2018年3月26日

使用openresty && minio && thumbor 构建稳定高效的图片服务器

摘要: 备注: minio 是一个开源的s3 协议兼容的分布式存储,openresty nginx+lua 高性能可扩展的nginx 衍生版,thumbor 基于python 的图片处理服务器,支持图片的裁剪,识别。。。。 代码为使用docker 构建的一个一体化的参考代码,实际使用中,大家可以基于自己的业 阅读全文

posted @ 2018-03-26 14:41 荣锋亮 阅读(2764) 评论(0) 推荐(0)

2018年3月22日

lapis docker 运行说明

摘要: 1. lapis docker 镜像制作 因为openresty 新版本一个json 库的问题,我们使用的是 openresty:1.11.2.1 基础镜像 FROM openresty/openresty:1.11.2.1-centos RUN yum install -y openssl-dev 阅读全文

posted @ 2018-03-22 16:34 荣锋亮 阅读(338) 评论(0) 推荐(0)

2018年3月18日

使用npm link 创建本地模块

摘要: 1. npm link 介绍 创建一个全局的符号链接,优点是方便我们进行本地node模块的开发调用,和后期发布私服,或者npm 仓库调用是一致的 以下为官方的说明: First, npm link in a package folder will create a symlink in the gl 阅读全文

posted @ 2018-03-18 13:56 荣锋亮 阅读(1109) 评论(0) 推荐(0)

2018年3月16日

service fabric docker 安装

摘要: 1. 镜像拉取 docker pull microsoft/service-fabric-onebox 2. 配置docker(daemon.json) { "ipv6": true, "fixed-cidr-v6": "fd00::/64" } 3. 启动镜像 docker run -itd -p 阅读全文

posted @ 2018-03-16 14:44 荣锋亮 阅读(906) 评论(0) 推荐(1)

lets encrypt 申请nginx 泛域名

摘要: 1. 安装certbot工具 wget https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto 2. 申请通配符域名 ./certbot-auto --server https://acme-v02.api.letsencrypt.org/d 阅读全文

posted @ 2018-03-16 10:30 荣锋亮 阅读(943) 评论(2) 推荐(0)

2018年3月15日

nginx 支持ie 6 等低版本https 的配置

摘要: nginx 配置 https 支持ie6 等低版本(主要是加密套件的问题) server { listen 443 ssl; server_name itapiway.demo.com; ssl_certificate cert/wsriakey-pem.crt; ssl_certificate_k 阅读全文

posted @ 2018-03-15 15:26 荣锋亮 阅读(827) 评论(0) 推荐(0)

2018年3月14日

tomcat  nginx  证书切换

摘要: 1. 导出公钥 keytool -export -alias tomcat -keystore <you jks>wsriakey.keystore -file <outputfile>wsriakey.crt 2. 转化为 pem 格式 openssl x509 -out <outputfilen 阅读全文

posted @ 2018-03-14 08:16 荣锋亮 阅读(434) 评论(0) 推荐(0)

2018年3月12日

再谈zabbix 邮件通知配置(不用脚本,简单配置就可以了)

摘要: 备注: 安装过zabbix 的人,大家都应该了解,后者查询网上的资料邮件通知一般是编写一个脚本,即报警媒介类型,创建一个script类似的 然后编写脚本,进行发送,但是实际上,系统内置的邮件发送还是比较简单的,直接配置就可以了,只是实际上大家只操作了添加用户 并配置用户的报警媒介,或者添加了群组但是 阅读全文

posted @ 2018-03-12 08:57 荣锋亮 阅读(377) 评论(0) 推荐(0)

2018年3月11日

使用neon 开发nodejs addon

摘要: 备注:开发使用的是mac 系统,需要安装rust nodejs 、python2.7 Xcode 1. 安装neon npm install -g neon-cli 2. 创建简单项目 neon new firstaddon (会有提示进行输入即可) 3. 项目结构 ├── README.md ├─ 阅读全文

posted @ 2018-03-11 20:05 荣锋亮 阅读(1122) 评论(0) 推荐(0)

2018年3月9日

grpc nodejs tools 安装问题

摘要: grpc nodejs 应用安装提示错误: stack Error: EPERM: operation not permitted, utime '/usr/local/lib/node_modules/grpc-tools/bin' 解决方法: npm install -g grpc-tools 阅读全文

posted @ 2018-03-09 20:07 荣锋亮 阅读(765) 评论(0) 推荐(0)

2018年3月8日

grpc rust 项目基本使用

摘要: 1. 安装依赖(rust 基本依赖就不说了,需要配置环境变量) protoc 参考: https://github.com/google/protobuf/releases/tag/v3.5.1 2. 参考项目 https://github.com/rongfengliang/grpc-rustde 阅读全文

posted @ 2018-03-08 10:45 荣锋亮 阅读(717) 评论(0) 推荐(0)

2018年3月1日

goreman 多进程管理工具

摘要: Linux下多进程管理工具对开发和运维都很有用,常见的功能全面的主流工具主要有monit、supervisor。不过开发中使用则推荐轻量级小工具goreman 举个例子:coreos的etcd就是使用的goreman来一键启停单机版的etcd集群。 参考配置 # Use goreman to run 阅读全文

posted @ 2018-03-01 22:36 荣锋亮 阅读(638) 评论(0) 推荐(0)

2018年2月28日

grpc gateway 使用以及docker compose 集成

摘要: 1. grpc gateway 安装 参考,比较简单,有需要的依赖可以参考相资料 mkdir tmp cd tmp git clone https://github.com/google/protobuf cd protobuf ./autogen.sh ./configure make make 阅读全文

posted @ 2018-02-28 23:48 荣锋亮 阅读(1987) 评论(0) 推荐(0)

2018年2月27日

grpc 安装以及墙的解决方法

摘要: 1. 默认官方文档 go get -u google.golang.org/grpc 因墙的问题,大部分安装是无法完成的 2. 解决方法 a. grpc mkdir -p $GOAPTH/src/google.golang.org git clone https://github.com/grpc/ 阅读全文

posted @ 2018-02-27 20:31 荣锋亮 阅读(564) 评论(0) 推荐(0)

grpc xservice 使用

摘要: 1. 安装(此处比较简单) dep 包管理 配置环境变量 GOPATH/bin GO/bin protoc 下载并配置环境变量 2. xservice 安装 a. 预备(一些需要的依赖) mkdir -p $GOPATH/src/golang.org/x git clone https://gith 阅读全文

posted @ 2018-02-27 15:30 荣锋亮 阅读(226) 评论(0) 推荐(0)

2018年2月18日

modsecurity3.0 nginx 安装

摘要: 备注: 使用的是modsecurity 3.0 的版本,也是nginx 官方推荐使用的,同时使用的是nginx 的dynamic module 1. 环境准备 https://github.com/SpiderLabs/ModSecurity https://github.com/SpiderLab 阅读全文

posted @ 2018-02-18 18:55 荣锋亮 阅读(1154) 评论(0) 推荐(0)

2018年2月13日

scrapy docker 基本部署使用

摘要: 1. 简单项目 pip install scrapy scrapy startproject appdemo 2. 项目代码 a. 项目代码结构 ├── Dockerfile ├── README.md ├── appdemo │ ├── __init__.py │ ├── __pycache__ 阅读全文

posted @ 2018-02-13 22:28 荣锋亮 阅读(471) 评论(0) 推荐(0)

2018年2月11日

fabio 安装试用&&实际使用的几个问题

摘要: 备注: 因为fabio 依赖consul vault (不是强需),启动之前需要先安装consul, 本次为了简单consul 使用的是单机,使用的是dev 模式 1. conusl 安装&&启动 wget -O consul_1.0.1_linux_amd64.zip https://releas 阅读全文

posted @ 2018-02-11 21:53 荣锋亮 阅读(818) 评论(0) 推荐(0)

yugabyte cloud native db 基本试用

摘要: 备注: 测试环境使用docker进行安装试用 1. 安装 a. Download mkdir ~/yugabyte && cd ~/yugabyte wget https://downloads.yugabyte.com/yb-docker-ctl && chmod +x yb-docker-ctl 阅读全文

posted @ 2018-02-11 10:51 荣锋亮 阅读(2075) 评论(0) 推荐(1)

2018年2月2日

coredns 编译模式添加插件

摘要: 备注: coredns 默认已经安装了一些插件,比如大家用的多的kubernetes etcd ... 但是我们可以自己编译插件,构建我们自己的 coredns 版本,方便集成使用 1. 项目结构 ├── Corefile ├── coredns.go 2. 参考代码 a. main.go pack 阅读全文

posted @ 2018-02-02 22:45 荣锋亮 阅读(2364) 评论(0) 推荐(0)

2018年2月1日

gradle 项目构建以及发布maven 私服&& docker 私服构建发布

摘要: 1. 项目结构 2. 代码说明 2. 代码说明 a. Dockerfile docker 构建的 FROM openjdk:8-jre-alpine WORKDIR /appdemo/ COPY build/distributions/ratpackdemo.zip /appdemo RUN unz 阅读全文

posted @ 2018-02-01 10:11 荣锋亮 阅读(362) 评论(0) 推荐(0)

groovy gradle 构建配置

摘要: 参考配置 apply plugin: "idea" apply plugin: "groovy" apply plugin: "eclipse" apply plugin: "application" dependencies { compile localGroovy() } task sourc 阅读全文

posted @ 2018-02-01 09:57 荣锋亮 阅读(233) 评论(0) 推荐(0)

groovy && java 混编 gradle 配置

摘要: 参考配置: apply plugin: "application" apply plugin: "java" apply plugin: "groovy" jar { manifest { attributes "Main-Class":"com.dalongapp.Application" } } 阅读全文

posted @ 2018-02-01 09:55 荣锋亮 阅读(604) 评论(0) 推荐(0)

上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 132 下一页

导航