/images/avatar.png

Schaepher's Blog

filebeats

CentOS 5:https://shazi.info/centos-5-i386-x86_64-%E7%94%A8-rpmbuild-%E5%AE%89%E8%A3%9D-filebeat-6-x/

elasticsearch

high disk watermark 问题

Logstash 报: index read-only / allow delete (api)

https://www.elastic.co/guide/en/elasticsearch/reference/2.1/disk-allocator.html

PUT _settings { “index”: { “blocks”: { “read_only_allow_delete”: “false” } } }

PUT _cluster/settings { “persistent”: { “cluster.routing.allocation.disk.threshold_enabled”: false } }

the type event field won’t be used to determine the document _type

https://www.elastic.co/guide/en/elasticsearch/reference/6.2/removal-of-types.html

https://discuss.elastic.co/t/detected-a-6-x-and-above-cluster-the-type-event-field-wont-be-used-to-determine-the-document-type-es-version-6/183471

OpenWRT NAS

  1. 安装
    1. 安装 smb 服务
      opkg install samba36-server
    2. 安装 LuCI 配置界面 opkg install luci-i18n-samba-zh-cn
  1. 配置服务器

    1. 创建账号并设置密码
    2. 创建组
    3. 给 Samba 添加账号密码
    4. 启动 Samba 服务 /etc/init.d/samba start
    5. 设置开启自启动 /etc/init.d/samba enable
  2. 打开路由器 WEB 界面。进入【服务】->【网络共享】。 添加一个共享目录。
    名字随便填
    目录选择路由器里的目录。这个目录要给刚才创建的账号读写权限。 允许的用户填刚才创建的用户
    权限掩码都填 777
    保存

docker-swarm

Docker 网络

查看当前主机 Docker Daemon 已创建的网络: docker network ls

Docker 网络驱动(driver)主要由五种: bridge (默认)、 host 、 overlay 、 macvlan 、 none 。

  1. bridge
    桥接网络。加入同一个 bridge 的容器可以互相通信。用于同一个 Docker Daemon 内容器通信。