ciweigg2 / ciweigg2.github.io Goto Github PK
View Code? Open in Web Editor NEWblog
blog
https://ciweigg2.github.io/2018/10/20/dubbo-intellij-idea-cha-jian/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2018/12/22/an-zhuang-fen-ci-elasticsearch-analysis-hanlp/
安装elasticsearch6.5.1docker run -p 9200:9200 -p 9300:9300 -e "http.host=0.0.0.0" -e "http.cors.enabled=true" -e "http.cor
https://ciweigg2.github.io/2018/11/10/centos-an-zhuang-elasticsearch6.4.2/
CentOS7.5 搭建ElasticSearch6.4.2
[root@test home]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
1.创建用户ad
https://ciweigg2.github.io/2019/01/17/springboot-dubbo-ji-cheng-zipkin/
介绍随着业务的发展,应用的规模不断的扩大,传统的应用架构无法满足诉求,服务化架构改造势在必行,以 Dubbo 为代表的分布式服务框架成为了服务化改造架构中的基石。随着微服务理念逐渐被大众接受,应用进一步向更细粒度拆分,并且,不同的应用由不同
https://ciweigg2.github.io/2019/01/20/sentinel-shi-zhan-ru-he-dui-re-dian-can-shu-xian-liu/
Sentinel实战:如何对热点参数限流我们已经对单机限流和集群限流有过一定了解了,但是他们都是针对一些固定的资源进行流控的,在实际的应用场景中我们可能会遇到各种复杂的情况,不可能通过固定的资源来进行限流。
比如我们想要对一段时间内频繁访问
搭建springboot-dubbo项目集成nacos注册中心阿里小马哥demo地址:https://github.com/apache/incubator-dubbo-spring-boot-project
项目结构
最外层POM添加依
介绍
这个拼音分析插件用于在汉字和拼音之间进行转换
比如 数据库有一条记录是”卡莎”
使用 ks kas 卡 等接近的单词 都能搜索出来
https://ciweigg2.github.io/2018/10/07/springboot-ji-cheng-dubbo/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2018/08/11/springboot-jie-he-nepxion-eventbus-yi-bu-cao-zuo/
Nepxion EventBus是一款基于Google Guava通用事件派发机制的事件总线组件,它采用Spring framework AOP机制,提供注解调用方式,支持异步和同步两种方式
简介
实现基于@EventBus注解开启Even
https://ciweigg2.github.io/2019/05/11/hexo-bo-ke-bei-fen-zhuan-yi-ya/
博客备份安装服务器到期了 可能要换服务器 需要备份博客 这里就是简单的操作步骤 很方便的呀
老服务器备份
备份cd /root/blog/
tar -zcvf theme.tar.gz *
下载备份sz theme.tar.gz
https://ciweigg2.github.io/2019/02/22/jenkins-bu-shu-springboot-xiang-mu/
docker启动的jenkins挂载的目录是:docker run -d –name myjenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_node:/var/jenkins_home
https://ciweigg2.github.io/2018/12/22/docker-an-zhuang-elasticsearch6.5.3/
docker安装elasticsearch6.5.3并设置跨域和外网访问
docker run -p 9200:9200 -p 9300:9300 -e "http.host=0.0.0.0" -e "http.cors.enabled=t
https://ciweigg2.github.io/2018/12/22/mysql-da-biao-you-hua-fang-an/
当MySQL单表记录数过大时,增删改查性能都会急剧下降,可以参考以下步骤来优化:单表优化除非单表数据未来会一直不断上涨,否则不要一开始就考虑拆分,拆分会带来逻辑、部署、运维的各种复杂度,一般以整型值为主的表在千万级以下,字符串为主的表在五百
https://ciweigg2.github.io/2018/09/16/docker-swarm-jin-jie-nfs-gong-xiang-shu-ju-juan/
启动 NFS 服务(CentOS 7)首先,安装 rpcbind 和 nfs-utils
yum install -y rpcbind nfs-utils
然后,编辑 /etc/exports 配置 NFS 共享目录,示例:
[root@
https://ciweigg2.github.io/2019/01/13/springboot-shi-yong-nacos-pei-zhi-zhong-xin/
添加maven依赖 <dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>nacos-
https://ciweigg2.github.io/2019/01/26/alibaba-kai-yuan-de-dubbo-fen-bu-shi-shi-wu/
分布式事务FESCAR管理分布式事务的典型生命周期:
TM要求TC开始新的全球交易。TC生成表示全局事务的XID。
XID通过微服务的调用链传播。
RM将本地事务注册为XID到TC的相应全局事务的分支。
TM要求TC提交或回滚XID的相应
https://ciweigg2.github.io/2019/05/03/ipfs-fen-bu-shi-wen-jian-cun-chu-xi-tong/
安装ipfsdocker run -d --name ipfs_host -e IPFS_PROFILE=server -v /root/ipfs/export:/export -v /root/ipfs/data:/data/ipfs -
https://ciweigg2.github.io/2019/01/26/mybatis-zi-dong-sheng-cheng-cha-jian/
better-mybatis-generator idea plugin插件功能:在idea的database工具中使用,选择表(一或n,建议n小于10),生成mybatis相关的代码,(包括:dao、example、domain、xml)
https://ciweigg2.github.io/2018/09/15/shi-yong-kubespray-bu-shu-k8s-ji-qun/
一、准备工作1.规划集群
集群节点规划
10.254.4.1
10.254.4.2
10.254.4.3
关闭swap
swapoff -a
节点互信
本文以第一个节点 10.254.4.1作为操作节点,所以需要
https://ciweigg2.github.io/2018/10/20/mybatiscodehelperpro-shi-yong/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
Trampoline管理springboot应用
介绍
http://www.spring4all.com/article/3318
Trampoline可以管理springcloud springboot-dubbo微服务和单个spri
https://ciweigg2.github.io/2019/05/04/graylog-fen-bu-shi-ri-zhi/
安装
Graylog nodes should have a focus on CPU power. These also serve the user interface to the browser.
Elasticsearch no
https://ciweigg2.github.io/2018/11/02/jrebel-for-intellij-re-bu-shu-cha-jian/
一款热部署插件,只要不是修改了项目的配置文件,用它都可以实现热部署。收费的,破解比较麻烦。不过功能确实很强大。算是开发必备神器了。热部署快捷键是:
windows:control+F9/control+ctrl+F9
macos:com
https://ciweigg2.github.io/2018/09/23/intellij-idea-chang-yong-kuai-jie-jian-lie-biao/
IntelliJ Idea 常用快捷键列表
Ctrl+Shift + Enter,语句完成
“!”,否定完成,输入表达式时按 “!”键
Ctrl+E,最近的文件
Ctrl+Shift+E,最近更改的文件
Shift+Click,可以关闭文
https://ciweigg2.github.io/2019/06/01/kubernetes-1.14.2-ji-qun-an-zhuang-he-dashbaord-mian-ban/
初始化环境systemctl stop firewalld && systemctl disable firewalld && setenforce 0
sed -i 's/SELINUX=enforcing
https://ciweigg2.github.io/2019/06/05/kubernetes-an-zhuang-helm-he-monocular-jie-mian/
安装helm
前提需要安装了kubernetes
Monocular界面可以管理helm安装的所有Charts,很方便的呀
安装helm
https://ciweigg2.github.io/2019/06/01/kubernetes-zhong-bu-shu-springboot-ying-yong/
创建Dockerfile(把自己的项目部署到服务器)如果多个replicas的话 就是负载均衡了
FROM java:8
VOLUME /tmp
ADD /target/test-walle-0.0.1-SNAPSHOT.jar app.j
https://ciweigg2.github.io/2018/09/01/docker-an-zhuang-elasticsearch6.4.0-de-head-cha-jian/
elasticsearch6+后的版本head插件是独立出来了,所以需要自己去安装
找了很久才找到这个插件 支持数据查询不报错的
在集群环境下使用head添加索引,需等待界面跳出来({“acknowledged”:true,”shards
https://ciweigg2.github.io/2018/11/07/soar-ke-shi-hua-gong-ju/
soar-web基于小米 soar 的开源 sql 分析与优化的 WEB 图形化工具,支持 soar 配置的添加、修改、复制,多配置切换,配置的导出、导入与导入功能。
环境需求
python2.7 or python3.x
Flas
https://ciweigg2.github.io/2018/08/01/docker-an-zhuang-pinpoint-he-xiang-mu-shi-yong/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
hanlp介绍HanLP是一系列模型与算法组成的NLP工具包,由大快搜索主导并完全开源,目标是普及自然语言处理在生产环境中的应用。HanLP具备功能完善、性能高效、架构清晰、语料时新、可自定义的特点
SpringBoot集成中好像没什么效果
https://ciweigg2.github.io/2019/01/20/sentinel-shi-zhan-wei-xi-tong-zuo-xian-liu-bao-hu/
本demo介绍
集成了nacos配置中心做sentinel数据的持久化集成了普通限流和热点限流
PS:如果你不想对原有的业务代码进行侵入,也可以通过注解 SentinelResource 来进行资源埋点。
定义规则定义完资源后,就可以来
数据库连接信息曾经有朋友跟我聊过一个问题,“业务飞速发展,团队越来越大,人员流动也相对频繁起来,怎么才能更好的保证数据的安全性,不被泄露呢?”。他提到这样一个场景,公司创立初期,服务后端的代码都是他一行一行码出来的,当时只有他一个人,后端与
https://ciweigg2.github.io/2018/08/14/docker-an-zhuang-gitlab-zhong-wen-ban-ben/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2018/10/04/java-liu-api-groupingby-shou-ji-qi-de-zhong-ji-zhi-nan/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2019/02/22/jenkins-guan-fang-docker-jing-xiang-an-zhuang/
Jenkins官方Docker镜像安装
下载Jenkins镜像文件docker search jenkins
docker pull jenkins/jenkins
启动镜像mkdir -p /var/jenkins_node
chmod
https://ciweigg2.github.io/2018/12/21/elasticsearch-sql-cha-xun-gong-ju/
elasticsearch 类似sql的查询工具源码地址:https://github.com/NLPchina/elasticsearch-sql
安装sql查询插件./bin/elasticsearch-plugin install
https://ciweigg2.github.io/2019/04/19/shi-yong-jumpserver-tiao-ban-ji-guan-li-ni-de-fu-wu-qi/
1.Jumpserver介绍Jumpserver是一款开源的开源的堡垒机,如下图是官网介绍。
2.安装下面生成的密码一定要记住,以后会用的
mysql
$ create database jumpserver defau
https://ciweigg2.github.io/2019/03/02/jenkins-pei-zhi-gou-jian-li-shi/
查看配置主要是查看配置和回滚配置
安装插件Job Configuration History Plugin
https://ciweigg2.github.io/2018/12/28/li-yong-github-zuo-tu-chuang/
使用github的raw做一个基于GitHub的MarkDown图床,免费还不限流量,还很Geek
在GitHub上新建一个repository首先,在Github上新建一个专门用来放图片的repository
利用GitHub D
https://ciweigg2.github.io/2018/09/16/ssh-mian-mi-deng-lu/
跳板机就是一台机器作为ssh登录的机器 可以使用crt登录 其他都是内网登录
修改hosts:
10.254.4.1 mysql
10.254.4.2 redis
10.254.4.3 mongodb
比如我们现在有一台机器 10.254
https://ciweigg2.github.io/2019/01/13/docker-da-jian-nacos-zhu-ce-zhong-xin/
操作步骤
Clone 项目git clone https://github.com/nacos-group/nacos-docker.git
cd nacos-docker
单机模式
docker-compose -f examp
介绍
archery集成了sqladvisor,soar,sqltuning开源mysql分析工具
SQL审核平台,支持SQL审核、SQL优化(SQLAdvisor|SOAR|SQLTuning)、脱敏查询、慢日志管理、数据库审核、表结构
https://ciweigg2.github.io/2018/09/09/kubernetes-dashboard-ji-jian-kong-zu-jian-heapster-bu-shu/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
IDEA工具在线调试Docker容器中的项目
项目根目录创建Dockerfile
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD /target/demo-0.0.1-SNAPSHO
Springboot2.1.1+elasticsearch6.5.3搭建的企业级搜索平台,支持PB级数据(elasticsearch分布式部署),目前已经支持中文分词,检索关键词高亮操作,本机测试windows通过的springboot-e
https://ciweigg2.github.io/2018/10/04/hexo-zhu-ti-matery-geng-xin/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2018/09/09/kubernetes-huan-jing-da-jian/
躺在你学校的操场看星空 教室里的灯还亮着你没走 记得 我写给你的情书 都什么年代了 到现在我还在写着 总有一天总有一年会发现 有人默默的陪在你的身边
https://ciweigg2.github.io/2018/10/30/elastichd-jian-kong-elasticsearch-shu-ju/
一款漂亮的elasticsearch可视化工具
github:https://github.com/360EntSecGroup-Skylar/ElasticHD
docker安装:docker run -p 9200:9200 -d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.