自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(91)
  • 资源 (10)
  • 收藏
  • 关注

原创 vmware 虚拟机三种网络连接类型的区别,CentOS 设置静态 ip

博客新地址:https://blog.iaiot.com/vmware-nat.html1.虚拟机三种网络连接类型:桥接模式:虚拟机加入到宿主机所在局域网,可以和宿主机所在局域网内其他机器互相访问。就像是局域网中的一台独立的主机。nat 模式:虚拟机和宿主机组成局域网,只能宿主机和虚拟机之间互相访问。虚拟机在对外访问时,使用的则是宿主机的IP地址,通过宿主机所在的网络来访问公网,这样从...

2020-01-09 09:54:32 384 2

原创 docker run 和 docker-compose 配置挂载 Volume 并运行 nginx

https://blog.iaiot.com/docker-nginx.html1.先在宿主机创建挂载目录:mkdir -p /data/nginx/{conf,conf.d,html,logs}2.然后把文件 nginx.conf 文件放到 /data/nginx/conf/user nginx;worker_processes 1;error_log /var/log...

2019-08-30 07:04:12 5804 2

原创 redis 消息的订阅发布 Java 实现 消息生产者 消息消费者

新:https://blog.iaiot.com/redis-publish-subscribe.html1.发布消息(消息生产者 MessageProducer):public static final String CHANNEL_KEY = "channel:1";jedis.publish(CHANNEL_KEY, message);2.订阅消息(消息消费者):/**...

2019-03-22 17:28:33 631

原创 webSocket 笔记 问题汇总 400 302 spring-websocket resin-websocket nginx-websocket

新:https://blog.iaiot.com/websocket-400-302-spring-resin-nginx.html1.webSocket 400:location /ws/createwebsocket { proxy_redirect off; proxy_set_header Host $host; ...

2019-03-22 17:15:58 763

转载 Elasticsearch 笔记 倒排索引 keyword 和 text

https://blog.iaiot.com/elasticsearch-notes.html1.倒排索引(Inverted Index):倒排索引是实现“单词-文档矩阵”的一种具体存储形式,通过倒排索引,可以根据单词快速获取包含这个单词的文档列表。倒排索引主要由两个部分组成:“单词词典”和“倒排文件”。原文:http://www.cnblogs.com/zlslch/p/6440114....

2019-03-19 09:42:54 1092

转载 x-pack license 过期

https://blog.iaiot.com/xpack-password.html原文地址:http://www.lanrenkaifa.com/post/61原文2地址:http://blog.51yip.com/server/1906.htmlkibana x-pack安装完了后,license有效期只有1个月,并且每年需要,要重新续一次。1,注册 https://reg...

2019-03-18 11:47:35 1231

原创 logstash 接收 syslog 消息调试

原文:https://blog.iaiot.com/logstash-syslog.htmllinuxlogger、rsyslog:logger 生成 message 日志:logger -t aaaaaaaaa mmmmmmmmmmm查看生成的日志:tail -f /var/log/messagesrsyslog 配置:/etc/rsyslog.conf配置 rsyslog...

2019-02-22 16:03:50 2690

原创 java spring 定时任务

https://blog.iaiot.com/spring-task.html<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www...

2019-02-18 11:07:34 321

原创 resin、tomcat 中添加 host 配置后 spring 定时任务执行多次

https://blog.iaiot.com/resin-tomcat-spring-task.htmltomcat:配置文件 server.xml 中 appBase="webapps" 改为appBase=""resin:配置文件resin.xml 中 <web-app-deploy path="webapps" 改为<web-app-deploy path=""...

2019-02-15 17:16:38 288

原创 Ubuntu 笔记

https://blog.iaiot.com/ubuntu-notes.html1.设置root 密码:sudo passwd root2.开启 root 远程登录:/etc/ssh/sshd_config 中PermitRootLogin 改为 yes,StrictModes 改为 yes然后:sudo service ssh restart3.Ubuntu16 配置静态 i...

2019-01-12 17:07:28 226

原创 Kubernetes 笔记

https://blog.iaiot.com/Kubernetes-notes.html1.对于一个容器来说,它的 IP 地址等信息不是固定的,那么 Web 应用又怎么找到数据库容器的 Pod 呢?所以,Kubernetes 项目的做法是给 Pod 绑定一个 Service 服务,而 Service 服务声明的 IP 地址等信息是“终生不变”的。这个Service 服务的主要作用,就是作为 P...

2019-01-12 15:59:33 285

