随笔分类 -  服务器

安装 Ruby, Rails 运行环境
摘要:步骤1 - 安装 RVM RVM 是干什么的这里就不解释了,后面你将会慢慢搞明白。 $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 $ curl -sSL http 阅读全文

posted @ 2017-03-25 14:08 荣锋亮 阅读(421) 评论(0) 推荐(0) 编辑

caddy server 几个常用插件
摘要:1.log日志 log /var/www/log/example.log 2.目录访问 browse 3.gzip压缩 gzip 4.自主ssl证书 tls /path/ssl/example.com.crt /path/ssl/example.com.key 5.git拉取功能(3600秒为间隔时 阅读全文

posted @ 2017-03-21 09:12 荣锋亮 阅读(2350) 评论(0) 推荐(0) 编辑

caddy server && caddyfile
摘要:This page describes how to configure Caddy using the Caddyfile. Introduction The term "Caddyfile" describes a text file that changes how Caddy works. 阅读全文

posted @ 2017-03-20 19:55 荣锋亮 阅读(2306) 评论(0) 推荐(0) 编辑

caddy server 了解
摘要:Caddy 是一个Go写的服务器软件,官方的宣传语“The HTTP/2 web server with automatic HTTPS”以及“Serve The Web Like It's 2016”简明表达了这个软件的优点和趋势,它拥有基本的apache或者nginx有的web server模块 阅读全文

posted @ 2017-03-19 16:17 荣锋亮 阅读(538) 评论(0) 推荐(0) 编辑

redis 连接池的一些问题
摘要:问题: Could not get a resource from the pool 将配置修改为如下: JedisPoolConfig config =newJedisPoolConfig(); config.setMaxTotal(200); config.setMaxIdle(50); con 阅读全文

posted @ 2017-03-16 14:29 荣锋亮 阅读(587) 评论(0) 推荐(0) 编辑

Docker-Compose API too old for Windows
摘要:I was working on some code with a Docker Windows container today and ran into this error message: ERROR: client version 1.22 is too old. Minimum suppo 阅读全文

posted @ 2017-03-10 19:51 荣锋亮 阅读(1236) 评论(0) 推荐(0) 编辑

docker windows 2016 安装测试
摘要:1. 安装方式 powershell Install-Module-NameDockerMsftProvider-RepositoryPSGallery-Force Install-Package-Name docker -ProviderNameDockerMsftProvider Restart 阅读全文

posted @ 2017-03-09 23:07 荣锋亮 阅读(891) 评论(0) 推荐(0) 编辑

CentOS 中安装NFS
摘要:NFS(network file system)网络文件系统,类似Windows中的文件夹共享,如下有三台机器A, B, C,它们需要访问同一个目录,目录中都是图片,传统的做法是把这些图片分别放到A, B, C。但是使用NFS只需要放到A上,然后A共享给B和C即可。访问的时候,B和C是 通过网络的方 阅读全文

posted @ 2017-02-26 11:32 荣锋亮 阅读(371) 评论(0) 推荐(0) 编辑

nginx 启用http2 https 无法访问的问题
摘要:原因: 1. openssl 版本过低 解决方法:进行升级 yum update openssl 2.ssl_ciphers 配置有问题 解决方法:修改为 ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:AES256+EDH'; 3. 本身 阅读全文

posted @ 2017-01-24 22:07 荣锋亮 阅读(2847) 评论(0) 推荐(0) 编辑

SpringCloud Sleuth 使用
摘要:1. 介绍 Spring-Cloud-Sleuth是Spring Cloud的组成部分之一,为SpringCloud应用实现了一种分布式追踪解决方案,其兼容了Zipkin, HTrace和log-based追踪 相关说明: zipkin Span:基本工作单元,例如,在一个新建的span中发送一个R 阅读全文

posted @ 2016-12-25 10:32 荣锋亮 阅读(10417) 评论(0) 推荐(0) 编辑

lvs的dr模式分析(二)
摘要:#vim /etc/init.d/lvsdrrip #!/bin/bash #DR server VIP=192.168.46.200 case "$1" in start) echo "start LVS of DR" /sbin/ifconfig lo:0 $VIP broadcast $VIP 阅读全文

posted @ 2016-12-16 08:59 荣锋亮 阅读(770) 评论(0) 推荐(0) 编辑

k8s dns 服务安装配置说明
摘要:1. 提前条件 安装k8s 集群 2. dns 安装配置 安装方式: 使用controller service controller 脚本: 基于官方改动 service 创建namespace 3. node 进行 dns 配置 在启动脚本添加: 4. 重启node 5. 测试pod 6. 测试 阅读全文

posted @ 2016-11-17 09:40 荣锋亮 阅读(2093) 评论(0) 推荐(0) 编辑

maven docker 操作
摘要:1. 使用dokerfile 进行构建 创建dockerfile 2. maven 插件 3. 使用 mvn docker:build 。。。。。。 私有镜像使用: 备注:这个是简单是使用,实际环境可能需要解决jenkins 等类似工具进行任务的处理,对于发布使用k8s 阅读全文

posted @ 2016-11-10 19:57 荣锋亮 阅读(3383) 评论(0) 推荐(0) 编辑

分布式id 实现方式
摘要:1. uuid 2. twitter的Snowflake 3. MongoDB ObjectID 4. Ticket Server 5. Instagram采用的方式(UUID方式) 阅读全文

posted @ 2016-11-09 16:28 荣锋亮 阅读(287) 评论(0) 推荐(0) 编辑

强弱主机模式
摘要:网络主机的一种越来越常见的配置是通过多个网络接口实现多宿主化。多宿主主机可同时连接多个网络,如 Intranet 或 Internet,从而提供增强的连接性。但是,由于它们既可连接到 Intranet,又可连接到 Internet,因此在多宿主主机上运行的服务容易受到攻击。为了帮助您阻止攻击并了解如 阅读全文

posted @ 2016-08-17 12:25 荣锋亮 阅读(1881) 评论(0) 推荐(0) 编辑

swagger-editor 快速REST-API 测试文档编写
摘要:1. 在线使用 http://editor.swagger.io/#/ 2. 离线工具 https://github.com/swagger-api/swagger-editor 3. 跨域访问问题: 服务添加一下 http 响应头(不同服务器配置可能不同,可以搜索对应的资料): 4. docker 阅读全文

posted @ 2016-06-12 09:45 荣锋亮 阅读(1252) 评论(5) 推荐(0) 编辑

nginx windows 版 创建windows 服务
摘要:使用的工具 Windows Service Wrapper 使用的指令 nginx -s top Windows Service Wrapper 工具的使用: 1. 定义xml 文件: 说明如下: 2. 安装windows 服务 nginxservice.exe install 备注 Windows 阅读全文

posted @ 2016-03-21 10:19 荣锋亮 阅读(357) 评论(0) 推荐(0) 编辑

RabbitMQ 集群与高可用配置
摘要:集群概述通过 Erlang 的分布式特性(通过 magic cookie 认证节点)进行 RabbitMQ 集群,各 RabbitMQ 服务为对等节点,即每个节点都提供服务给客户端连接,进行消息发送与接收。这些节点通过RabbitMQ HA 队列(镜像队列)进行消息队列结构复制。本方案中搭建 3 个... 阅读全文

posted @ 2016-01-22 11:01 荣锋亮 阅读(279) 评论(0) 推荐(0) 编辑

messagepcak 资料
摘要:1,今天在hacknews上看到很多人对messagepack的争论。首先了解什么是MessagePack:MessagePack is a binary-based efficient object serialization library. It enables to exchange str... 阅读全文

posted @ 2015-10-26 12:41 荣锋亮 阅读(357) 评论(0) 推荐(0) 编辑

BigPipe 了解
摘要:BigPipe是一个重新设计的基础动态网页服务体系。大体思路是,分解网页成叫做Pagelets的小块,然后通过Web服务器和浏览器建立管道并管理他们在不同阶段的运行。这是类似于大多数现代微处理器的流水线执行过程:多重指令管线通过不同的处理器执行单元,以达到性能的最佳。虽然BigPipe是对现有的服务 阅读全文

posted @ 2015-04-12 11:51 荣锋亮 阅读(248) 评论(0) 推荐(0) 编辑

导航