上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 122 下一页

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 荣锋亮 阅读(440) 评论(0) 推荐(0) 编辑

一张elixir生产环境部署的图

摘要: 阅读全文

posted @ 2018-04-10 15:37 荣锋亮 阅读(377) 评论(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 荣锋亮 阅读(453) 评论(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 荣锋亮 阅读(592) 评论(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 荣锋亮 阅读(520) 评论(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 荣锋亮 阅读(468) 评论(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 荣锋亮 阅读(4473) 评论(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 荣锋亮 阅读(303) 评论(0) 推荐(0) 编辑

2018年3月26日

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

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

posted @ 2018-03-26 14:41 荣锋亮 阅读(2676) 评论(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 荣锋亮 阅读(313) 评论(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 荣锋亮 阅读(1083) 评论(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 荣锋亮 阅读(898) 评论(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 荣锋亮 阅读(924) 评论(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 荣锋亮 阅读(774) 评论(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 荣锋亮 阅读(422) 评论(0) 推荐(0) 编辑

2018年3月12日

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

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

posted @ 2018-03-12 08:57 荣锋亮 阅读(367) 评论(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 荣锋亮 阅读(1099) 评论(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 荣锋亮 阅读(720) 评论(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 荣锋亮 阅读(694) 评论(0) 推荐(0) 编辑

2018年3月1日

goreman 多进程管理工具

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

posted @ 2018-03-01 22:36 荣锋亮 阅读(606) 评论(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 荣锋亮 阅读(1922) 评论(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 荣锋亮 阅读(542) 评论(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 荣锋亮 阅读(212) 评论(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 荣锋亮 阅读(1105) 评论(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 荣锋亮 阅读(456) 评论(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 荣锋亮 阅读(794) 评论(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 荣锋亮 阅读(2055) 评论(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 荣锋亮 阅读(2322) 评论(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 荣锋亮 阅读(353) 评论(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 荣锋亮 阅读(222) 评论(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 荣锋亮 阅读(587) 评论(0) 推荐(0) 编辑

gradle 构建包含源码配置

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

posted @ 2018-02-01 09:51 荣锋亮 阅读(287) 评论(0) 推荐(0) 编辑

conduit 安装试用

摘要: 备注: 测试安装环境使用docker mac 版本(目前版本已经支持kubernetes了) 1. 基本安装 curl https://run.conduit.io/install | bash 配置环境变量 Copy /Users/dalong/.conduit/bin/conduit into 阅读全文

posted @ 2018-02-01 09:47 荣锋亮 阅读(932) 评论(0) 推荐(0) 编辑

2018年1月28日

gradle multiproject && docker build

摘要: 备注: 环境准备 : docker , gradle(使用wrapper,或者全局安装),测试环境使用mac 1. gradle 安装 brew install gradle 2. docker // 安装 yum install -y yum-utils yum-config-manager -- 阅读全文

posted @ 2018-01-28 12:00 荣锋亮 阅读(250) 评论(0) 推荐(0) 编辑

2018年1月19日

sailsjs 不用写代码就能生成rest api 代码

摘要: 1. 脚手架安装 npm install sails -g 2. 生成基本项目 a. 项目 sails new appdemo b. 创建api sails new api demoapi appdemo appdemo appdemo appdemo 3. 启动项目 cd appdemo sail 阅读全文

posted @ 2018-01-19 18:53 荣锋亮 阅读(361) 评论(0) 推荐(0) 编辑

2018年1月11日

sentry docker-compsoe 安装以及简单使用

摘要: 1. 准备环境 docker docker-compose 2. 安装 a. docker-compose git clone git clone https://github.com/getsentry/onpremise.git b. create key docker-compose run 阅读全文

posted @ 2018-01-11 23:08 荣锋亮 阅读(1092) 评论(0) 推荐(0) 编辑

2018年1月8日

使用 commander && inquirer 构建专业的node cli

摘要: 备注: 比较简单就是使用nodejs 的两个类库帮助我们进行开发而已,具体的使用参考类库文档 1. 项目初始化 a. 安装依赖 yarn init -y yarn add commander inquirer ├── README.md ├── bin │ └── index.js ├── pack 阅读全文

posted @ 2018-01-08 21:34 荣锋亮 阅读(1860) 评论(0) 推荐(0) 编辑

2018年1月6日

让nodejs 支持 es6 import

摘要: 备注: 尽管nodejs 新版本已经支持es6 的好多特性了,但是还是有部分不支持,为了使用,实际上我们有一个 比较强大工具 bable,下面介绍几个比较简单的用法。 1. bable-cli 中的 babel-node a. 初始化项目 yarn init -y b. 安装依赖 babel-cli 阅读全文

posted @ 2018-01-06 12:26 荣锋亮 阅读(1357) 评论(0) 推荐(0) 编辑

2018年1月4日

riotjs 简单使用&&browserify 构建

摘要: 项目地址: http://riotjs.com/ 备注: 为了简单使用了 browserify 进行构建 1. 项目结构 ├── app.css ├── gulpfile.js ├── index.html ├── package.json ├── README.md ├── sample.tag 阅读全文

posted @ 2018-01-04 14:27 荣锋亮 阅读(379) 评论(0) 推荐(0) 编辑

jspm 安装试用

摘要: 1. 安装 yarn global add jspm or npm install -g jspm 2. 创建项目使用 mkdir appdmeo jspm init 3. 安装依赖 jspm install npm:lodash-node jspm install github:component 阅读全文

posted @ 2018-01-04 13:53 荣锋亮 阅读(1122) 评论(0) 推荐(0) 编辑

上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 122 下一页

导航