原创 openresty(Nginx+lua-nginx-module)中各个阶段执行的指令解释及其执行顺序

https://blog.iaiot.com/openresty-lua-nginx-module.html上图来源:https://github.com/openresty/lua-nginx-module#directivesinit_by_lua*:初始化 nginx 和预加载 lua(nginx 启动和 reload 时执行);init_worker_by_lua*:每个工作进...

2019-01-12 15:36:34 3341 6

原创 解决 fastJson 出现重复引用的问题 "$ref":"$[0].layout[0]....."

https://blog.iaiot.com/fastJson-$ref.htmlJSONObject.put("k", jsonv);→JSONObject.put("k", jsonv.clone());或String returnJson = JSON.toJSONString(map, SerializerFeature.DisableCircularRefer...

2019-01-09 09:53:25 322

原创 docker volume 挂载文件后,容器内更新此文件,就报 Device or resource busy 不能保存文件

https://blog.iaiot.com/docker-volume-device-or-resource-busy.html# Error moving temp DB file temp-1.rdb on the final destination dump.rdb (in server root dir /usr/local/redis/data): Device or resour...

2019-01-04 17:52:08 2044

原创 Jmeter 发送 webSocket 请求

新地址:https://blog.iaiot.com/Jmeter-webSocket.html下载 Jmeter 插件管理插件:http://search.maven.org/remotecontent?filepath=kg/apc/jmeter-plugins-manager/1.3/jmeter-plugins-manager-1.3.jar放到 JMeter 安装目录lib/e...

2018-12-25 20:56:51 978

转载 pyspark spark-shell无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries (on a random free port)

新地址:https://blog.iaiot.com/pyspark-spark-shell-sparkDriver-failed.html原文:https://stackoverflow.com/questions/49654050/could-not-bind-on-a-random-free-port-error-while-trying-to-connect-to-spark-mast...

2018-12-23 22:32:25 3919

转载 Mac Kubernetes 报 The connection to the server localhost:6443 was refused

原文:https://github.com/kubernetes/kubernetes/issues/23726 Deleted the old config from ~/.kube and then restarted docker (for macos) and it rebuilt the config folder.All good now when I do 'kubect...

2018-12-22 22:11:22 6760

原创 MySQL 查询结果返回数组或 JSON XML 等自定义格式 SELECT CONCAT GROUP_CONCAT

新地址:https://blog.iaiot.com/SELECT-CONCAT-GROUP_CONCAT.htmlSELECT sub_name, CONCAT('[', GROUP_CONCAT( CONCAT('{"name":"', sub_name, '",'), CONCAT('"id":"', id, '"}')), ']') AS childFRO...

2018-12-22 17:52:16 2662 1

原创 windows 提示缺少各种 dll 文件

新地址:https://blog.iaiot.com/windows-miss-dll.html下载安装 MSVBCRT_AIO_2018.05.13_X86 X64.exe(微软常用运行库合集)即可https://download.csdn.net/download/iaiot/10858125

2018-12-18 12:50:46 8859 1

原创 docker-compose 配置自定义网络和静态 ip 示例

新地址:https://blog.iaiot.com/docker-compose-custom-network.htmlversion: '3.1'services: web: image: haojiliang/nginx-php-fpm-alpine:v1.15.7 container_name: "web_container" ports: ...

2018-12-13 23:29:18 8366 4

原创 mybaits int 类型的字段不能 <if test="sub_name != null and '' != field_name"> Java 移除 JSONObject 空值字段

新地址:https://blog.iaiot.com/mybaits-int.htmlmybaits int 类型的字段不能 <if test="sub_name != null and '' != field_name">只能 <if test="sub_name != null">如果 <if '' != field_name"> ,值为 0 时...

2018-12-13 19:15:54 365

原创 nginx-php 的 docker 镜像 nginx1.15.7 php7.0.33 php-fpm alpine3.7,测试 wordpress 完美运行

新地址:https://blog.iaiot.com/nginx-php-fpm-alpine.html获取镜像:docker pull haojiliang/nginx-php-fpm-alpine:v1.15.7nginx 1.15.7php 7.0.33php-fpmalpine 3.7镜像大小:83.9MB文件路径及端口等配置都和 nginx 官方镜像一样,在 php...

2018-12-05 08:10:19 1487

原创 filebeat 作为服务启动,而非命令行启动时,传输一批数据后便停止工作 CRIT Unable to publish events to console

新博客地址:https://blog.iaiot.com/filebeat-error1.htmlfilebeat 作为服务启动,而非命令行启动时,传输一批数据后便停止工作,日志中输出如下信息:2018-12-03T17:07:29+08:00 CRIT Unable to publish events to console: write /dev/stdout: The handle i...

2018-12-03 17:37:43 3737

原创 Windows PowerShell 执行策略 ExecutionPolicy

新博客地址:https://blog.iaiot.com/Windows-PowerShell-ExecutionPolicy.html获取当前执行策略:Get-ExecutionPolicy获取影响当前会话的所有执行策略,并按优先顺序显示:Get-ExecutionPolicy -List获取当前用户作用域的执行策略:Get-ExecutionPolicy -Scope Curren...

2018-12-03 15:53:49 5680

原创 docker-compose 迁移部署 wordpress 站点、创建自定义网络、设置容器为静态 ip

新博客地址:https://blog.iaiot.com/docker-compose-move-wordpress.html附:nginx1.15.7 + php7.0.33 + php-fpm + alpine3.7 镜像已完成:https://blog.csdn.net/iaiot/article/details/8481419因为一个 wordpress 容器里同时有移动站和 pc...

2018-12-02 20:46:12 2845

翻译 docker daemon(dockerd) 配置文件 daemon.json

新博客地址:https://blog.iaiot.com/docker-daemon.html原文:https://docs.docker.com/engine/reference/commandline/dockerd/Usage: dockerd COMMANDA self-sufficient runtime for containers.Options: --...

2018-12-01 23:26:55 3435

转载 修改docker -v 挂载的文件遇到的问题。inode 软链接 硬链接 docker volume

新博客地址:https://blog.iaiot.com/docker-v-inode.html原文地址:https://lrita.github.io/2017/08/18/mount-volume-to-docker-and-modify-from-host/在启动docker容器时,为了保证一些基础配置与宿主机保持同步,通常需要将这些配置文件挂载进docker容器,例如/etc/re...

2018-11-24 10:29:40 5226

原创 'ng' 不是内部或外部命令,也不是可运行的程序或批处理文件 或 bash: ng: command not found

新博客地址:https://blog.iaiot.com/bash-ng-command-not-found.html重新以管理员权限运行npm install -g @angular/cli如果报错,就先删掉 C:\Users\adminstrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules 目录,然后再运行...

2018-11-22 14:49:13 19834 4

原创 npm install -g @angular/cli 报 Missing write access to... -4058 ENOENT: no such file or directory

新博客地址:https://blog.iaiot.com/npm-angular-4058.html删掉 C:\Users\adminstrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules 目录重新运行npm install -g @angular/cli 就可以了...

2018-11-22 14:43:36 830

原创 webstorm 下 angular 英雄指南 报 Tslint Error: Could not find custom rule directory: node_modules/codelyzer

新博客地址:https://blog.iaiot.com/node_modules-codelyzer.htmlpackage.json 中devDependencies 下添加"codelyzer": "~4.5.0"然后 npm install 即可

2018-11-22 14:11:36 1701

原创 FastDFS 常用命令

新博客地址:https://blog.iaiot.com/FastDFS-cmd.html启动 Tracker:service fdfs_trackerd start 或者/etc/init.d/fdfs_trackerd start停止 Tracker:service fdfs_trackerd stop启动 Storage:service fdfs_storaged start...

2018-11-20 22:27:17 788

原创 elasticsearch 笔记 elasticsearch-head

新博客地址:https://blog.iaiot.com/elasticsearch-head.html1.elasticsearch5.0 以上版本安装 elasticsearch-heades5.1 中,elasticsearch-head不能放在 elasticsearch 的 plugins、modules 目录下不能使用 elasticsearch-plugin instal...

2018-11-20 22:21:17 246

原创 Nginx 笔记

新博客地址:https://blog.iaiot.com/nginx-notes.html安装:http://blog.csdn.net/gaojinshan/article/details/37603157其中安装时如果需要ssl:./configure --with-http_ssl_module卸载:直接rm -rf find出来的nginx目录即可启动:/usr/local/...

2018-11-20 21:34:01 141

原创 CentOS 防火墙、端口、端口转发、selinux、Windows 端口

新博客地址:https://blog.iaiot.com/centos-notes.html1.防火墙基础操作1) 重启后生效开启: chkconfig iptables on关闭: chkconfig iptables off2) 即时生效,重启后失效开启: service iptables start关闭: service iptables stop参考:http...

2018-11-20 21:28:30 646

原创 CentOS 和 Windows 服务相关操作,配置开机自动启动等,Windows 脚本获取路径语法

新博客地址:https://blog.iaiot.com/linux-widows-service.html# CentOS 服务(https://www.jianshu.com/p/7bd61fc1de4b):chkconfig --add xxx // 把服务添加到 chkconfig 列表chkconfig --del xxx // 把服务从 ...

2018-11-20 20:49:59 252

原创 Redis 笔记

博客新地址:https://blog.iaiot.com/redis-notes.html1.配置密码:在 redis.conf 中加入 requirepass yDvQ3t$hwoJvWree配置密码后登录 redis:redis-cli -a 'yDvQ3t$hwoJvWree'或: redis-cli 后 >> auth yDvQ3t$h...

2018-11-18 22:28:58 131

原创 Mac 上使用 Shuttle + sshpass 替代 xshell

终于在 Mac 上找到相对好用又简洁的 xhsell 替代工具:Shuttle + sshpass1.安装sshpass:下载并解压 http://sourceforge.net/projects/sshpass/$ ./configure$ sudo make install使用:$ sshpass -p '123456' ssh [email protected]注...

2018-11-18 11:07:02 710

原创 Nginx Apache(httpd) Tomcat Resin IIS Jboss Wildfly Weblogic 等各种应用容器默认访问日志的格式及样例

新博客地址:https://blog.iaiot.com/log-example.html# Nginx格式 = $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"...

2018-11-14 10:55:07 319

原创 Centos7 安装 docker 私有仓库 Harbor

新博客地址:https://blog.iaiot.com/Harbor.html# 安装 Harbor 之前需要先安装 python2.7+、Openssl、Docker、Docker Compose;# 安装 opensslyum install opensslyum install openssl-devel# 安装 dockeryum install -y yum-uti...

2018-11-08 14:43:07 369

原创 Logstash logstash.conf 配置示例

新博客地址:https://blog.iaiot.com/logstash-conf.html# Sample Logstash configuration for creating a simple# File -> Logstash -> Elasticsearch pipeline.input { file { path => "/data/ngin...

2018-11-08 11:30:55 10434

jeecgframework.zip

Cannot resolve org.jeecgframework.boot:codegenerate:1.0.7; missing artifact org.jeecgframework * jar; jeecg maven 经常访问不了,jeecg boot 中的 jar 不能下载,可以下载这个放到本地 maven 库即可; 包含:codegenerate-1.0.7.jar、online-form-1.2.0.jar、autopoi-web-1.0.4.jar、autopoi-1.0.4.jar

2019-11-17

HUAWEI-MIB-OID-S5700-V200R013C00.yaml

logstash 接收 华为设备 snmptrap 消息并解析,HUAWEI 私有 OID MIB 信息整理,基于 S5700-V200R013C00 整理,差不多也能匹配其他华为设备的大部分 OID

2019-06-28

Elasticsearch 基础语法 增删改查聚合 postman

Elasticsearch 基础语法 增删改查聚合 配置结构化数据 postman,下载后直接导入 postman 即可

2019-03-15

富士施乐 M158B 打印机驱动,DocuPrint M158 B 打印机驱动

富士施乐M158B打印机驱动程序,DocuPrint M158 B 打印机驱动

2019-02-01

微软常用运行库合集 MSVBCRT_AIO_2018.05.13_X86 X64.exe

windows 提示缺少 dll 文件。微软常用运行库合集 MSVBCRT_AIO_2018.05.13_X86 X64.exe

2018-12-18

Mac远程桌面 Microsoft Remote Desktop

Mac远程桌面 Microsoft Remote Desktop 10.1.8版本,下载后解压安装使用。安装后在软件内更新到最新版本。

2018-10-06

安卓终端模拟器

安卓终端模拟器,下载后解压安装。附 adb 无线连接安卓设备调试程序方法 https://blog.csdn.net/iaiot/article/details/81813981

2018-08-18

在APP内打开某个网页

在APP内打开某个网页,只需要一个webview就可以了,还要加上访问网络的权限

2016-01-01

android后台运行的service服务的创建

安卓的service的创建和调用其实和activity基本上一个样,很简单,只是继承Service类,在里面写一个onStartCommand方法,然后在该方法下写自己的代码就可以了。

2016-01-01

安卓程序启动时的初始化

安卓程序启动时的初始化例子,非常简单,这里有说明http://blog.csdn.net/iaiot/article/details/50444726

2016-01-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除